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