Package io.opencensus.implcore.trace
Class StartEndHandlerImpl
java.lang.Object
io.opencensus.implcore.trace.StartEndHandlerImpl
- All Implemented Interfaces:
RecordEventsSpanImpl.StartEndHandler
@ThreadSafe
public final class StartEndHandlerImpl
extends Object
implements RecordEventsSpanImpl.StartEndHandler
Uses the provided
EventQueue
to defer processing/exporting of the SpanData
to
avoid impacting the critical path.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
private static final class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final EventQueue
private final InProcessRunningSpanStore
private final SampledSpanStoreImpl
private final SpanExporterImpl
-
Constructor Summary
ConstructorsConstructorDescriptionStartEndHandlerImpl
(SpanExporterImpl spanExporter, InProcessRunningSpanStore inProcessRunningSpanStore, SampledSpanStoreImpl sampledSpanStore, EventQueue eventQueue) Constructs a newStartEndHandlerImpl
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
onEnd
(RecordEventsSpanImpl span) void
onStart
(RecordEventsSpanImpl span)
-
Field Details
-
spanExporter
-
inProcessRunningSpanStore
-
sampledSpanStore
-
eventQueue
-
-
Constructor Details
-
StartEndHandlerImpl
public StartEndHandlerImpl(SpanExporterImpl spanExporter, InProcessRunningSpanStore inProcessRunningSpanStore, SampledSpanStoreImpl sampledSpanStore, EventQueue eventQueue) Constructs a newStartEndHandlerImpl
.- Parameters:
spanExporter
- theSpanExporter
implementation.inProcessRunningSpanStore
- theRunningSpanStore
implementation.sampledSpanStore
- theSampledSpanStore
implementation.eventQueue
- the event queue where all the events are enqueued.
-
-
Method Details
-
onStart
- Specified by:
onStart
in interfaceRecordEventsSpanImpl.StartEndHandler
-
onEnd
- Specified by:
onEnd
in interfaceRecordEventsSpanImpl.StartEndHandler
-