UNPKG

717 BTypeScriptView Raw
1/** Object describing handler that will be triggered for a given `type` of instrumentation */
2interface InstrumentHandler {
3 type: InstrumentHandlerType;
4 callback: InstrumentHandlerCallback;
5}
6declare type InstrumentHandlerType = 'console' | 'dom' | 'fetch' | 'history' | 'sentry' | 'xhr' | 'error' | 'unhandledrejection';
7declare 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 */
13export declare function addInstrumentationHandler(handler: InstrumentHandler): void;
14export {};
15//# sourceMappingURL=instrument.d.ts.map
\No newline at end of file