Package io.sentry
Class SentryEnvelopeHeader
java.lang.Object
io.sentry.SentryEnvelopeHeader
- All Implemented Interfaces:
JsonSerializable
,JsonUnknown
@Internal
public final class SentryEnvelopeHeader
extends Object
implements JsonSerializable, JsonUnknown
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
static final class
-
Constructor Summary
ConstructorDescriptionSentryEnvelopeHeader
(@Nullable SentryId eventId) SentryEnvelopeHeader
(@Nullable SentryId eventId, @Nullable SdkVersion sdkVersion) SentryEnvelopeHeader
(@Nullable SentryId eventId, @Nullable SdkVersion sdkVersion, @Nullable TraceContext traceContext) -
Method Summary
Modifier and TypeMethodDescription@Nullable SentryId
@Nullable SdkVersion
@Nullable TraceContext
void
serialize
(@NotNull JsonObjectWriter writer, @NotNull ILogger logger) void
setUnknown
(@Nullable Map<String, Object> unknown)
-
Constructor Details
-
SentryEnvelopeHeader
public SentryEnvelopeHeader(@Nullable @Nullable SentryId eventId, @Nullable @Nullable SdkVersion sdkVersion) -
SentryEnvelopeHeader
public SentryEnvelopeHeader(@Nullable @Nullable SentryId eventId, @Nullable @Nullable SdkVersion sdkVersion, @Nullable @Nullable TraceContext traceContext) -
SentryEnvelopeHeader
-
SentryEnvelopeHeader
public SentryEnvelopeHeader()
-
-
Method Details
-
getEventId
-
getSdkVersion
-
getTraceContext
-
serialize
public void serialize(@NotNull @NotNull JsonObjectWriter writer, @NotNull @NotNull ILogger logger) throws IOException - Specified by:
serialize
in interfaceJsonSerializable
- Throws:
IOException
-
getUnknown
- Specified by:
getUnknown
in interfaceJsonUnknown
-
setUnknown
- Specified by:
setUnknown
in interfaceJsonUnknown
-