UNPKG

1.01 kBTypeScriptView Raw
1import { Event, EventHint, EventProcessor, Hub, Integration } from '@sentry/types';
2/** JSDoc */
3interface ExtraErrorDataOptions {
4 depth?: number;
5}
6/** Patch toString calls to return proper name for wrapped functions */
7export declare class ExtraErrorData implements Integration {
8 /**
9 * @inheritDoc
10 */
11 static id: string;
12 /**
13 * @inheritDoc
14 */
15 name: string;
16 /** JSDoc */
17 private readonly _options;
18 /**
19 * @inheritDoc
20 */
21 constructor(options?: ExtraErrorDataOptions);
22 /**
23 * @inheritDoc
24 */
25 setupOnce(addGlobalEventProcessor: (callback: EventProcessor) => void, getCurrentHub: () => Hub): void;
26 /**
27 * Attaches extracted information from the Error object to extra field in the Event
28 */
29 enhanceEventWithErrorData(event: Event, hint?: EventHint): Event;
30 /**
31 * Extract extra information from the Error object
32 */
33 private _extractErrorData;
34}
35export {};
36//# sourceMappingURL=extraerrordata.d.ts.map
\No newline at end of file