Class AutoValue_ImmutableSpanContext

java.lang.Object
io.opentelemetry.api.internal.ImmutableSpanContext
io.opentelemetry.api.internal.AutoValue_ImmutableSpanContext
All Implemented Interfaces:
SpanContext

final class AutoValue_ImmutableSpanContext extends ImmutableSpanContext
  • Field Details

    • traceId

      private final String traceId
    • spanId

      private final String spanId
    • traceFlags

      private final TraceFlags traceFlags
    • traceState

      private final TraceState 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

      public String getTraceId()
      Description copied from interface: SpanContext
      Returns the trace identifier associated with this SpanContext as 32 character lowercase hex String.
      Returns:
      the trace identifier associated with this SpanContext as lowercase hex.
    • getSpanId

      public String getSpanId()
      Description copied from interface: SpanContext
      Returns the span identifier associated with this SpanContext 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 this SpanContext.
      Returns:
      the trace flags associated with this SpanContext.
    • getTraceState

      public TraceState getTraceState()
      Description copied from interface: SpanContext
      Returns the TraceState associated with this SpanContext.
      Returns:
      the TraceState associated with this SpanContext.
    • isRemote

      public boolean isRemote()
      Description copied from interface: SpanContext
      Returns true if the SpanContext was propagated from a remote parent.
      Returns:
      true if the SpanContext was propagated from a remote parent.
    • isValid

      public boolean isValid()
      Description copied from interface: SpanContext
      Returns true if this SpanContext is valid.
      Specified by:
      isValid in interface SpanContext
      Specified by:
      isValid in class ImmutableSpanContext
      Returns:
      true if this SpanContext is valid.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object