-
- All Implemented Interfaces:
-
com.datadog.trace.common.writer.Writer,java.io.Closeable,java.lang.AutoCloseable
public class TraceStructureWriter implements Writer
-
-
Constructor Summary
Constructors Constructor Description TraceStructureWriter()TraceStructureWriter(boolean debugLog)TraceStructureWriter(String outputFile)TraceStructureWriter(String outputFile, boolean debugLog)
-
Method Summary
Modifier and Type Method Description voidwrite(List<DDSpan> trace)Write a trace represented by the entire list of all the finished spans voidstart()Start the writer booleanflush()Requests the writer to send all finished traces and block until complete. voidclose()Indicates to the writer that no future writing will come and it should terminates allconnections and tasks voidincrementDropCounts(int spanCount)Count that a trace was captured for stats, but without reporting it. -
-
Method Detail
-
write
void write(List<DDSpan> trace)
Write a trace represented by the entire list of all the finished spans
- Parameters:
trace- the list of spans to write
-
start
void start()
Start the writer
-
flush
boolean flush()
Requests the writer to send all finished traces and block until complete.
-
close
void close()
Indicates to the writer that no future writing will come and it should terminates allconnections and tasks
-
incrementDropCounts
void incrementDropCounts(int spanCount)
Count that a trace was captured for stats, but without reporting it.
-
-
-
-