UNPKG

1.07 kBTypeScriptView Raw
1import { Event, EventProcessor, Hub, Integration, StackFrame } from '@sentry/types';
2declare type StackFrameIteratee = (frame: StackFrame) => StackFrame;
3/** Rewrite event frames paths */
4export declare class RewriteFrames implements Integration {
5 /**
6 * @inheritDoc
7 */
8 static id: string;
9 /**
10 * @inheritDoc
11 */
12 name: string;
13 /**
14 * @inheritDoc
15 */
16 private readonly _root?;
17 /**
18 * @inheritDoc
19 */
20 private readonly _prefix;
21 /**
22 * @inheritDoc
23 */
24 constructor(options?: {
25 root?: string;
26 prefix?: string;
27 iteratee?: StackFrameIteratee;
28 });
29 /**
30 * @inheritDoc
31 */
32 setupOnce(addGlobalEventProcessor: (callback: EventProcessor) => void, getCurrentHub: () => Hub): void;
33 /** JSDoc */
34 process(originalEvent: Event): Event;
35 /**
36 * @inheritDoc
37 */
38 private readonly _iteratee;
39 /** JSDoc */
40 private _processExceptionsEvent;
41 /** JSDoc */
42 private _processStacktrace;
43}
44export {};
45//# sourceMappingURL=rewriteframes.d.ts.map
\No newline at end of file