public class W3TraceContext extends Object
| Modifier and Type | Field and Description |
|---|---|
static Pattern |
TRACESTATE_PATTERN |
| Constructor and Description |
|---|
W3TraceContext(long createdTimestamp) |
W3TraceContext(String traceparentStr,
String tracestateStr,
long createdTimestamp) |
W3TraceContext(Traceparent traceparent,
Tracestate tracestate,
long createdTimestamp) |
| Modifier and Type | Method and Description |
|---|---|
W3TraceContext |
copy() |
String |
getParentId() |
Optional<Long> |
getTimestamp() |
String |
getTraceId() |
Traceparent |
getTraceparent() |
Tracestate |
getTracestate() |
String |
toString() |
void |
updateParentIdAndAddTracestateMember() |
public static final Pattern TRACESTATE_PATTERN
public W3TraceContext(String traceparentStr, String tracestateStr, long createdTimestamp)
traceparentStr - the traceparent passed in the request headertracestateStr - the tracestate passed in the request headercreatedTimestamp - the timestamp used when existing traceparent is invalid or missing to create a parentIdpublic W3TraceContext(Traceparent traceparent, Tracestate tracestate, long createdTimestamp)
public W3TraceContext(long createdTimestamp)
public W3TraceContext copy()
public Traceparent getTraceparent()
public Tracestate getTracestate()
public String getTraceId()
public String getParentId()
public void updateParentIdAndAddTracestateMember()
Copyright © 2009–2021. All rights reserved.