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 |
traceId()
Try to get the traceId of current trace context.
|
Copyright © 2020 The Apache Software Foundation. All rights reserved.