| Modifier and Type | Field and Description |
|---|---|
| public static final SpanContext |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static SpanContext | Returns: a newSpanContext with the given identifiers and options.the trace identifier of the traceIdHex, String SpanContext.the span identifier of the spanIdHex, TraceFlags SpanContext.the trace flags of the traceFlags, TraceState SpanContext.the trace state for the traceState, boolean SpanContext.the remote flag for the remote, boolean SpanContext.pass true to skip validation of trace ID and span ID as an optimization
in cases where they are known to have been already validated. skipIdValidation)Creates a new |
| public abstract boolean | isValid()
Redeclares as abstract: io. Returns |
| INVALID | back to summary |
|---|---|
| public static final SpanContext INVALID | |
| ImmutableSpanContext | back to summary |
|---|---|
| public ImmutableSpanContext() | |
| create | back to summary |
|---|---|
| public static SpanContext create(String traceIdHex, String spanIdHex, TraceFlags traceFlags, TraceState traceState, boolean remote, boolean skipIdValidation) Creates a new If the traceId or the spanId are invalid (ie. do not conform to the requirements for
hexadecimal ids of the appropriate lengths), both will be replaced with the standard "invalid"
versions (i.e. all '0's). See
| |
| isValid | back to summary |
|---|---|
| public abstract boolean isValid() Redeclares as abstract: io. Doc from io. Returns
| |