java.lang.Object
org.springframework.cloud.sleuth.brave.bridge.BraveTracer
All Implemented Interfaces:
org.springframework.cloud.sleuth.BaggageManager, org.springframework.cloud.sleuth.Tracer

public class BraveTracer extends Object implements org.springframework.cloud.sleuth.Tracer
Brave implementation of a Tracer.
Since:
3.0.0
Author:
Marcin Grzejszczak
  • Constructor Details

    • BraveTracer

      @Deprecated public BraveTracer(brave.Tracer tracer, BraveBaggageManager braveBaggageManager)
      Deprecated.
    • BraveTracer

      public BraveTracer(brave.Tracer tracer, org.springframework.cloud.sleuth.CurrentTraceContext context, BraveBaggageManager braveBaggageManager)
  • Method Details

    • nextSpan

      public org.springframework.cloud.sleuth.Span nextSpan(org.springframework.cloud.sleuth.Span parent)
      Specified by:
      nextSpan in interface org.springframework.cloud.sleuth.Tracer
    • withSpan

      public org.springframework.cloud.sleuth.Tracer.SpanInScope withSpan(org.springframework.cloud.sleuth.Span span)
      Specified by:
      withSpan in interface org.springframework.cloud.sleuth.Tracer
    • currentSpanCustomizer

      public org.springframework.cloud.sleuth.SpanCustomizer currentSpanCustomizer()
      Specified by:
      currentSpanCustomizer in interface org.springframework.cloud.sleuth.Tracer
    • currentSpan

      public org.springframework.cloud.sleuth.Span currentSpan()
      Specified by:
      currentSpan in interface org.springframework.cloud.sleuth.Tracer
    • nextSpan

      public org.springframework.cloud.sleuth.Span nextSpan()
      Specified by:
      nextSpan in interface org.springframework.cloud.sleuth.Tracer
    • startScopedSpan

      public org.springframework.cloud.sleuth.ScopedSpan startScopedSpan(String name)
      Specified by:
      startScopedSpan in interface org.springframework.cloud.sleuth.Tracer
    • spanBuilder

      public org.springframework.cloud.sleuth.Span.Builder spanBuilder()
      Specified by:
      spanBuilder in interface org.springframework.cloud.sleuth.Tracer
    • traceContextBuilder

      public org.springframework.cloud.sleuth.TraceContext.Builder traceContextBuilder()
      Specified by:
      traceContextBuilder in interface org.springframework.cloud.sleuth.Tracer
    • getAllBaggage

      public Map<String,String> getAllBaggage()
      Specified by:
      getAllBaggage in interface org.springframework.cloud.sleuth.BaggageManager
    • getBaggage

      public org.springframework.cloud.sleuth.BaggageInScope getBaggage(String name)
      Specified by:
      getBaggage in interface org.springframework.cloud.sleuth.BaggageManager
    • getBaggage

      public org.springframework.cloud.sleuth.BaggageInScope getBaggage(org.springframework.cloud.sleuth.TraceContext traceContext, String name)
      Specified by:
      getBaggage in interface org.springframework.cloud.sleuth.BaggageManager
    • createBaggage

      public org.springframework.cloud.sleuth.BaggageInScope createBaggage(String name)
      Specified by:
      createBaggage in interface org.springframework.cloud.sleuth.BaggageManager
    • createBaggage

      public org.springframework.cloud.sleuth.BaggageInScope createBaggage(String name, String value)
      Specified by:
      createBaggage in interface org.springframework.cloud.sleuth.BaggageManager
    • currentTraceContext

      public org.springframework.cloud.sleuth.CurrentTraceContext currentTraceContext()
      Specified by:
      currentTraceContext in interface org.springframework.cloud.sleuth.Tracer