Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/sentry_deno/packages/hub/src/index.ts

Unofficial port of the Sentry SDK for JavaScript to Deno.
Latest
import * as sentryDeno from "https://deno.land/x/sentry_deno@v0.2.2/packages/hub/src/index.ts";

Classes

Holds additional event information. Scope.applyToEvent will be called by the client before an event will be sent.

Functions

Records a new breadcrumb which will be attached to future events.

Add a EventProcessor to be kept globally.

Captures a manually created event and sends it to Sentry.

Captures an exception event and sends it to Sentry.

Captures a message event and sends it to Sentry.

Closes a session by setting its status and updating the session object with it. Internally calls updateSession to update the passed session object.

Callback to set context information onto the scope.

Returns the default hub instance.

This will create a new Hub and add to the passed object on SENTRY.hub.

Returns the global shim registry.

Replaces the current main hub with the passed one on the global object

Creates a new Session object by setting certain default parameters. If optional @param context is passed, the passed properties are applied to the session object.

Sets context data with the given name.

Set key:value that will be sent as extra data with the event.

Set an object that will be merged sent as extra data with the event.

This will set passed Hub on the passed object's SENTRY.hub attribute

Set key:value that will be sent as tags data with the event.

Set an object that will be merged sent as tags data with the event.

Updates user context information for future events.

Starts a new Transaction and returns it. This is the entry point to manual tracing instrumentation.

Updates a session object with the properties passed in the context.

Creates a new scope with and executes the given operation within. The scope is automatically removed once the operation finishes or throws.

Interfaces

An object that contains a hub and maintains a scope stack.

A layer in the process stack.