public final class DistributedTracingExtension extends Object implements CloudEventExtension
| Modifier and Type | Field and Description |
|---|---|
static String |
TRACEPARENT
The key of the
traceparent extension |
static String |
TRACESTATE
The key of the
tracestate extension |
| Constructor and Description |
|---|
DistributedTracingExtension() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Set<String> |
getKeys() |
String |
getTraceparent() |
String |
getTracestate() |
Object |
getValue(String key) |
int |
hashCode() |
void |
readFrom(CloudEventExtensions extensions) |
void |
setTraceparent(String traceparent) |
void |
setTracestate(String tracestate) |
String |
toString() |
public static final String TRACEPARENT
traceparent extensionpublic static final String TRACESTATE
tracestate extensionpublic String getTraceparent()
traceparent contained in this extension.public void setTraceparent(String traceparent)
traceparent - the string to set as traceparent.public String getTracestate()
tracestate contained in this extension.public void setTracestate(String tracestate)
tracestate - the string to set as tracestate.public void readFrom(CloudEventExtensions extensions)
readFrom in interface CloudEventExtensionpublic Object getValue(String key)
getValue in interface CloudEventExtensionpublic Set<String> getKeys()
getKeys in interface CloudEventExtensionCopyright © 2023. All rights reserved.