public abstract static class SpanExporter.Handler extends Object
To export data this MUST be register to to the ExportComponent using SpanExporter.registerHandler(String, Handler).
| Constructor and Description |
|---|
Handler() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
export(Collection<SpanData> spanDataList)
Exports a list of sampled (see
TraceOptions.isSampled()) Spans using the
immutable representation SpanData. |
public abstract void export(Collection<SpanData> spanDataList)
TraceOptions.isSampled()) Spans using the
immutable representation SpanData.
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.
spanDataList - a list of SpanData objects to be exported.