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
An 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 -
Method Summary
Modifier and TypeMethodDescriptionabstract void
export
(Collection<SpanData> spanDataList) Exports a list of sampled (seeTraceOptions.isSampled()
)Span
s using the immutable representationSpanData
.
-
Constructor Details
-
Handler
public Handler()
-
-
Method Details
-
export
Exports a list of sampled (seeTraceOptions.isSampled()
)Span
s 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 ofSpanData
objects to be exported.- Since:
- 0.5
-