import { Scope } from "https://deno.land/x/sentry@7.91.0/index.d.ts";
Holds additional event information. Scope.applyToEvent will be called by the client before an event will be sent.
Properties
protected
_scopeListeners: Array<(scope: Scope) => void>Callback for client to receive scope changes.
Methods
addAttachment(attachment: Attachment): this
addBreadcrumb(breadcrumb: Breadcrumb, maxBreadcrumbs?: number): this
addEventProcessor(callback: EventProcessor): this
addScopeListener(callback: (scope: Scope) => void): void
Add internal on change listener. Used for sub SDKs that need to store the scope.
deprecated
applyToEvent(): PromiseLike<Event | null>Applies data from the scope to the event and runs all event processors on it.
clear(): this
clearAttachments(): this
clearBreadcrumbs(): this
deprecated
getAttachments(): Attachment[]getLastBreadcrumb(): Breadcrumb | undefined
getPropagationContext(): PropagationContext
getRequestSession(): RequestSession | undefined
getScopeData(): ScopeData
getSession(): Session | undefined
getSpan(): Span$1 | undefined
getTransaction(): Transaction | undefined
setContext(key: string, context: Context | null): this
setExtra(key: string, extra: Extra): this
setExtras(extras: Extras): this
setFingerprint(fingerprint: string[]): this
setLevel(level: Severity | SeverityLevel): this
setPropagationContext(context: PropagationContext): this
setRequestSession(requestSession?: RequestSession): this
setSDKProcessingMetadata(newData: { [key: string]: unknown; }): this
Add data which will be accessible during event processing but won't get sent to Sentry
setSession(session?: Session): this
setSpan(span?: Span$1): this
setTag(key: string, value: Primitive): this
setTags(tags: { [key: string]: Primitive; }): this
setTransactionName(name?: string): this
update(captureContext?: CaptureContext): this