SentryTransaction class

Inheritance

Constructors

SentryTransaction(SentryTracer tracer, {SentryId? eventId, DateTime? timestamp, String? platform, String? serverName, String? release, String? dist, String? environment, String? transaction, dynamic throwable, Map<String, String>? tags, @Deprecated('Additional Data is deprecated in favor of structured [Contexts] and should be avoided when possible') Map<String, dynamic>? extra, SentryUser? user, Contexts? contexts, List<Breadcrumb>? breadcrumbs, SdkVersion? sdk, SentryRequest? request, String? type, Map<String, SentryMeasurement>? measurements, SentryTransactionInfo? transactionInfo})

Properties

List of breadcrumbs for this event.
getter/setter pairinherited
contexts Contexts
The context interfaces provide additional context data. Typically this is data related to the current user, the current HTTP request.
getter/setter pairinherited
culprit String?
What caused this event to be logged.
getter/setter pairinherited
debugMeta DebugMeta?
The debug meta interface carries debug information for processing errors and crash reports.
getter/setter pairinherited
dist String?
The distribution of the application.
getter/setter pairinherited
environment String?
The environment that logged the event, e.g. "production", "staging".
getter/setter pairinherited
eventId SentryId
The ID Sentry.io assigned to the submitted event for future reference.
getter/setter pairinherited
exceptions List<SentryException>?
One or multiple chained (nested) exceptions that occurred in a program.
getter/setter pairinherited
extra Map<String, dynamic>?
Arbitrary name/value pairs attached to the event.
getter/setter pairinherited
fingerprint List<String>?
Used to deduplicate events by grouping ones with the same fingerprint together.
getter/setter pairinherited
finished bool
no setter
hashCode int
The hash code for this object.
no setterinherited
level SentryLevel?
How important this event is.
getter/setter pairinherited
logger String?
The logger that logged the event.
getter/setter pairinherited
measurements Map<String, SentryMeasurement>
latefinal
message SentryMessage?
Event message.
getter/setter pairinherited
modules Map<String, String>?
A list of relevant modules and their versions.
getter/setter pairinherited
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 pairinherited
release String?
The version of the application that logged the event.
getter/setter pairinherited
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 pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sampled bool
no setter
sdk SdkVersion?
The SDK Interface describes the Sentry SDK and its configuration used to capture and transmit an event.
getter/setter pairinherited
serverName String?
Identifies the server that logged this event.
getter/setter pairinherited
spans List<SentrySpan>
latefinal
startTimestamp DateTime
latefinal
tags Map<String, String>?
Name/value pairs that events can be searched by.
getter/setter pairinherited
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 pairinherited
throwable → dynamic
An object that was thrown.
no setterinherited
throwableMechanism → dynamic
A throwable decorator that holds a Mechanism related to the decorated throwable
no setterinherited
timestamp DateTime?
A timestamp representing when the event occurred.
getter/setter pairinherited
transaction String?
The name of the transaction which generated this event, for example, the route name: "/users/<username>/".
getter/setter pairinherited
transactionInfo SentryTransactionInfo?
latefinal
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 pairinherited
user SentryUser?
Information about the current user.
getter/setter pairinherited

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, Map<String, SentryMeasurement>? measurements, SentryTransactionInfo? transactionInfo}) SentryTransaction
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this event to JSON.
override
toString() String
A string representation of this object.
inherited

Operators

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