import { Scope } from "https://deno.land/x/sentry@7.77.0/index.d.ts";
Holds additional event information. Scope.applyToEvent will be called by the client before an event will be sent.
Properties
Applies fingerprint from the scope to the event if there's one, uses message if there's one instead or get rid of empty fingerprint
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.
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
getAttachments(): Attachment[]
getLastBreadcrumb(): Breadcrumb | undefined
getPropagationContext(): PropagationContext
getRequestSession(): RequestSession | undefined
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