Package io.opentelemetry.api.internal
Class AutoValue_ImmutableSpanContext
java.lang.Object
io.opentelemetry.api.internal.ImmutableSpanContext
io.opentelemetry.api.internal.AutoValue_ImmutableSpanContext
- All Implemented Interfaces:
SpanContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate final Stringprivate final TraceFlagsprivate final Stringprivate final TraceStateprivate final booleanFields inherited from class io.opentelemetry.api.internal.ImmutableSpanContext
INVALID -
Constructor Summary
ConstructorsConstructorDescriptionAutoValue_ImmutableSpanContext(String traceId, String spanId, TraceFlags traceFlags, TraceState traceState, boolean remote, boolean valid) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the span identifier associated with thisSpanContextas 16 character lowercase hex String.Returns the trace flags associated with thisSpanContext.Returns the trace identifier associated with thisSpanContextas 32 character lowercase hex String.Returns theTraceStateassociated with thisSpanContext.inthashCode()booleanisRemote()Returnstrueif theSpanContextwas propagated from a remote parent.booleanisValid()Returnstrueif thisSpanContextis valid.toString()Methods inherited from class io.opentelemetry.api.internal.ImmutableSpanContext
createMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.opentelemetry.api.trace.SpanContext
getSpanIdBytes, getTraceIdBytes, isSampled
-
Field Details
-
traceId
-
spanId
-
traceFlags
-
traceState
-
remote
private final boolean remote -
valid
private final boolean valid
-
-
Constructor Details
-
AutoValue_ImmutableSpanContext
AutoValue_ImmutableSpanContext(String traceId, String spanId, TraceFlags traceFlags, TraceState traceState, boolean remote, boolean valid)
-
-
Method Details
-
getTraceId
Description copied from interface:SpanContextReturns the trace identifier associated with thisSpanContextas 32 character lowercase hex String.- Returns:
- the trace identifier associated with this
SpanContextas lowercase hex.
-
getSpanId
Description copied from interface:SpanContextReturns the span identifier associated with thisSpanContextas 16 character lowercase hex String.- Returns:
- the span identifier associated with this
SpanContextas 16 character lowercase hex (base16) String.
-
getTraceFlags
Description copied from interface:SpanContextReturns the trace flags associated with thisSpanContext.- Returns:
- the trace flags associated with this
SpanContext.
-
getTraceState
Description copied from interface:SpanContextReturns theTraceStateassociated with thisSpanContext.- Returns:
- the
TraceStateassociated with thisSpanContext.
-
isRemote
public boolean isRemote()Description copied from interface:SpanContextReturnstrueif theSpanContextwas propagated from a remote parent.- Returns:
trueif theSpanContextwas propagated from a remote parent.
-
isValid
public boolean isValid()Description copied from interface:SpanContextReturnstrueif thisSpanContextis valid.- Specified by:
isValidin interfaceSpanContext- Specified by:
isValidin classImmutableSpanContext- Returns:
trueif thisSpanContextis valid.
-
toString
-
equals
-
hashCode
public int hashCode()
-