public interface SpanExporter
To export data this MUST be register to the TracerSdk
using a SimpleSpanProcessor
or a BatchSampledSpansProcessor
.
Modifier and Type | Interface and Description |
---|---|
static class |
SpanExporter.ResultCode
The possible results for the export method.
|
Modifier and Type | Method and Description |
---|---|
SpanExporter.ResultCode |
export(Collection<SpanData> spans)
Called to export sampled
Span s. |
SpanExporter.ResultCode |
flush()
Exports the collection of sampled
Span s that have not yet been exported. |
void |
shutdown()
Called when
TracerSdkProvider.shutdown() is called, if this SpanExporter is
register to a TracerSdkProvider object. |
SpanExporter.ResultCode export(Collection<SpanData> spans)
Span
s.spans
- the collection of sampled Spans to be exported.SpanExporter.ResultCode flush()
Span
s that have not yet been exported.void shutdown()
TracerSdkProvider.shutdown()
is called, if this SpanExporter
is
register to a TracerSdkProvider
object.