SentryEvent class

An event to be reported to Sentry.io.

Mixed-in types
Implementers
Annotations
  • @immutable

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.
final
contexts Contexts
The context interfaces provide additional context data. Typically this is data related to the current user, the current HTTP request.
final
culprit String?
What caused this event to be logged.
final
debugMeta DebugMeta?
The debug meta interface carries debug information for processing errors and crash reports.
final
dist String?
The distribution of the application.
final
environment String?
The environment that logged the event, e.g. "production", "staging".
final
eventId SentryId
The ID Sentry.io assigned to the submitted event for future reference.
final
exceptions List<SentryException>?
One or multiple chained (nested) exceptions that occurred in a program.
final
extra Map<String, dynamic>?
Arbitrary name/value pairs attached to the event.
final
fingerprint List<String>?
Used to deduplicate events by grouping ones with the same fingerprint together.
final
hashCode int
The hash code for this object.
no setterinherited
level SentryLevel?
How important this event is.
final
logger String?
The logger that logged the event.
final
message SentryMessage?
Event message.
final
modules Map<String, String>?
A list of relevant modules and their versions.
final
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.
final
release String?
The version of the application that logged the event.
final
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
final
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.
final
serverName String?
Identifies the server that logged this event.
final
stacktrace SentryStackTrace?
no setter
tags Map<String, String>?
Name/value pairs that events can be searched by.
final
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.
final
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.
final
transaction String?
The name of the transaction which generated this event, for example, the route name: "/users/<username>/".
final
type String?
The event type determines how Sentry handles the event and has an impact on processing, rate limiting, and quotas. defaults to 'default'
final
unknown Map<String, dynamic>?
final
user SentryUser?
Information about the current user.
final

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.