Package 

Class TraceStructureWriter

  • All Implemented Interfaces:
    com.datadog.trace.common.writer.Writer , java.io.Closeable , java.lang.AutoCloseable

    
    public class TraceStructureWriter
     implements Writer
                        
    • Method Summary

      Modifier and Type Method Description
      void write(List<DDSpan> trace) Write a trace represented by the entire list of all the finished spans
      void start() Start the writer
      boolean flush() Requests the writer to send all finished traces and block until complete.
      void close() Indicates to the writer that no future writing will come and it should terminates allconnections and tasks
      void incrementDropCounts(int spanCount) Count that a trace was captured for stats, but without reporting it.
      • Methods inherited from class java.io.Closeable

        close
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TraceStructureWriter

        TraceStructureWriter()
      • TraceStructureWriter

        TraceStructureWriter(boolean debugLog)
      • TraceStructureWriter

        TraceStructureWriter(String outputFile)
      • TraceStructureWriter

        TraceStructureWriter(String outputFile, boolean debugLog)
    • 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.