Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/sentry_deno/main.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/main.ts";

Classes

Default Breadcrumbs instrumentations TODO: Deprecated - with v6, this will be renamed to Instrument

The Sentry Browser SDK Client.

Deduplication filter

Patch toString calls to return proper name for wrapped functions

Global handlers

HttpContext integration collects information about HTTP request headers

Inbound filters configurable by the user

Adds SDK info to an event.

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

Wrap timer functions and event targets to catch errors and provide better meta data

Enums

E
Severity
deprecated

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.

Call close() on the current client, if there is one. See Client.close.

Callback to set context information onto the scope.

Creates an instance of a Sentry Transport

Call flush() on the current client, if there is one. See Client.flush.

This function is here to be API compatible with the loader.

Returns the default hub instance.

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

The Sentry Browser SDK Client.

This is the getter for lastEventId.

Creates a Transport that uses the Fetch API to send events to Sentry.

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

This function is here to be API compatible with the loader.

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.

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.

Present the user with a report dialog.

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

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

Wrap code within a try/catch block so the SDK is able to capture errors.

Interfaces

JSDoc

JSDoc

Configuration options for the Sentry Browser SDK.

JSDoc

JSDoc

JSDoc

All properties the report dialog supports

Request data included in an event as sent to Sentry

JSDoc

JSDoc

JSDoc

JSDoc