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
@Generated("com.google.auto.value.processor.AutoValueProcessor") final class AutoValue_ImmutableSpanContext extends ImmutableSpanContext
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
remote
private java.lang.String
spanId
private TraceFlags
traceFlags
private java.lang.String
traceId
private TraceState
traceState
private boolean
valid
-
Fields inherited from class io.opentelemetry.api.internal.ImmutableSpanContext
INVALID
-
-
Constructor Summary
Constructors Constructor Description AutoValue_ImmutableSpanContext(java.lang.String traceId, java.lang.String spanId, TraceFlags traceFlags, TraceState traceState, boolean remote, boolean valid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
getSpanId()
Returns the span identifier associated with thisSpanContext
as 16 character lowercase hex String.TraceFlags
getTraceFlags()
Returns the trace flags associated with thisSpanContext
.java.lang.String
getTraceId()
Returns the trace identifier associated with thisSpanContext
as 32 character lowercase hex String.TraceState
getTraceState()
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.java.lang.String
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 Detail
-
traceId
private final java.lang.String traceId
-
spanId
private final java.lang.String spanId
-
traceFlags
private final TraceFlags traceFlags
-
traceState
private final TraceState traceState
-
remote
private final boolean remote
-
valid
private final boolean valid
-
-
Constructor Detail
-
AutoValue_ImmutableSpanContext
AutoValue_ImmutableSpanContext(java.lang.String traceId, java.lang.String spanId, TraceFlags traceFlags, TraceState traceState, boolean remote, boolean valid)
-
-
Method Detail
-
getTraceId
public java.lang.String 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
public java.lang.String 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
public TraceFlags getTraceFlags()
Description copied from interface:SpanContext
Returns the trace flags associated with thisSpanContext
.- Returns:
- the trace flags associated with this
SpanContext
.
-
getTraceState
public TraceState 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
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-