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 -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic org.springframework.cloud.sleuth.TraceContextfromBrave(brave.propagation.TraceContext traceContext) inthashCode()parentId()sampled()spanId()static brave.propagation.TraceContexttoBrave(org.springframework.cloud.sleuth.TraceContext traceContext) toString()traceId()
-
Constructor Details
-
BraveTraceContext
public BraveTraceContext(brave.propagation.TraceContext traceContext)
-
-
Method Details
-
traceId
- Specified by:
traceIdin interfaceorg.springframework.cloud.sleuth.TraceContext
-
parentId
- Specified by:
parentIdin interfaceorg.springframework.cloud.sleuth.TraceContext
-
spanId
- Specified by:
spanIdin interfaceorg.springframework.cloud.sleuth.TraceContext
-
sampled
- Specified by:
sampledin interfaceorg.springframework.cloud.sleuth.TraceContext
-
toString
-
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
-
hashCode
public int hashCode()
-