UNPKG

1.04 kBTypeScriptView Raw
1import type { TransactionNamingScheme } from '@sentry/utils';
2export type RequestDataIntegrationOptions = {
3 /**
4 * Controls what data is pulled from the request and added to the event
5 */
6 include?: {
7 cookies?: boolean;
8 data?: boolean;
9 headers?: boolean;
10 ip?: boolean;
11 query_string?: boolean;
12 url?: boolean;
13 user?: boolean | {
14 id?: boolean;
15 username?: boolean;
16 email?: boolean;
17 };
18 };
19 /** Whether to identify transactions by parameterized path, parameterized path with method, or handler name */
20 transactionNamingScheme?: TransactionNamingScheme;
21};
22/**
23 * Add data about a request to an event. Primarily for use in Node-based SDKs, but included in `@sentry/core`
24 * so it can be used in cross-platform SDKs like `@sentry/nextjs`.
25 */
26export declare const requestDataIntegration: (options?: RequestDataIntegrationOptions | undefined) => import("@sentry/types").Integration;
27//# sourceMappingURL=requestdata.d.ts.map
\No newline at end of file