SentryEvent class

An event to be reported to Sentry.io.

Annotations
  • @immutable

Constructors

SentryEvent({SentryId? eventId, DateTime? timestamp, Map<String, String>? modules, Map<String, String>? tags, Map<String, dynamic>? extra, List<String>? fingerprint, List<Breadcrumb>? breadcrumbs, SdkVersion? sdk, String? platform, String? logger, String? serverName, String? release, String? dist, String? environment, SentryMessage? message, String? transaction, dynamic throwable, SentryStackTrace? stackTrace, SentryException? exception, SentryLevel? level, String? culprit, SentryUser? user, Contexts? contexts, SentryRequest? request, DebugMeta? debugMeta})
Creates an event.

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
exception SentryException?
an exception or error that occurred in a program TODO more doc
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?
an optional attached StackTrace used when event has no throwable or exception, see SentryOptions.attachStacktrace
final
tags Map<String, String>?
Name/value pairs that events can be searched by.
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 breadcrumb occurred.
final
transaction String?
The name of the transaction which generated this event, for example, the route name: "/users/<username>/".
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, SentryException? exception, dynamic stackTrace, 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}) SentryEvent
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.