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
private static final class SpanExporter.NoopSpanExporter extends SpanExporter
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.opencensus.trace.export.SpanExporter
SpanExporter.Handler
-
-
Constructor Summary
Constructors Modifier Constructor Description privateNoopSpanExporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidregisterHandler(java.lang.String name, SpanExporter.Handler handler)Registers a new service handler that is used by the library to exportSpanDatafor sampled spans (seeTraceOptions.isSampled()).voidunregisterHandler(java.lang.String name)Unregisters the service handler with the provided name.-
Methods inherited from class io.opencensus.trace.export.SpanExporter
getNoopSpanExporter
-
-
-
-
Method Detail
-
registerHandler
public void registerHandler(java.lang.String name, SpanExporter.Handler handler)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
public void unregisterHandler(java.lang.String name)
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.
-
-