Package io.sentry
Class SentryEnvelopeItem
- java.lang.Object
-
- io.sentry.SentryEnvelopeItem
-
@Internal public final class SentryEnvelopeItem extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SentryEnvelopeItem
fromAttachment(@NotNull Attachment attachment, long maxAttachmentSize)
static @NotNull SentryEnvelopeItem
fromClientReport(@NotNull ISerializer serializer, @NotNull ClientReport clientReport)
static @NotNull SentryEnvelopeItem
fromEvent(@NotNull ISerializer serializer, @NotNull SentryBaseEvent event)
static @NotNull SentryEnvelopeItem
fromProfilingTrace(@NotNull ProfilingTraceData profilingTraceData, long maxTraceFileSize, @NotNull ISerializer serializer)
static @NotNull SentryEnvelopeItem
fromSession(@NotNull ISerializer serializer, @NotNull Session session)
static SentryEnvelopeItem
fromUserFeedback(@NotNull ISerializer serializer, @NotNull UserFeedback userFeedback)
@Nullable ClientReport
getClientReport(@NotNull ISerializer serializer)
@org.jetbrains.annotations.NotNull byte[]
getData()
@Nullable SentryEvent
getEvent(@NotNull ISerializer serializer)
@NotNull SentryEnvelopeItemHeader
getHeader()
@Nullable SentryTransaction
getTransaction(@NotNull ISerializer serializer)
-
-
-
Method Detail
-
getData
@NotNull public @org.jetbrains.annotations.NotNull byte[] getData() throws java.lang.Exception
- Throws:
java.lang.Exception
-
getHeader
@NotNull public @NotNull SentryEnvelopeItemHeader getHeader()
-
fromSession
@NotNull public static @NotNull SentryEnvelopeItem fromSession(@NotNull @NotNull ISerializer serializer, @NotNull @NotNull Session session) throws java.io.IOException
- Throws:
java.io.IOException
-
getEvent
@Nullable public @Nullable SentryEvent getEvent(@NotNull @NotNull ISerializer serializer) throws java.lang.Exception
- Throws:
java.lang.Exception
-
fromEvent
@NotNull public static @NotNull SentryEnvelopeItem fromEvent(@NotNull @NotNull ISerializer serializer, @NotNull @NotNull SentryBaseEvent event) throws java.io.IOException
- Throws:
java.io.IOException
-
getTransaction
@Nullable public @Nullable SentryTransaction getTransaction(@NotNull @NotNull ISerializer serializer) throws java.lang.Exception
- Throws:
java.lang.Exception
-
fromUserFeedback
public static SentryEnvelopeItem fromUserFeedback(@NotNull @NotNull ISerializer serializer, @NotNull @NotNull UserFeedback userFeedback)
-
fromAttachment
public static SentryEnvelopeItem fromAttachment(@NotNull @NotNull Attachment attachment, long maxAttachmentSize)
-
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 java.io.IOException
- Throws:
java.io.IOException
-
getClientReport
@Nullable public @Nullable ClientReport getClientReport(@NotNull @NotNull ISerializer serializer) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-