Class SpanExporter.NoopSpanExporter
java.lang.Object
io.opencensus.trace.export.SpanExporter
io.opencensus.trace.export.SpanExporter.NoopSpanExporter
- Enclosing class:
SpanExporter
- Since:
- 0.5
-
Nested Class Summary
Nested classes/interfaces inherited from class SpanExporter
SpanExporter.Handler -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidregisterHandler(String name, SpanExporter.Handler handler) Registers a new service handler that is used by the library to exportSpanDatafor sampled spans (seeTraceOptions.isSampled()).voidunregisterHandler(String name) Unregisters the service handler with the provided name.Methods inherited from class SpanExporter
getNoopSpanExporter
-
Constructor Details
-
NoopSpanExporter
private NoopSpanExporter()
-
-
Method Details
-
registerHandler
Description copied from class:SpanExporterRegisters a new service handler that is used by the library to exportSpanDatafor sampled spans (seeTraceOptions.isSampled()).- Specified by:
registerHandlerin 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:SpanExporterUnregisters the service handler with the provided name.- Specified by:
unregisterHandlerin classSpanExporter- Parameters:
name- the name of the service handler that will be unregistered.
-