import { Scope } from "https://dotland.deno.dev/x/sentry_deno@v0.2.2/main.ts";
Holds additional event information. {@link 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
private
_applyFingerprint(event: Event): voidApplies 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
_notifyEventProcessors(): PromiseLike<Event | null>This will be called after {@link applyToEvent} is finished.
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(event: Event, hint?: EventHint): PromiseLike<Event | null>
Applies the current context and fingerprint to the event. Note that breadcrumbs will be added by the client. Also if the event has already breadcrumbs on it, we do not merge them.
clear(): this
clearAttachments(): this
clearBreadcrumbs(): this
getAttachments(): Attachment[]
getRequestSession(): RequestSession | undefined
getSession(): Session | undefined
getSpan(): Span | 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
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): this
setTag(key: string, value: Primitive): this
setTags(tags: { [key: string]: Primitive; }): this
setTransactionName(name?: string): this
update(captureContext?: CaptureContext): this