Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
14 lines
662 B
Plaintext
14 lines
662 B
Plaintext
import type { HandlerDataXhr } from '@sentry/core';
|
|
export declare const SENTRY_XHR_DATA_KEY = "__sentry_xhr_v3__";
|
|
/**
|
|
* Add an instrumentation handler for when an XHR request happens.
|
|
* The handler function is called once when the request starts and once when it ends,
|
|
* which can be identified by checking if it has an `endTimestamp`.
|
|
*
|
|
* Use at your own risk, this might break without changelog notice, only used internally.
|
|
* @hidden
|
|
*/
|
|
export declare function addXhrInstrumentationHandler(handler: (data: HandlerDataXhr) => void): void;
|
|
/** Exported only for tests. */
|
|
export declare function instrumentXHR(): void;
|
|
//# sourceMappingURL=xhr.d.ts.map |