Package io.opencensus.trace.export
Class SpanExporter.NoopSpanExporter
java.lang.Object
io.opencensus.trace.export.SpanExporter
io.opencensus.trace.export.SpanExporter.NoopSpanExporter
- Enclosing class:
SpanExporter
-
Nested Class Summary
Nested classes/interfaces inherited from class io.opencensus.trace.export.SpanExporter
SpanExporter.Handler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
registerHandler
(String name, SpanExporter.Handler handler) Registers a new service handler that is used by the library to exportSpanData
for sampled spans (seeTraceOptions.isSampled()
).void
unregisterHandler
(String name) Unregisters the service handler with the provided name.Methods inherited from class io.opencensus.trace.export.SpanExporter
getNoopSpanExporter
-
Constructor Details
-
NoopSpanExporter
private NoopSpanExporter()
-
-
Method Details
-
registerHandler
Description copied from class:SpanExporter
Registers a new service handler that is used by the library to exportSpanData
for sampled spans (seeTraceOptions.isSampled()
).- Specified by:
registerHandler
in classSpanExporter
- Parameters:
name
- the name of the service handler. Must be unique for each service.handler
- the service handler that is called for each ended sampled span.
-
unregisterHandler
Description copied from class:SpanExporter
Unregisters the service handler with the provided name.- Specified by:
unregisterHandler
in classSpanExporter
- Parameters:
name
- the name of the service handler that will be unregistered.
-