All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.datadoghq.trace.writer.Writer Maven / Gradle / Ivy

There is a newer version: 0.2.12
Show newest version
package com.datadoghq.trace.writer;

import com.datadoghq.trace.DDBaseSpan;
import com.datadoghq.trace.Service;
import java.util.List;
import java.util.Map;

/** A writer is responsible to send collected spans to some place */
public interface Writer {

  /**
   * Write a trace represented by the entire list of all the finished spans
   *
   * @param trace the list of spans to write
   */
  void write(List> trace);

  /**
   * Report additional service information to the endpoint
   *
   * @param services a list of extra information about services
   */
  void writeServices(Map services);

  /** Start the writer */
  void start();

  /**
   * Indicates to the writer that no future writing will come and it should terminates all
   * connections and tasks
   */
  void close();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy