Scope class

Scope data to be sent with the event

Constructors

Scope(SentryOptions _options)

Properties

attachments → List<SentryAttachment>
no setter
Unmodifiable List of breadcrumbs See also:
no setter
contexts → Map<String, dynamic>
Unmodifiable map of the scope contexts key/value See also:
no setter
eventProcessors → List<EventProcessor>
no setter
extra → Map<String, dynamic>
Arbitrary name/value pairs attached to the scope.
no setter
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
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
span ↔ ISentrySpan?
Returns active transaction or null if there is no active transaction.
getter/setter pair
tags → Map<String, String>
Name/value pairs that events can be searched by.
no setter
transaction ↔ String?
The name of the transaction which generated this event, for example, the route name: "/users/<username>/".
getter/setter pair
user → SentryUser?
Get the current user.
no setter

Methods

addAttachment(SentryAttachment attachment) → void
addBreadcrumb(Breadcrumb breadcrumb, {Hint? hint}) → Future<void>
Adds a breadcrumb to the breadcrumbs queue
addEventProcessor(EventProcessor eventProcessor) → void
Adds an event processor
applyToEvent(SentryEvent event, Hint hint) → Future<SentryEvent?>
clear() → Future<void>
Resets the Scope to its default state
clearAttachments() → void
clearBreadcrumbs() → Future<void>
Clear all the breadcrumbs
clone() → Scope
Clones the current Scope
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeContexts(String key) → Future<void>
Removes a value from the Scope's contexts
removeExtra(String key) → Future<void>
Removes an extra from the Scope
removeTag(String key) → Future<void>
Removes a tag from the Scope
setContexts(String key, dynamic value) → Future<void>
add an entry to the Scope's contexts
setExtra(String key, dynamic value) → Future<void>
Sets an extra to the Scope
setTag(String key, String value) → Future<void>
Sets a tag to the Scope
setUser(SentryUser? user) → Future<void>
Set the current user.
toString() → String
A string representation of this object.
inherited

Operators

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