@sentry/react-native
Version:
Official Sentry SDK for react-native
15 lines (14 loc) • 858 B
TypeScript
import type { Breadcrumb, BreadcrumbHint } from '@sentry/core';
import type { ResolvedNetworkOptions } from './networkUtils';
/**
* Build a `beforeAddBreadcrumb` handler that enriches XHR breadcrumbs with
* network details (sizes always; headers/bodies for URLs matching the allow
* list and not the deny list) for the Mobile Replay network tab.
*/
export declare function makeEnrichXhrBreadcrumbsForMobileReplay(networkOptions: ResolvedNetworkOptions): (breadcrumb: Breadcrumb, hint: BreadcrumbHint | undefined) => void;
/**
* Enrich an XHR breadcrumb with additional data for Mobile Replay network tab.
* Preserves the legacy behaviour: sizes only, no headers/bodies.
*/
export declare function enrichXhrBreadcrumbsForMobileReplay(breadcrumb: Breadcrumb, hint: BreadcrumbHint | undefined): void;
//# sourceMappingURL=xhrUtils.d.ts.map