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 private
NoopSpanExporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
registerHandler(java.lang.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(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: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
public void unregisterHandler(java.lang.String name)
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.
-
-