Class MDCCurrentTraceContext


  • @Deprecated
    public final class MDCCurrentTraceContext
    extends brave.propagation.CurrentTraceContext
    Deprecated.
    use MDCScopeDecorator. This will be removed in Brave v6.
    Adds MDC properties "traceId", "parentId" and "spanId" when a span is current. These can be used in log correlation.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class brave.propagation.CurrentTraceContext

        brave.propagation.CurrentTraceContext.Builder, brave.propagation.CurrentTraceContext.Default, brave.propagation.CurrentTraceContext.Scope, brave.propagation.CurrentTraceContext.ScopeDecorator
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static MDCCurrentTraceContext create()
      Deprecated.
       
      static MDCCurrentTraceContext create​(brave.propagation.CurrentTraceContext delegate)
      Deprecated.
       
      brave.propagation.TraceContext get()
      Deprecated.
       
      brave.propagation.CurrentTraceContext.Scope newScope​(brave.propagation.TraceContext currentSpan)
      Deprecated.
       
      • Methods inherited from class brave.propagation.CurrentTraceContext

        decorateScope, executor, executorService, maybeScope, wrap, wrap
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • create

        public static MDCCurrentTraceContext create​(brave.propagation.CurrentTraceContext delegate)
        Deprecated.
      • get

        public brave.propagation.TraceContext get()
        Deprecated.
        Specified by:
        get in class brave.propagation.CurrentTraceContext
      • newScope

        public brave.propagation.CurrentTraceContext.Scope newScope​(@Nullable
                                                                    brave.propagation.TraceContext currentSpan)
        Deprecated.
        Specified by:
        newScope in class brave.propagation.CurrentTraceContext