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
24 lines
1.2 KiB
Plaintext
24 lines
1.2 KiB
Plaintext
import { Breadcrumb, FetchBreadcrumbData } from '@sentry/core';
|
|
import { FetchHint } from '@sentry-internal/browser-utils';
|
|
import { ReplayContainer, ReplayNetworkOptions, ReplayNetworkRequestOrResponse } from '../../types';
|
|
/**
|
|
* Capture a fetch breadcrumb to a replay.
|
|
* This adds additional data (where appropriate).
|
|
*/
|
|
export declare function captureFetchBreadcrumbToReplay(breadcrumb: Breadcrumb & {
|
|
data: FetchBreadcrumbData;
|
|
}, hint: Partial<FetchHint>, options: ReplayNetworkOptions & {
|
|
replay: ReplayContainer;
|
|
}): Promise<void>;
|
|
/**
|
|
* Enrich a breadcrumb with additional data.
|
|
* This has to be sync & mutate the given breadcrumb,
|
|
* as the breadcrumb is afterwards consumed by other handlers.
|
|
*/
|
|
export declare function enrichFetchBreadcrumb(breadcrumb: Breadcrumb & {
|
|
data: FetchBreadcrumbData;
|
|
}, hint: Partial<FetchHint>): void;
|
|
/** Exported only for tests. */
|
|
export declare function _getResponseInfo(captureDetails: boolean, { networkCaptureBodies, networkResponseHeaders, }: Pick<ReplayNetworkOptions, 'networkCaptureBodies' | 'networkResponseHeaders'>, response: Response | undefined, responseBodySize?: number): Promise<ReplayNetworkRequestOrResponse | undefined>;
|
|
//# sourceMappingURL=fetchUtils.d.ts.map
|