Module brave

Class InternalPropagation


  • public abstract class InternalPropagation
    extends java.lang.Object
    Escalate internal APIs in brave.propagation so they can be used from outside packages. The only implementation is in SamplingFlags.

    Inspired by okhttp3.internal.Internal.

    • Constructor Detail

      • InternalPropagation

        public InternalPropagation()
    • Method Detail

      • sampled

        public static int sampled​(boolean sampled,
                                  int flags)
      • newTraceContext

        public abstract TraceContext newTraceContext​(int flags,
                                                     long traceIdHigh,
                                                     long traceId,
                                                     long localRootId,
                                                     long parentId,
                                                     long spanId,
                                                     java.util.List<java.lang.Object> extra)
        Parameters:
        localRootId - must be non-zero prior to instantiating Span or ScopedSpan
      • withExtra

        public abstract TraceContext withExtra​(TraceContext context,
                                               java.util.List<java.lang.Object> immutableExtra)
        TraceContext is immutable so you need to read the result