@sentry/remix
Version:
Official Sentry SDK for Remix
22 lines • 1.09 kB
TypeScript
import type { Client, Span } from '@sentry/core';
/**
* Resolved form-data capture config. `keys` is `undefined` when every field should be captured.
*/
export interface FormDataCapture {
keys: Record<string, string | boolean> | undefined;
}
/**
* Resolves whether (and which) `action` form data fields to capture.
*
* `captureActionFormDataKeys` is an integration-level option, so it takes precedence over
* `dataCollection.httpBodies` rather than being gated by it. Without it, `httpBodies` decides,
* in which case there is no configured key list and all fields are captured.
*/
export declare function resolveFormDataCapture(client: Client | undefined): FormDataCapture | undefined;
/**
* Sets form-data span attributes, honoring the configured key list and renames. Values are run
* through the shared sensitive-key filter, so an allowlisted `password` still reports as
* `[Filtered]` rather than in the clear.
*/
export declare function applyFormDataAttributes(span: Span, formData: FormData, { keys }: FormDataCapture): void;
//# sourceMappingURL=formData.d.ts.map