Scope
The Scope holds useful information that should be sent along with the event. For instance contexts or breadcrumbs are stored on the scope.
Users should not need to implement this interface instead the Scope should be provided by the SDK. Different platforms have specific scope providers that are used internally:
For JVM: io.sentry.kotlin.multiplatform.JvmScopeProvider
For Cocoa: io.sentry.kotlin.multiplatform.CocoaScopeProvider
Functions
Adds an attachment to the Scope's list of attachments. The SDK adds the attachment to every event and transaction sent to Sentry.
Adds a breadcrumb to the breadcrumbs queue
Clear all attachments
Clear all the breadcrumbs
Returns the Scope's contexts
Returns the scope's tags
Removes a value from the Scope's contexts
Removes an extra from the Scope's extras
Sets the Scope's contexts
Sets the Scope's context