Package io.sentry
Class Baggage
java.lang.Object
io.sentry.Baggage
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
freeze()
static @NotNull Baggage
fromEvent
(@NotNull SentryEvent event, @NotNull SentryOptions options) static @NotNull Baggage
fromHeader
(@Nullable String headerValue) static @NotNull Baggage
fromHeader
(@Nullable String headerValue, boolean includeThirdPartyValues, @NotNull ILogger logger) static @NotNull Baggage
fromHeader
(@Nullable List<String> headerValues) static @NotNull Baggage
fromHeader
(@Nullable List<String> headerValues, boolean includeThirdPartyValues, @NotNull ILogger logger) static @NotNull Baggage
fromHeader
(@Nullable List<String> headerValues, @NotNull ILogger logger) static @NotNull Baggage
fromHeader
(String headerValue, @NotNull ILogger logger) @Nullable String
@Nullable String
@Nullable String
@Nullable String
@Nullable String
@Nullable String
@Nullable String
@Nullable Double
@Nullable String
@Nullable String
@Nullable String
@Nullable String
@Nullable String
Deprecated.has no effect and will be removed in the next major update.boolean
void
void
setEnvironment
(@Nullable String environment) void
setPublicKey
(@Nullable String publicKey) void
setRelease
(@Nullable String release) void
setReplayId
(@Nullable String replayId) void
setSampled
(@Nullable String sampled) void
setSampleRate
(@Nullable String sampleRate) void
setTraceId
(@Nullable String traceId) void
setTransaction
(@Nullable String transaction) void
void
setUserSegment
(@Nullable String userSegment) Deprecated.has no effect and will be removed in the next major update.void
setValuesFromScope
(@NotNull IScope scope, @NotNull SentryOptions options) void
setValuesFromTransaction
(@NotNull ITransaction transaction, @Nullable User user, @Nullable SentryId replayId, @NotNull SentryOptions sentryOptions, @Nullable TracesSamplingDecision samplingDecision) @NotNull String
toHeaderString
(@Nullable String thirdPartyBaggageHeaderString) @Nullable TraceContext
-
Constructor Details
-
Baggage
-
Baggage
-
Baggage
-
-
Method Details
-
fromHeader
-
fromHeader
-
fromHeader
-
fromHeader
-
fromHeader
-
fromHeader
-
fromEvent
@Internal @NotNull public static @NotNull Baggage fromEvent(@NotNull @NotNull SentryEvent event, @NotNull @NotNull SentryOptions options) -
freeze
@Internal public void freeze() -
isMutable
@Internal public boolean isMutable() -
getThirdPartyHeader
-
toHeaderString
-
get
-
getTraceId
-
setTraceId
-
getPublicKey
-
setPublicKey
-
getEnvironment
-
setEnvironment
-
getRelease
-
setRelease
-
getUserId
-
setUserId
-
getUserSegment
Deprecated.has no effect and will be removed in the next major update. -
setUserSegment
Deprecated.has no effect and will be removed in the next major update. -
getTransaction
-
setTransaction
-
getSampleRate
-
getSampled
-
setSampleRate
-
setSampled
-
getReplayId
-
setReplayId
-
set
-
getUnknown
-
setValuesFromTransaction
@Internal public void setValuesFromTransaction(@NotNull @NotNull ITransaction transaction, @Nullable @Nullable User user, @Nullable @Nullable SentryId replayId, @NotNull @NotNull SentryOptions sentryOptions, @Nullable @Nullable TracesSamplingDecision samplingDecision) -
setValuesFromScope
@Internal public void setValuesFromScope(@NotNull @NotNull IScope scope, @NotNull @NotNull SentryOptions options) -
getSampleRateDouble
-
toTraceContext
-