Class OtelSpanContext

java.lang.Object
io.sentry.SpanContext
io.sentry.opentelemetry.OtelSpanContext
All Implemented Interfaces:
io.sentry.JsonSerializable, io.sentry.JsonUnknown

@Internal public final class OtelSpanContext extends io.sentry.SpanContext
  • Nested Class Summary

    Nested classes/interfaces inherited from class io.sentry.SpanContext

    io.sentry.SpanContext.Deserializer, io.sentry.SpanContext.JsonKeys
  • Field Summary

    Fields inherited from class io.sentry.SpanContext

    baggage, data, DEFAULT_ORIGIN, description, op, origin, status, tags, TYPE
  • Constructor Summary

    Constructors
    Constructor
    Description
    OtelSpanContext(@NotNull io.opentelemetry.sdk.trace.ReadWriteSpan span, @Nullable io.sentry.TracesSamplingDecision samplingDecision, @Nullable io.sentry.opentelemetry.IOtelSpanWrapper parentSpan, @Nullable io.sentry.SpanId parentSpanId, @Nullable io.sentry.Baggage baggage)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull String
     
    @Nullable io.sentry.SpanStatus
     
    void
    setOperation(@NotNull String operation)
     
    void
    setStatus(@Nullable io.sentry.SpanStatus status)
     

    Methods inherited from class io.sentry.SpanContext

    copyForChild, equals, getBaggage, getData, getDescription, getInstrumenter, getOrigin, getParentSpanId, getProfilerId, getProfileSampled, getSampled, getSamplingDecision, getSpanId, getTags, getTraceId, getUnknown, hashCode, serialize, setData, setDescription, setInstrumenter, setOrigin, setProfilerId, setSampled, setSampled, setSamplingDecision, setTag, setUnknown

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OtelSpanContext

      public OtelSpanContext(@NotNull @NotNull io.opentelemetry.sdk.trace.ReadWriteSpan span, @Nullable @Nullable io.sentry.TracesSamplingDecision samplingDecision, @Nullable @Nullable io.sentry.opentelemetry.IOtelSpanWrapper parentSpan, @Nullable @Nullable io.sentry.SpanId parentSpanId, @Nullable @Nullable io.sentry.Baggage baggage)
  • Method Details

    • getStatus

      @Nullable public @Nullable io.sentry.SpanStatus getStatus()
      Overrides:
      getStatus in class io.sentry.SpanContext
    • setStatus

      public void setStatus(@Nullable @Nullable io.sentry.SpanStatus status)
      Overrides:
      setStatus in class io.sentry.SpanContext
    • getOperation

      @NotNull public @NotNull String getOperation()
      Overrides:
      getOperation in class io.sentry.SpanContext
    • setOperation

      public void setOperation(@NotNull @NotNull String operation)
      Overrides:
      setOperation in class io.sentry.SpanContext