import { Hub } from "https://deno.land/x/sentry_deno@v0.2.2/packages/browser/src/exports.ts";
Constructors
Methods
private
_callExtensionMethod<T>(method: string, ...args: any[]): TCalls global extension method and binding current instance to the function call
private
_sendSessionUpdate(): voidSends the current Session on the scope
private
_withClient(callback: (client: Client, scope: Scope | undefined) => void): voidInternal helper function to call a method on the top client if it exists.
addBreadcrumb(breadcrumb: Breadcrumb, hint?: BreadcrumbHint): void
bindClient(client?: Client): void
captureEvent(event: Event, hint?: EventHint): string
captureException(exception: any, hint?: EventHint): string
captureMessage(): string
captureSession(endSession?: boolean): void
configureScope(callback: (scope: Scope) => void): void
endSession(): void
getClient<C extends Client>(): C | undefined
getIntegration<T extends Integration>(integration: IntegrationClass<T>): T | null
getStack(): Layer[]
Returns the scope stack for domains or the process.
getStackTop(): Layer
Returns the topmost scope layer in the order domain > local > process.
isOlderThan(version: number): boolean
lastEventId(): string | undefined
popScope(): boolean
setContext(name: string, context: { [key: string]: any; } | null): void
setExtra(key: string, extra: Extra): void
setExtras(extras: Extras): void
setTag(key: string, value: Primitive): void
setTags(tags: { [key: string]: Primitive; }): void
shouldSendDefaultPii(): boolean
Returns if default PII should be sent to Sentry and propagated in ourgoing requests when Tracing is used.
startSession(context?: SessionContext): Session
startTransaction(context: TransactionContext, customSamplingContext?: CustomSamplingContext): Transaction
traceHeaders(): { [key: string]: string; }