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
  • Constructor Details

    • NoopSpanExporter

      private NoopSpanExporter()
  • Method Details

    • registerHandler

      public void registerHandler(String name, SpanExporter.Handler handler)
      Description copied from class: SpanExporter
      Registers a new service handler that is used by the library to export SpanData for sampled spans (see TraceOptions.isSampled()).
      Specified by:
      registerHandler in class SpanExporter
      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(String name)
      Description copied from class: SpanExporter
      Unregisters the service handler with the provided name.
      Specified by:
      unregisterHandler in class SpanExporter
      Parameters:
      name - the name of the service handler that will be unregistered.