public class TraceContext extends Object
| Constructor and Description |
|---|
TraceContext() |
| Modifier and Type | Method and Description |
|---|---|
static Optional<String> |
getCorrelation(String key)
Try to get the custom value from trace context.
|
static Optional<String> |
putCorrelation(String key,
String value)
Put the custom key/value into trace context.
|
static String |
segmentId()
Try to get the segmentId of current trace context.
|
static int |
spanId()
Try to get the spanId of current trace context.
|
static String |
traceId()
Try to get the traceId of current trace context.
|
public static String traceId()
String.public static String segmentId()
String.public static int spanId()
String.public static Optional<String> getCorrelation(String key)
Copyright © 2021 The Apache Software Foundation. All rights reserved.