import * as sentry from "https://deno.land/x/sentry@8.37.1/index.d.ts";
Classes
The Sentry Deno SDK Client. |
Variables
Adds a breadcrumbs for console, fetch, and sentry events. | |
Send Console API calls as Sentry Events. | |
Adds source context to event stacktraces. | |
Continue a trace from | |
Deduplication filter. | |
Adds Deno related context to events. This includes contexts about app, device, os, v8, and TypeScript. | |
Instruments Deno.cron to automatically capture cron check-ins. | |
Patch toString calls to return proper name for wrapped functions. | |
Instruments global | |
The metrics API is used to capture custom metrics in Sentry. | |
Normalises paths to the app root directory. | |
Add data about a request to an event. Primarily for use in Node-based SDKs, but included in | |
Rewrite event frames paths. | |
Use this attribute to represent the operation of a span. | |
Use this attribute to represent the origin of a span. | |
Use this attribute to represent the sample rate used for a span. | |
Use this attribute to represent the source of a span. Should be one of: custom, url, route, view, component, task, unknown | |
This function adds duration since the sessionTimingIntegration was initialized till the time event was sent. | |
Functions
Records a new breadcrumb which will be attached to future events. | |
Add an event processor. This will be added to the current isolation scope, ensuring any event that is processed in the current execution context will have the processor applied. | |
Create a cron monitor check in and send it to Sentry. | |
Captures a manually created event and sends it to Sentry. | |
Captures an exception event and sends it to Sentry. | |
Send user feedback to Sentry. | |
Captures a message event and sends it to Sentry. | |
Sends the current session on the scope to Sentry | |
Call | |
Creates an instance of a Sentry | |
End the session on the current isolation scope. | |
Call | |
Returns the currently active span. | |
Get the currently active client. | |
Get the currently active scope. | |
Get the default integrations for the Deno SDK. | |
Get the global scope. This scope is applied to all events. | |
Get the currently active isolation scope. The isolation scope is active for the current execution context. | |
Returns the root span of a given span. | |
Converts a HTTP status code into a sentry status with a message. | |
Extracts trace propagation data from the current span or from the client's scope (via transaction or propagation
context) and serializes it to | |
Returns a string of meta tags that represent the current trace data. | |
f init | The Sentry Deno SDK Client. |
Returns true if Sentry has been properly initialized. | |
The last error event id of the isolation scope. | |
Sets context data with the given name. | |
Make the given client the current client. | |
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. | |
Sets the Http status attributes on the current span based on the http code. Additionally, the span's status is updated, depending on the http code. | |
Adds a measurement to the active transaction on the current global scope. You can optionally pass in a different span as the 4th parameter. | |
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. | |
Convert a Span to a baggage header. | |
Convert a span to a JSON representation. | |
Convert a Span to a Sentry trace header. | |
Creates a span. This span is not set as active, so will not get automatic instrumentation spans
as children or be able to be accessed via | |
Starts a new trace for the duration of the provided callback. Spans started within the callback will be part of the new trace instead of a potentially previously started trace. | |
Start a session on the current isolation scope. | |
Wraps a function with a transaction/span and finishes the span after the function is done.
The created span is the active span and will be used as parent by other spans created inside the function
and can be accessed via | |
Similar to | |
Suppress tracing in the given callback, ensuring no spans are generated inside of it. | |
Set the provided isolation scope as active in the given callback. If no async context strategy is set, the isolation scope and the current scope will not be forked (this is currently the case, for example, in the browser). | |
Wraps a callback with a cron monitor check in. The check in will be sent to Sentry when the callback finishes. | |
Set the given scope as the active scope in the callback. |
Interfaces
Sentry uses breadcrumbs to create a trail of events that happened prior to an issue. These events are very similar to traditional logs but can record more rich structured data. | |
JSDoc | |
Configuration options for the Sentry Deno SDK | |
An event to be sent to Sentry. | |
JSDoc | |
JSDoc | |
Request data included in an event as sent to Sentry | |
I Span | A generic Span which holds trace data. |
JSDoc | |
JSDoc | |
JSDoc | |
I User | An interface describing a user of an application or a handled request. |
Type Aliases
Options deciding what parts of the request to use when enhancing an event | |
A | |
Holds additional event information. | |