Package io.sentry
Class PropagationContext
java.lang.Object
io.sentry.PropagationContext
-
Constructor Summary
ConstructorDescriptionPropagationContext
(@NotNull PropagationContext propagationContext) PropagationContext
(@NotNull SentryId traceId, @NotNull SpanId spanId, @Nullable SpanId parentSpanId, @Nullable Baggage baggage, @Nullable Boolean sampled) -
Method Summary
Modifier and TypeMethodDescriptionstatic PropagationContext
fromHeaders
(@NotNull ILogger logger, @Nullable String sentryTraceHeader, @Nullable String baggageHeader) static @NotNull PropagationContext
fromHeaders
(@NotNull ILogger logger, @Nullable String sentryTraceHeaderString, @Nullable List<String> baggageHeaderStrings) static @NotNull PropagationContext
fromHeaders
(@NotNull SentryTraceHeader sentryTraceHeader, @Nullable Baggage baggage, @Nullable SpanId spanId) @Nullable Baggage
@Nullable SpanId
@NotNull SpanId
@NotNull SentryId
@Nullable Boolean
void
setBaggage
(@Nullable Baggage baggage) void
setParentSpanId
(@Nullable SpanId parentSpanId) void
setSampled
(@Nullable Boolean sampled) void
void
setTraceId
(@NotNull SentryId traceId) @NotNull SpanContext
@Nullable TraceContext
-
Constructor Details
-
PropagationContext
public PropagationContext() -
PropagationContext
-
PropagationContext
-
-
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
-
setTraceId
-
getSpanId
-
setSpanId
-
getParentSpanId
-
setParentSpanId
-
getBaggage
-
setBaggage
-
isSampled
-
setSampled
-
traceContext
-
toSpanContext
-