Package io.sentry
Class TraceContext
java.lang.Object
io.sentry.TraceContext
- All Implemented Interfaces:
JsonSerializable
,JsonUnknown
@Experimental
public final class TraceContext
extends Object
implements JsonUnknown, JsonSerializable
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
static final class
-
Method Summary
Modifier and TypeMethodDescription@Nullable String
@NotNull String
@Nullable String
@Nullable SentryId
@Nullable String
@Nullable String
@NotNull SentryId
@Nullable String
@Nullable String
@Nullable String
Deprecated.has no effect and will be removed in the next major update.void
serialize
(@NotNull ObjectWriter writer, @NotNull ILogger logger) void
setUnknown
(@Nullable Map<String, Object> unknown)
-
Method Details
-
getTraceId
-
getPublicKey
-
getRelease
-
getEnvironment
-
getUserId
-
getUserSegment
Deprecated.has no effect and will be removed in the next major update. -
getTransaction
-
getSampleRate
-
getSampled
-
getReplayId
-
getUnknown
- Specified by:
getUnknown
in interfaceJsonUnknown
-
setUnknown
- Specified by:
setUnknown
in interfaceJsonUnknown
-
serialize
public void serialize(@NotNull @NotNull ObjectWriter writer, @NotNull @NotNull ILogger logger) throws IOException - Specified by:
serialize
in interfaceJsonSerializable
- Throws:
IOException
-