@ThreadSafe public final class StartEndHandlerImpl extends Object implements SpanImpl.StartEndHandler
EventQueue to defer processing/exporting of the SpanData to
avoid impacting the critical path.| Constructor and Description |
|---|
StartEndHandlerImpl(SpanExporterImpl spanExporter,
RunningSpanStoreImpl runningSpanStore,
SampledSpanStoreImpl sampledSpanStore,
io.opencensus.internal.EventQueue eventQueue)
Constructs a new
StartEndHandlerImpl. |
public StartEndHandlerImpl(SpanExporterImpl spanExporter, @Nullable RunningSpanStoreImpl runningSpanStore, @Nullable SampledSpanStoreImpl sampledSpanStore, io.opencensus.internal.EventQueue eventQueue)
StartEndHandlerImpl.spanExporter - the SpanExporter implementation.runningSpanStore - the RunningSpanStore implementation.sampledSpanStore - the SampledSpanStore implementation.eventQueue - the event queue where all the events are enqueued.public void onStart(SpanImpl span)
onStart in interface SpanImpl.StartEndHandlerpublic void onEnd(SpanImpl span)
onEnd in interface SpanImpl.StartEndHandler