11import { defineIntegration } from '../integration' ;
22import 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' ;
84
95export type RequestDataIntegrationOptions = {
106 /**
@@ -25,12 +21,6 @@ export type RequestDataIntegrationOptions = {
2521 email ?: boolean ;
2622 } ;
2723 } ;
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' ;
3424} ;
3525
3626const DEFAULT_OPTIONS = {
@@ -93,13 +83,7 @@ const _requestDataIntegration = ((options: RequestDataIntegrationOptions = {}) =
9383 return event ;
9484 }
9585
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 ;
10387 } ,
10488 } ;
10589} ) satisfies IntegrationFn ;
@@ -116,8 +100,6 @@ function convertReqDataIntegrationOptsToAddReqDataOpts(
116100 integrationOptions : Required < RequestDataIntegrationOptions > ,
117101) : AddRequestDataToEventOptions {
118102 const {
119- // eslint-disable-next-line deprecation/deprecation
120- transactionNamingScheme,
121103 include : { ip, user, ...requestOptions } ,
122104 } = integrationOptions ;
123105
@@ -148,7 +130,6 @@ function convertReqDataIntegrationOptsToAddReqDataOpts(
148130 ip,
149131 user : addReqDataUserOpt ,
150132 request : requestIncludeKeys . length !== 0 ? requestIncludeKeys : undefined ,
151- transaction : transactionNamingScheme ,
152133 } ,
153134 } ;
154135}
0 commit comments