SentryEvent class
An event to be reported to Sentry.io.
- Mixed-in types
Constructors
-
SentryEvent({SentryId? eventId, DateTime? timestamp, Map<
String, String> ? modules, Map<String, String> ? tags, @Deprecated('Additional Data is deprecated in favor of structured [Contexts] and should be avoided when possible') Map<String, dynamic> ? extra, List<String> ? fingerprint, List<Breadcrumb> ? breadcrumbs, List<SentryException> ? exceptions, List<SentryThread> ? threads, SdkVersion? sdk, String? platform, String? logger, String? serverName, String? release, String? dist, String? environment, SentryMessage? message, String? transaction, dynamic throwable, SentryLevel? level, String? culprit, SentryUser? user, Contexts? contexts, SentryRequest? request, DebugMeta? debugMeta, String? type, Map<String, dynamic> ? unknown}) - Creates an event.
-
SentryEvent.fromJson(Map<
String, dynamic> data) -
Deserializes a SentryEvent from JSON Map.
factory
Properties
-
List of breadcrumbs for this event.
getter/setter pair
- contexts ↔ Contexts
-
The context interfaces provide additional context data.
Typically this is data related to the current user,
the current HTTP request.
getter/setter pair
- culprit ↔ String?
-
What caused this event to be logged.
getter/setter pair
- debugMeta ↔ DebugMeta?
-
The debug meta interface carries debug information for processing errors
and crash reports.
getter/setter pair
- dist ↔ String?
-
The distribution of the application.
getter/setter pair
- environment ↔ String?
-
The environment that logged the event, e.g. "production", "staging".
getter/setter pair
- eventId ↔ SentryId
-
The ID Sentry.io assigned to the submitted event for future reference.
getter/setter pair
-
exceptions
↔ List<
SentryException> ? -
One or multiple chained (nested) exceptions that occurred in a program.
getter/setter pair
-
extra
↔ Map<
String, dynamic> ? -
Arbitrary name/value pairs attached to the event.
getter/setter pair
-
fingerprint
↔ List<
String> ? -
Used to deduplicate events by grouping ones with the same fingerprint
together.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- level ↔ SentryLevel?
-
How important this event is.
getter/setter pair
- logger ↔ String?
-
The logger that logged the event.
getter/setter pair
- message ↔ SentryMessage?
-
Event message.
getter/setter pair
-
modules
↔ Map<
String, String> ? -
A list of relevant modules and their versions.
getter/setter pair
- platform ↔ String?
-
A string representing the platform the SDK is submitting from. This will be used by the Sentry interface to customize various components in the interface.
getter/setter pair
- release ↔ String?
-
The version of the application that logged the event.
getter/setter pair
- request ↔ SentryRequest?
-
Contains information on a HTTP request related to the event.
In client, this can be an outgoing request, or the request that rendered
the current web page.
On server, this could be the incoming web request that is being handled
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sdk ↔ SdkVersion?
-
The SDK Interface describes the Sentry SDK and its configuration used
to capture and transmit an event.
getter/setter pair
- serverName ↔ String?
-
Identifies the server that logged this event.
getter/setter pair
-
Name/value pairs that events can be searched by.
getter/setter pair
-
threads
↔ List<
SentryThread> ? -
The Threads Interface specifies threads that were running at the time an
event happened. These threads can also contain stack traces.
Typically not needed in Dart applications.
getter/setter pair
- throwable → dynamic
-
An object that was thrown.
no setter
- throwableMechanism → dynamic
-
A throwable decorator that holds a Mechanism related to the decorated
throwable
no setter
- timestamp ↔ DateTime?
-
A timestamp representing when the event occurred.
getter/setter pair
- transaction ↔ String?
-
The name of the transaction which generated this event,
for example, the route name:
"/users/<username>/".getter/setter pair - type ↔ String?
-
The event type determines how Sentry handles the event and has an impact
on processing, rate limiting, and quotas.
defaults to 'default'
getter/setter pair
- user ↔ SentryUser?
-
Information about the current user.
getter/setter pair
Methods
-
copyWith(
{SentryId? eventId, DateTime? timestamp, String? platform, String? logger, String? serverName, String? release, String? dist, String? environment, Map< String, String> ? modules, SentryMessage? message, String? transaction, dynamic throwable, SentryLevel? level, String? culprit, Map<String, String> ? tags, Map<String, dynamic> ? extra, List<String> ? fingerprint, SentryUser? user, Contexts? contexts, List<Breadcrumb> ? breadcrumbs, SdkVersion? sdk, SentryRequest? request, DebugMeta? debugMeta, List<SentryException> ? exceptions, List<SentryThread> ? threads, String? type}) → SentryEvent -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Serializes this event to JSON.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- defaultFingerprint → const String
- Refers to the default fingerprinting algorithm.