public abstract class TimeLimitedHandler
extends io.opencensus.trace.export.SpanExporter.Handler
Only extend this class if the client APIs don't support timeout natively. If there is a timeout option in the client APIs (for example Stackdriver Trace V2 API allows you to set timeout), use that instead.
To export data this MUST be register to to the ExportComponent using SpanExporter.registerHandler(String, Handler).
| Modifier | Constructor and Description |
|---|---|
protected |
TimeLimitedHandler(io.opencensus.trace.Tracer tracer,
io.opencensus.common.Duration deadline,
String exportSpanName) |
| Modifier and Type | Method and Description |
|---|---|
void |
export(Collection<io.opencensus.trace.export.SpanData> spanDataList) |
abstract void |
timeLimitedExport(Collection<io.opencensus.trace.export.SpanData> spanDataList)
Exports a list of sampled (see
TraceOptions.isSampled()) Spans using the
immutable representation SpanData, within the given deadline of this TimeLimitedHandler. |
protected TimeLimitedHandler(io.opencensus.trace.Tracer tracer,
io.opencensus.common.Duration deadline,
String exportSpanName)
tracer - Tracer.deadline - Deadline.exportSpanName - Export span name.public abstract void timeLimitedExport(Collection<io.opencensus.trace.export.SpanData> spanDataList) throws Exception
TraceOptions.isSampled()) Spans using the
immutable representation SpanData, within the given deadline of this TimeLimitedHandler.spanDataList - a list of SpanData objects to be exported.Exception - throws exception when failed to export.public void export(Collection<io.opencensus.trace.export.SpanData> spanDataList)
export in class io.opencensus.trace.export.SpanExporter.Handler
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 8.9.30 Release Date : February 17 2026