@@ -52,7 +52,7 @@ export interface WrapperOptions {
5252 * You may want to disable this if you use express within Lambda (use tracingHandler instead).
5353 * @default true
5454 */
55- startTransaction : boolean ;
55+ startTrace : boolean ;
5656}
5757
5858export const defaultIntegrations : Integration [ ] = [ ...Sentry . defaultIntegrations , new AWSServices ( { optional : true } ) ] ;
@@ -235,7 +235,7 @@ export function wrapHandler<TEvent, TResult>(
235235 captureTimeoutWarning : true ,
236236 timeoutWarningLimit : 500 ,
237237 captureAllSettledReasons : false ,
238- startTransaction : true ,
238+ startTrace : true ,
239239 ...wrapOptions ,
240240 } ;
241241 let timeoutWarningTimer : NodeJS . Timeout ;
@@ -294,7 +294,7 @@ export function wrapHandler<TEvent, TResult>(
294294 const hub = getCurrentHub ( ) ;
295295
296296 let transaction : Sentry . Transaction | undefined ;
297- if ( options . startTransaction ) {
297+ if ( options . startTrace ) {
298298 const eventWithHeaders = event as { headers ?: { [ key : string ] : string } } ;
299299
300300 const sentryTrace =
@@ -324,7 +324,7 @@ export function wrapHandler<TEvent, TResult>(
324324 let rv : TResult ;
325325 try {
326326 enhanceScopeWithEnvironmentData ( scope , context , START_TIME ) ;
327- if ( options . startTransaction ) {
327+ if ( options . startTrace ) {
328328 enhanceScopeWithTransactionData ( scope , context ) ;
329329 // We put the transaction on the scope so users can attach children to it
330330 scope . setSpan ( transaction ) ;
0 commit comments