Package io.sentry

Class PropagationContext

java.lang.Object
io.sentry.PropagationContext

@Internal public final class PropagationContext extends Object
  • Constructor Details

    • PropagationContext

      public PropagationContext()
    • PropagationContext

      public PropagationContext(@NotNull @NotNull PropagationContext propagationContext)
    • PropagationContext

      public PropagationContext(@NotNull @NotNull SentryId traceId, @NotNull @NotNull SpanId spanId, @Nullable @Nullable SpanId parentSpanId, @Nullable @Nullable Baggage baggage, @Nullable @Nullable Boolean sampled)
  • Method Details

    • fromHeaders

      public static PropagationContext fromHeaders(@NotNull @NotNull ILogger logger, @Nullable @Nullable String sentryTraceHeader, @Nullable @Nullable String baggageHeader)
    • fromHeaders

      @NotNull public static @NotNull PropagationContext fromHeaders(@NotNull @NotNull ILogger logger, @Nullable @Nullable String sentryTraceHeaderString, @Nullable @Nullable List<String> baggageHeaderStrings)
    • fromHeaders

      @NotNull public static @NotNull PropagationContext fromHeaders(@NotNull @NotNull SentryTraceHeader sentryTraceHeader, @Nullable @Nullable Baggage baggage, @Nullable @Nullable SpanId spanId)
    • getTraceId

      @NotNull public @NotNull SentryId getTraceId()
    • setTraceId

      public void setTraceId(@NotNull @NotNull SentryId traceId)
    • getSpanId

      @NotNull public @NotNull SpanId getSpanId()
    • setSpanId

      public void setSpanId(@NotNull @NotNull SpanId spanId)
    • getParentSpanId

      @Nullable public @Nullable SpanId getParentSpanId()
    • setParentSpanId

      public void setParentSpanId(@Nullable @Nullable SpanId parentSpanId)
    • getBaggage

      @Nullable public @Nullable Baggage getBaggage()
    • setBaggage

      public void setBaggage(@Nullable @Nullable Baggage baggage)
    • isSampled

      @Nullable public @Nullable Boolean isSampled()
    • setSampled

      public void setSampled(@Nullable @Nullable Boolean sampled)
    • traceContext

      @Nullable public @Nullable TraceContext traceContext()
    • toSpanContext

      @NotNull public @NotNull SpanContext toSpanContext()