Class SpanExporter.NoopSpanExporter

    • Constructor Detail

      • NoopSpanExporter

        private NoopSpanExporter()
    • 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 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​(java.lang.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.