import { type Mechanism } from "https://deno.land/x/sentry_deno@v0.2.2/packages/types/src/mechanism.ts";
Metadata about a captured exception, intended to provide a hint as to the means by which it was captured.
Properties
For now, restricted to onerror
, onunhandledrejection
(both obvious), instrument
(the result of
auto-instrumentation), and generic
(everything else). Converted to a tag on ingest.
In theory, whether or not the exception has been handled by the user. In practice, whether or not we see it before it hits the global error/rejection handlers, whether through explicit handling by the user or auto instrumentation. Converted to a tag on ingest and used in various ways in the UI.
Arbitrary data to be associated with the mechanism (for example, errors coming from event handlers include the handler name and the event target. Will show up in the UI directly above the stacktrace.