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 booleanremoteprivate java.lang.StringspanIdprivate TraceFlagstraceFlagsprivate java.lang.StringtraceIdprivate TraceStatetraceStateprivate booleanvalid-
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 booleanequals(java.lang.Object o)java.lang.StringgetSpanId()Returns the span identifier associated with thisSpanContextas 16 character lowercase hex String.TraceFlagsgetTraceFlags()Returns the trace flags associated with thisSpanContext.java.lang.StringgetTraceId()Returns the trace identifier associated with thisSpanContextas 32 character lowercase hex String.TraceStategetTraceState()Returns theTraceStateassociated with thisSpanContext.inthashCode()booleanisRemote()Returnstrueif theSpanContextwas propagated from a remote parent.booleanisValid()Returnstrueif thisSpanContextis valid.java.lang.StringtoString()-
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:SpanContextReturns the trace identifier associated with thisSpanContextas 32 character lowercase hex String.- Returns:
- the trace identifier associated with this
SpanContextas lowercase hex.
-
getSpanId
public java.lang.String 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
public TraceFlags getTraceFlags()
Description copied from interface:SpanContextReturns the trace flags associated with thisSpanContext.- Returns:
- the trace flags associated with this
SpanContext.
-
getTraceState
public TraceState 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
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-