1 | import type { Event, EventProcessor, Hub, Integration, PolymorphicRequest } from '@sentry/types';
|
2 | import type { TransactionNamingScheme } from '@sentry/utils';
|
3 | export type RequestDataIntegrationOptions = {
|
4 | |
5 |
|
6 |
|
7 | include?: {
|
8 | cookies?: boolean;
|
9 | data?: boolean;
|
10 | headers?: boolean;
|
11 | ip?: boolean;
|
12 | query_string?: boolean;
|
13 | url?: boolean;
|
14 | user?: boolean | {
|
15 | id?: boolean;
|
16 | username?: boolean;
|
17 | email?: boolean;
|
18 | };
|
19 | };
|
20 |
|
21 | transactionNamingScheme?: TransactionNamingScheme;
|
22 | };
|
23 |
|
24 |
|
25 | export declare class RequestData implements Integration {
|
26 | |
27 |
|
28 |
|
29 | static id: string;
|
30 | |
31 |
|
32 |
|
33 | name: string;
|
34 | |
35 |
|
36 |
|
37 |
|
38 |
|
39 | protected _addRequestData: (event: Event, req: PolymorphicRequest, options?: {
|
40 | [key: string]: unknown;
|
41 | }) => Event;
|
42 | private _options;
|
43 | |
44 |
|
45 |
|
46 | constructor(options?: RequestDataIntegrationOptions);
|
47 | /**
|
48 | * @inheritDoc
|
49 | */
|
50 | setupOnce(addGlobalEventProcessor: (eventProcessor: EventProcessor) => void, getCurrentHub: () => Hub): void;
|
51 | }
|
52 | //# sourceMappingURL=requestdata.d.ts.map |
\ | No newline at end of file |