Package org.apache.camel.zipkin
Class ZipkinState
- java.lang.Object
-
- org.apache.camel.zipkin.ZipkinState
-
- All Implemented Interfaces:
org.apache.camel.SafeCopyProperty
public final class ZipkinState extends Object implements org.apache.camel.SafeCopyProperty
The state of the zipkin trace which we store on theExchangeThis is needed to keep track of of correlating when an existing span is calling downstream service(s) and therefore must be able to correlate those service calls with the parent span.
-
-
Constructor Summary
Constructors Constructor Description ZipkinState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description brave.SpanpeekServerSpan()brave.SpanpopClientSpan()brave.SpanpopServerSpan()voidpushClientSpan(brave.Span span)voidpushServerSpan(brave.Span span)ZipkinStatesafeCopy()
-
-
-
Field Detail
-
KEY
public static final String KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
pushClientSpan
public void pushClientSpan(brave.Span span)
-
popClientSpan
public brave.Span popClientSpan()
-
pushServerSpan
public void pushServerSpan(brave.Span span)
-
popServerSpan
public brave.Span popServerSpan()
-
peekServerSpan
public brave.Span peekServerSpan()
-
safeCopy
public ZipkinState safeCopy()
- Specified by:
safeCopyin interfaceorg.apache.camel.SafeCopyProperty
-
-