Class ThresholdLogTracer

  • All Implemented Interfaces:
    io.opentracing.Tracer

    public class ThresholdLogTracer
    extends Object
    implements io.opentracing.Tracer
    This Tracer implementation logs operations over a certain threshold based on the given configuration.
    Since:
    1.6.0
    Author:
    Michael Nitschinger
    • Method Detail

      • create

        public static ThresholdLogTracer create()
        Creates a new tracer with default settings.
      • scopeManager

        public io.opentracing.ScopeManager scopeManager()
        Specified by:
        scopeManager in interface io.opentracing.Tracer
      • activeSpan

        public io.opentracing.Span activeSpan()
        Specified by:
        activeSpan in interface io.opentracing.Tracer
      • buildSpan

        public io.opentracing.Tracer.SpanBuilder buildSpan​(String operationName)
        Specified by:
        buildSpan in interface io.opentracing.Tracer
      • inject

        public <C> void inject​(io.opentracing.SpanContext spanContext,
                               io.opentracing.propagation.Format<C> format,
                               C carrier)
        Specified by:
        inject in interface io.opentracing.Tracer
      • extract

        public <C> io.opentracing.SpanContext extract​(io.opentracing.propagation.Format<C> format,
                                                      C carrier)
        Specified by:
        extract in interface io.opentracing.Tracer
      • reportSpan

        public void reportSpan​(ThresholdLogSpan span)
        Feeds the span into the reporter for further processing.
        Parameters:
        span - the param to report.
      • shutdown

        public void shutdown()