Files
klz-cables.com/.pnpm-store/v10/files/34/b7142e95fc30b1978e7019eb44dc1c770696f099d5ccc95b9ed68ae552708bfe487cd656f14ce6217291f7028248c139d62ca060464f70b7e1d6ff70771037
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

52 lines
2.3 KiB
Plaintext

/**
* Metadata about a captured exception, intended to provide a hint as to the means by which it was captured.
*/
export interface Mechanism {
/**
* For now, restricted to `onerror`, `onunhandledrejection` (both obvious), `instrument` (the result of
* auto-instrumentation), and `generic` (everything else). Converted to a tag on ingest.
*/
type: string;
/**
* 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.
*/
handled?: boolean;
/**
* 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.
*/
data?: {
[key: string]: string | boolean;
};
/**
* True when `captureException` is called with anything other than an instance of `Error` (or, in the case of browser,
* an instance of `ErrorEvent`, `DOMError`, or `DOMException`). causing us to create a synthetic error in an attempt
* to recreate the stacktrace.
*/
synthetic?: boolean;
/**
* Describes the source of the exception, in the case that this is a derived (linked or aggregate) error.
*
* This should be populated with the name of the property where the exception was found on the parent exception.
* E.g. "cause", "errors[0]", "errors[1]"
*/
source?: string;
/**
* Indicates whether the exception is an `AggregateException`.
*/
is_exception_group?: boolean;
/**
* An identifier for the exception inside the `event.exception.values` array. This identifier is referenced to via the
* `parent_id` attribute to link and aggregate errors.
*/
exception_id?: number;
/**
* References another exception via the `exception_id` field to indicate that this exception is a child of that
* exception in the case of aggregate or linked errors.
*/
parent_id?: number;
}
//# sourceMappingURL=mechanism.d.ts.map