UNPKG

1.03 kBTypeScriptView Raw
1import type { Event, EventHint, Exception, ExtendedError, Integration, StackParser } from '@sentry/types';
2interface LinkedErrorsOptions {
3 key: string;
4 limit: number;
5}
6/** Adds SDK info to an event. */
7export declare class LinkedErrors implements Integration {
8 /**
9 * @inheritDoc
10 */
11 static id: string;
12 /**
13 * @inheritDoc
14 */
15 readonly name: string;
16 /**
17 * @inheritDoc
18 */
19 private readonly _key;
20 /**
21 * @inheritDoc
22 */
23 private readonly _limit;
24 /**
25 * @inheritDoc
26 */
27 constructor(options?: Partial<LinkedErrorsOptions>);
28 /**
29 * @inheritDoc
30 */
31 setupOnce(): void;
32}
33/**
34 * @inheritDoc
35 */
36export declare function _handler(parser: StackParser, key: string, limit: number, event: Event, hint?: EventHint): Event | null;
37/**
38 * JSDOC
39 */
40export declare function _walkErrorTree(parser: StackParser, limit: number, error: ExtendedError, key: string, stack?: Exception[]): Exception[];
41export {};
42//# sourceMappingURL=linkederrors.d.ts.map
\No newline at end of file