@@ -52,7 +52,7 @@ export interface WrapperOptions {
52
52
* You may want to disable this if you use express within Lambda (use tracingHandler instead).
53
53
* @default true
54
54
*/
55
- startTransaction : boolean ;
55
+ startTrace : boolean ;
56
56
}
57
57
58
58
export const defaultIntegrations : Integration [ ] = [ ...Sentry . defaultIntegrations , new AWSServices ( { optional : true } ) ] ;
@@ -235,7 +235,7 @@ export function wrapHandler<TEvent, TResult>(
235
235
captureTimeoutWarning : true ,
236
236
timeoutWarningLimit : 500 ,
237
237
captureAllSettledReasons : false ,
238
- startTransaction : true ,
238
+ startTrace : true ,
239
239
...wrapOptions ,
240
240
} ;
241
241
let timeoutWarningTimer : NodeJS . Timeout ;
@@ -294,7 +294,7 @@ export function wrapHandler<TEvent, TResult>(
294
294
const hub = getCurrentHub ( ) ;
295
295
296
296
let transaction : Sentry . Transaction | undefined ;
297
- if ( options . startTransaction ) {
297
+ if ( options . startTrace ) {
298
298
const eventWithHeaders = event as { headers ?: { [ key : string ] : string } } ;
299
299
300
300
const sentryTrace =
@@ -324,7 +324,7 @@ export function wrapHandler<TEvent, TResult>(
324
324
let rv : TResult ;
325
325
try {
326
326
enhanceScopeWithEnvironmentData ( scope , context , START_TIME ) ;
327
- if ( options . startTransaction ) {
327
+ if ( options . startTrace ) {
328
328
enhanceScopeWithTransactionData ( scope , context ) ;
329
329
// We put the transaction on the scope so users can attach children to it
330
330
scope . setSpan ( transaction ) ;
0 commit comments