SentryEnvelope class

Class representation of Envelope file.

Constructors

SentryEnvelope.new(SentryEnvelopeHeader header, List<SentryEnvelopeItem> items, {bool containsUnhandledException = false})
SentryEnvelope.fromEvent(SentryEvent event, SdkVersion sdkVersion, {String? dsn, SentryTraceContextHeader? traceContext, List<SentryAttachment>? attachments})
Create a SentryEnvelope containing one SentryEnvelopeItem which holds the SentryEvent data.
factory
SentryEnvelope.fromLogs(List<SentryLog> items, SdkVersion sdkVersion)
factory
SentryEnvelope.fromTransaction(SentryTransaction transaction, SdkVersion sdkVersion, {String? dsn, SentryTraceContextHeader? traceContext, List<SentryAttachment>? attachments})
Create a SentryEnvelope containing one SentryEnvelopeItem which holds the SentryTransaction data.
factory

Properties

containsUnhandledException bool
Whether the envelope contains an unhandled exception. This is used to determine if the native SDK should start a new session.
final
hashCode int
The hash code for this object.
no setterinherited
Header describing envelope content.
final
items List<SentryEnvelopeItem>
All items contained in the envelope.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addClientReport(ClientReport? clientReport) → void
Add an envelope item containing client report data.
envelopeStream(SentryOptions options) Stream<List<int>>
Stream binary data representation of Envelope file encoded.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited