Class SpanExporter

    • Field Detail

      • NOOP_SPAN_EXPORTER

        private static final SpanExporter NOOP_SPAN_EXPORTER
    • Constructor Detail

      • SpanExporter

        public SpanExporter()
    • Method Detail

      • getNoopSpanExporter

        public static SpanExporter getNoopSpanExporter()
        Returns the no-op implementation of the ExportComponent.
        Returns:
        the no-op implementation of the ExportComponent.
        Since:
        0.5
      • registerHandler

        public abstract void registerHandler​(java.lang.String name,
                                             SpanExporter.Handler handler)
        Registers a new service handler that is used by the library to export SpanData for sampled spans (see TraceOptions.isSampled()).
        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.
        Since:
        0.5
      • unregisterHandler

        public abstract void unregisterHandler​(java.lang.String name)
        Unregisters the service handler with the provided name.
        Parameters:
        name - the name of the service handler that will be unregistered.
        Since:
        0.5