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 boolean
private final String
private final TraceFlags
private final String
private final TraceState
private final boolean
Fields 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 TypeMethodDescriptionboolean
Returns the span identifier associated with thisSpanContext
as 16 character lowercase hex String.Returns the trace flags associated with thisSpanContext
.Returns the trace identifier associated with thisSpanContext
as 32 character lowercase hex String.Returns theTraceState
associated with thisSpanContext
.int
hashCode()
boolean
isRemote()
Returnstrue
if theSpanContext
was propagated from a remote parent.boolean
isValid()
Returnstrue
if thisSpanContext
is valid.toString()
Methods inherited from class io.opentelemetry.api.internal.ImmutableSpanContext
create
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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:SpanContext
Returns the trace identifier associated with thisSpanContext
as 32 character lowercase hex String.- Returns:
- the trace identifier associated with this
SpanContext
as lowercase hex.
-
getSpanId
Description copied from interface:SpanContext
Returns the span identifier associated with thisSpanContext
as 16 character lowercase hex String.- Returns:
- the span identifier associated with this
SpanContext
as 16 character lowercase hex (base16) String.
-
getTraceFlags
Description copied from interface:SpanContext
Returns the trace flags associated with thisSpanContext
.- Returns:
- the trace flags associated with this
SpanContext
.
-
getTraceState
Description copied from interface:SpanContext
Returns theTraceState
associated with thisSpanContext
.- Returns:
- the
TraceState
associated with thisSpanContext
.
-
isRemote
public boolean isRemote()Description copied from interface:SpanContext
Returnstrue
if theSpanContext
was propagated from a remote parent.- Returns:
true
if theSpanContext
was propagated from a remote parent.
-
isValid
public boolean isValid()Description copied from interface:SpanContext
Returnstrue
if thisSpanContext
is valid.- Specified by:
isValid
in interfaceSpanContext
- Specified by:
isValid
in classImmutableSpanContext
- Returns:
true
if thisSpanContext
is valid.
-
toString
-
equals
-
hashCode
public int hashCode()
-