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 java.util.List;

import io.opentracing.Span;

/**
 *	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);
    
    /**
     * 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