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
27 lines
965 B
Plaintext
27 lines
965 B
Plaintext
export type HttpStatusCodeRange = [number, number] | number;
|
|
export type HttpRequestTarget = string | RegExp;
|
|
interface HttpClientOptions {
|
|
/**
|
|
* HTTP status codes that should be considered failed.
|
|
* This array can contain tuples of `[begin, end]` (both inclusive),
|
|
* single status codes, or a combinations of both
|
|
*
|
|
* Example: [[500, 505], 507]
|
|
* Default: [[500, 599]]
|
|
*/
|
|
failedRequestStatusCodes: HttpStatusCodeRange[];
|
|
/**
|
|
* Targets to track for failed requests.
|
|
* This array can contain strings or regular expressions.
|
|
*
|
|
* Example: ['http://localhost', /api\/.*\/]
|
|
* Default: [/.*\/]
|
|
*/
|
|
failedRequestTargets: HttpRequestTarget[];
|
|
}
|
|
/**
|
|
* Create events for failed client side HTTP requests.
|
|
*/
|
|
export declare const httpClientIntegration: (options?: Partial<HttpClientOptions> | undefined) => import("@sentry/core").Integration;
|
|
export {};
|
|
//# sourceMappingURL=httpclient.d.ts.map |