import { Scope } from "https://deno.land/x/sentry@8.0.0-rc.3/index.mjs";
Holds additional event information.
Properties
protected
_breadcrumbs: Breadcrumb[]Array of breadcrumbs.
Callback list that will be called during event processing.
protected
optional
_level: SeverityLevelSeverity
protected
_scopeListeners: Array<(scope: Scope) => void>Callback for client to receive scope changes.
A place to stash data which is needed at some point in the SDK's event processing pipeline but which shouldn't get sent to Sentry
protected
optional
_session: SessionSession
Transaction Name
IMPORTANT: The transaction name on the scope has nothing to do with root spans/transaction objects. It's purpose is to assign a transaction to the scope that's added to non-transaction events.
protected
_user: UserUser
Methods
protected
_notifyScopeListeners(): voidThis will be called on every set call.
addAttachment(attachment: Attachment): this
addBreadcrumb(breadcrumb: Breadcrumb, maxBreadcrumbs?: number): this
addEventProcessor(callback: EventProcessor): this
addScopeListener(callback: (scope: Scope) => void): void
captureEvent(event: Event, hint?: EventHint): string
captureException(exception: unknown, hint?: EventHint): string
captureMessage(): string
clear(): this
clearAttachments(): this
clearBreadcrumbs(): this
getClient<C extends Client>(): C | undefined
getLastBreadcrumb(): Breadcrumb | undefined
getPropagationContext(): PropagationContext
getRequestSession(): RequestSession | undefined
getScopeData(): ScopeData
getSession(): Session | undefined
setClient(client: Client | undefined): void
setContext(key: string, context: Context | null): this
setExtra(key: string, extra: Extra): this
setExtras(extras: Extras): this
setFingerprint(fingerprint: string[]): this
setLevel(level: SeverityLevel): this
setPropagationContext(context: PropagationContext): this
setRequestSession(requestSession?: RequestSession): this
setSDKProcessingMetadata(newData: { [key: string]: unknown; }): this
setSession(session?: Session): this
setTag(key: string, value: Primitive): this
setTags(tags: { [key: string]: Primitive; }): this
setTransactionName(name?: string): this
update(captureContext?: CaptureContext): this