UNPKG

1 kBTypeScriptView Raw
1import type { Event, EventHint, Integration, IntegrationClass } from '@sentry/types';
2interface ExtraErrorDataOptions {
3 /**
4 * The object depth up to which to capture data on error objects.
5 */
6 depth: number;
7 /**
8 * Whether to capture error causes.
9 *
10 * More information: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/cause
11 */
12 captureErrorCause: boolean;
13}
14export declare const extraErrorDataIntegration: (options?: Partial<ExtraErrorDataOptions> | undefined) => import("@sentry/types").IntegrationFnResult;
15/**
16 * Extract additional data for from original exceptions.
17 * @deprecated Use `extraErrorDataIntegration()` instead.
18 */
19export declare const ExtraErrorData: IntegrationClass<Integration & {
20 processEvent: (event: Event, hint: EventHint) => Event;
21}> & (new (options?: Partial<{
22 depth: number;
23 captureErrorCause: boolean;
24}>) => Integration);
25export {};
26//# sourceMappingURL=extraerrordata.d.ts.map
\No newline at end of file