Class ThreadContextCurrentTraceContext


  • @Deprecated
    public final class ThreadContextCurrentTraceContext
    extends brave.propagation.CurrentTraceContext
    Deprecated.
    use ThreadContextScopeDecorator. This will be removed in Brave v6.
    Adds ThreadContext 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 Detail

      • 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