Package io.opencensus.trace.export
Class SpanExporter.Handler
- java.lang.Object
-
- io.opencensus.trace.export.SpanExporter.Handler
-
- Direct Known Subclasses:
TestHandler,TimeLimitedHandler
- Enclosing class:
- SpanExporter
public abstract static class SpanExporter.Handler extends java.lang.ObjectAn abstract class that allows different tracing services to export recorded data for sampled spans in their own format.To export data this MUST be register to to the ExportComponent using
SpanExporter.registerHandler(String, Handler).- Since:
- 0.5
-
-
Constructor Summary
Constructors Constructor Description Handler()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract voidexport(java.util.Collection<SpanData> spanDataList)Exports a list of sampled (seeTraceOptions.isSampled())Spans using the immutable representationSpanData.
-
-
-
Method Detail
-
export
public abstract void export(java.util.Collection<SpanData> spanDataList)
Exports a list of sampled (seeTraceOptions.isSampled())Spans using the immutable representationSpanData.This may be called from a different thread than the one that called
Span.end().Implementation SHOULD not block the calling thread. It should execute the export on a different thread if possible.
- Parameters:
spanDataList- a list ofSpanDataobjects to be exported.- Since:
- 0.5
-
-