@@ -111,7 +111,7 @@ function wrap(fn: Function, method: Method): (...args: any[]) => void {
111111 if ( transaction ) {
112112 const span = transaction . startChild ( {
113113 description : fn . name ,
114- op : `middleware.${ method } ` ,
114+ op : `express. middleware.${ method } ` ,
115115 } ) ;
116116 res . once ( 'finish' , ( ) => {
117117 span . finish ( ) ;
@@ -130,7 +130,7 @@ function wrap(fn: Function, method: Method): (...args: any[]) => void {
130130 const transaction = res . __sentry_transaction ;
131131 const span = transaction ?. startChild ( {
132132 description : fn . name ,
133- op : `middleware.${ method } ` ,
133+ op : `express. middleware.${ method } ` ,
134134 } ) ;
135135 fn . call ( this , req , res , function ( this : NodeJS . Global , ...args : unknown [ ] ) : void {
136136 span ?. finish ( ) ;
@@ -149,7 +149,7 @@ function wrap(fn: Function, method: Method): (...args: any[]) => void {
149149 const transaction = res . __sentry_transaction ;
150150 const span = transaction ?. startChild ( {
151151 description : fn . name ,
152- op : `middleware.${ method } ` ,
152+ op : `express. middleware.${ method } ` ,
153153 } ) ;
154154 fn . call ( this , err , req , res , function ( this : NodeJS . Global , ...args : unknown [ ] ) : void {
155155 span ?. finish ( ) ;
0 commit comments