1 | /** Object describing handler that will be triggered for a given `type` of instrumentation */
|
2 | interface InstrumentHandler {
|
3 | type: InstrumentHandlerType;
|
4 | callback: InstrumentHandlerCallback;
|
5 | }
|
6 | declare type InstrumentHandlerType = 'console' | 'dom' | 'fetch' | 'history' | 'sentry' | 'xhr' | 'error' | 'unhandledrejection';
|
7 | declare type InstrumentHandlerCallback = (data: any) => void;
|
8 | /**
|
9 | * Add handler that will be called when given type of instrumentation triggers.
|
10 | * Use at your own risk, this might break without changelog notice, only used internally.
|
11 | * @hidden
|
12 | */
|
13 | export declare function addInstrumentationHandler(handler: InstrumentHandler): void;
|
14 | export {};
|
15 | //# sourceMappingURL=instrument.d.ts.map |
\ | No newline at end of file |