Class BraveTraceContext

java.lang.Object
org.springframework.cloud.sleuth.brave.bridge.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
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.springframework.cloud.sleuth.TraceContext

    org.springframework.cloud.sleuth.TraceContext.Builder
  • Constructor Summary

    Constructors
    Constructor
    Description
    BraveTraceContext(brave.propagation.TraceContext traceContext)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    static org.springframework.cloud.sleuth.TraceContext
    fromBrave(brave.propagation.TraceContext traceContext)
     
    int
     
     
     
     
    static brave.propagation.TraceContext
    toBrave(org.springframework.cloud.sleuth.TraceContext traceContext)
     
     
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • BraveTraceContext

      public BraveTraceContext(brave.propagation.TraceContext traceContext)
  • Method Details

    • 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
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object