Package io.sentry
Class SentryEnvelopeItem
java.lang.Object
io.sentry.SentryEnvelopeItem
-
Method Summary
Modifier and TypeMethodDescriptionstatic SentryEnvelopeItemfromAttachment(@NotNull ISerializer serializer, @NotNull ILogger logger, @NotNull Attachment attachment, long maxAttachmentSize) static SentryEnvelopeItemfromCheckIn(@NotNull ISerializer serializer, @NotNull CheckIn checkIn) static @NotNull SentryEnvelopeItemfromClientReport(@NotNull ISerializer serializer, @NotNull ClientReport clientReport) static @NotNull SentryEnvelopeItemfromEvent(@NotNull ISerializer serializer, @NotNull SentryBaseEvent event) static SentryEnvelopeItemfromLogs(@NotNull ISerializer serializer, @NotNull SentryLogEvents logEvents) static @NotNull SentryEnvelopeItemfromProfileChunk(@NotNull ProfileChunk profileChunk, @NotNull ISerializer serializer) static @NotNull SentryEnvelopeItemfromProfilingTrace(@NotNull ProfilingTraceData profilingTraceData, long maxTraceFileSize, @NotNull ISerializer serializer) static SentryEnvelopeItemfromReplay(@NotNull ISerializer serializer, @NotNull ILogger logger, @NotNull SentryReplayEvent replayEvent, @Nullable ReplayRecording replayRecording, boolean cleanupReplayFolder) static @NotNull SentryEnvelopeItemfromSession(@NotNull ISerializer serializer, @NotNull Session session) static SentryEnvelopeItemfromUserFeedback(@NotNull ISerializer serializer, @NotNull UserFeedback userFeedback) @Nullable ClientReportgetClientReport(@NotNull ISerializer serializer) @org.jetbrains.annotations.NotNull byte[]getData()@Nullable SentryEventgetEvent(@NotNull ISerializer serializer) @NotNull SentryEnvelopeItemHeader@Nullable SentryLogEventsgetLogs(@NotNull ISerializer serializer) @Nullable SentryTransactiongetTransaction(@NotNull ISerializer serializer)
-
Method Details
-
getData
- Throws:
Exception
-
getHeader
-
fromSession
@NotNull public static @NotNull SentryEnvelopeItem fromSession(@NotNull @NotNull ISerializer serializer, @NotNull @NotNull Session session) throws IOException - Throws:
IOException
-
getEvent
@Nullable public @Nullable SentryEvent getEvent(@NotNull @NotNull ISerializer serializer) throws Exception - Throws:
Exception
-
fromEvent
@NotNull public static @NotNull SentryEnvelopeItem fromEvent(@NotNull @NotNull ISerializer serializer, @NotNull @NotNull SentryBaseEvent event) -
getTransaction
@Nullable public @Nullable SentryTransaction getTransaction(@NotNull @NotNull ISerializer serializer) throws Exception - Throws:
Exception
-
getLogs
@Nullable public @Nullable SentryLogEvents getLogs(@NotNull @NotNull ISerializer serializer) throws Exception - Throws:
Exception
-
fromUserFeedback
public static SentryEnvelopeItem fromUserFeedback(@NotNull @NotNull ISerializer serializer, @NotNull @NotNull UserFeedback userFeedback) -
fromCheckIn
public static SentryEnvelopeItem fromCheckIn(@NotNull @NotNull ISerializer serializer, @NotNull @NotNull CheckIn checkIn) -
fromAttachment
public static SentryEnvelopeItem fromAttachment(@NotNull @NotNull ISerializer serializer, @NotNull @NotNull ILogger logger, @NotNull @NotNull Attachment attachment, long maxAttachmentSize) -
fromProfileChunk
@NotNull public static @NotNull SentryEnvelopeItem fromProfileChunk(@NotNull @NotNull ProfileChunk profileChunk, @NotNull @NotNull ISerializer serializer) throws SentryEnvelopeException - Throws:
SentryEnvelopeException
-
fromProfilingTrace
@NotNull public static @NotNull SentryEnvelopeItem fromProfilingTrace(@NotNull @NotNull ProfilingTraceData profilingTraceData, long maxTraceFileSize, @NotNull @NotNull ISerializer serializer) throws SentryEnvelopeException - Throws:
SentryEnvelopeException
-
fromClientReport
@NotNull public static @NotNull SentryEnvelopeItem fromClientReport(@NotNull @NotNull ISerializer serializer, @NotNull @NotNull ClientReport clientReport) throws IOException - Throws:
IOException
-
getClientReport
@Nullable public @Nullable ClientReport getClientReport(@NotNull @NotNull ISerializer serializer) throws Exception - Throws:
Exception
-
fromReplay
public static SentryEnvelopeItem fromReplay(@NotNull @NotNull ISerializer serializer, @NotNull @NotNull ILogger logger, @NotNull @NotNull SentryReplayEvent replayEvent, @Nullable @Nullable ReplayRecording replayRecording, boolean cleanupReplayFolder) -
fromLogs
public static SentryEnvelopeItem fromLogs(@NotNull @NotNull ISerializer serializer, @NotNull @NotNull SentryLogEvents logEvents)
-