java.lang.Object
io.cloudevents.core.extensions.DistributedTracingExtension
- All Implemented Interfaces:
io.cloudevents.CloudEventExtension
public final class DistributedTracingExtension
extends Object
implements io.cloudevents.CloudEventExtension
This extension embeds context from Distributed Tracing so that distributed systems can include traces that span an event-driven system.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetKeys()inthashCode()voidreadFrom(io.cloudevents.CloudEventExtensions extensions) voidsetTraceparent(String traceparent) voidsetTracestate(String tracestate) toString()
-
Field Details
-
TRACEPARENT
The key of thetraceparentextension- See Also:
-
TRACESTATE
The key of thetracestateextension- See Also:
-
-
Constructor Details
-
DistributedTracingExtension
public DistributedTracingExtension()
-
-
Method Details
-
getTraceparent
- Returns:
- the
traceparentcontained in this extension.
-
setTraceparent
- Parameters:
traceparent- the string to set astraceparent.
-
getTracestate
- Returns:
- the
tracestatecontained in this extension.
-
setTracestate
- Parameters:
tracestate- the string to set astracestate.
-
readFrom
public void readFrom(io.cloudevents.CloudEventExtensions extensions) - Specified by:
readFromin interfaceio.cloudevents.CloudEventExtension
-
getValue
- Specified by:
getValuein interfaceio.cloudevents.CloudEventExtension
-
getKeys
- Specified by:
getKeysin interfaceio.cloudevents.CloudEventExtension
-
toString
-
equals
-
hashCode
public int hashCode()
-