Class BraveTraceContext

  • All Implemented Interfaces:
    org.springframework.cloud.sleuth.TraceContext

    public class BraveTraceContext
    extends Object
    implements org.springframework.cloud.sleuth.TraceContext
    Brave implementation of a TraceContext.
    Since:
    3.0.0
    Author:
    Marcin Grzejszczak
    • Constructor Detail

      • BraveTraceContext

        public BraveTraceContext​(brave.propagation.TraceContext traceContext)
    • Method Detail

      • traceId

        public String traceId()
        Specified by:
        traceId in interface org.springframework.cloud.sleuth.TraceContext
      • parentId

        @Nullable
        public String parentId()
        Specified by:
        parentId in interface org.springframework.cloud.sleuth.TraceContext
      • spanId

        public String spanId()
        Specified by:
        spanId in interface org.springframework.cloud.sleuth.TraceContext
      • sampled

        public Boolean sampled()
        Specified by:
        sampled in interface org.springframework.cloud.sleuth.TraceContext
      • toBrave

        public static brave.propagation.TraceContext toBrave​(org.springframework.cloud.sleuth.TraceContext traceContext)
      • fromBrave

        public static org.springframework.cloud.sleuth.TraceContext fromBrave​(brave.propagation.TraceContext traceContext)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object