Class ZipkinTracer

    • Nested Class Summary

      • Nested classes/interfaces inherited from interface io.opentracing.Tracer

        io.opentracing.Tracer.SpanBuilder
    • Constructor Summary

      Constructors 
      Constructor Description
      ZipkinTracer​(brave.opentracing.BraveTracer tracer, List<Tag<?>> tags)
      Create a zipkin tracer from the delegate (BraveTracer) and tags to be used by default for all traces.
    • Constructor Detail

      • ZipkinTracer

        public ZipkinTracer​(brave.opentracing.BraveTracer tracer,
                            List<Tag<?>> tags)
        Create a zipkin tracer from the delegate (BraveTracer) and tags to be used by default for all traces.
        Parameters:
        tracer - tracer to wrap
        tags - list of tags to be automatically added to each span
    • Method Detail

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