1
1
import { defineIntegration } from '../integration' ;
2
2
import type { IntegrationFn } from '../types-hoist' ;
3
- import {
4
- type AddRequestDataToEventOptions ,
5
- addNormalizedRequestDataToEvent ,
6
- addRequestDataToEvent ,
7
- } from '../utils-hoist/requestdata' ;
3
+ import { type AddRequestDataToEventOptions , addNormalizedRequestDataToEvent } from '../utils-hoist/requestdata' ;
8
4
9
5
export type RequestDataIntegrationOptions = {
10
6
/**
@@ -25,12 +21,6 @@ export type RequestDataIntegrationOptions = {
25
21
email ?: boolean ;
26
22
} ;
27
23
} ;
28
-
29
- /**
30
- * Whether to identify transactions by parameterized path, parameterized path with method, or handler name.
31
- * @deprecated This option does not do anything anymore, and will be removed in v9.
32
- */
33
- transactionNamingScheme ?: 'path' | 'methodPath' | 'handler' ;
34
24
} ;
35
25
36
26
const DEFAULT_OPTIONS = {
@@ -93,13 +83,7 @@ const _requestDataIntegration = ((options: RequestDataIntegrationOptions = {}) =
93
83
return event ;
94
84
}
95
85
96
- // TODO(v9): Eventually we can remove this fallback branch and only rely on the normalizedRequest above
97
- if ( ! request ) {
98
- return event ;
99
- }
100
-
101
- // eslint-disable-next-line deprecation/deprecation
102
- return addRequestDataToEvent ( event , request , addRequestDataOptions ) ;
86
+ return event ;
103
87
} ,
104
88
} ;
105
89
} ) satisfies IntegrationFn ;
@@ -116,8 +100,6 @@ function convertReqDataIntegrationOptsToAddReqDataOpts(
116
100
integrationOptions : Required < RequestDataIntegrationOptions > ,
117
101
) : AddRequestDataToEventOptions {
118
102
const {
119
- // eslint-disable-next-line deprecation/deprecation
120
- transactionNamingScheme,
121
103
include : { ip, user, ...requestOptions } ,
122
104
} = integrationOptions ;
123
105
@@ -148,7 +130,6 @@ function convertReqDataIntegrationOptsToAddReqDataOpts(
148
130
ip,
149
131
user : addReqDataUserOpt ,
150
132
request : requestIncludeKeys . length !== 0 ? requestIncludeKeys : undefined ,
151
- transaction : transactionNamingScheme ,
152
133
} ,
153
134
} ;
154
135
}
0 commit comments