@@ -111,7 +111,7 @@ function wrap(fn: Function, method: Method): (...args: any[]) => void {
111
111
if ( transaction ) {
112
112
const span = transaction . startChild ( {
113
113
description : fn . name ,
114
- op : `middleware.${ method } ` ,
114
+ op : `express. middleware.${ method } ` ,
115
115
} ) ;
116
116
res . once ( 'finish' , ( ) => {
117
117
span . finish ( ) ;
@@ -130,7 +130,7 @@ function wrap(fn: Function, method: Method): (...args: any[]) => void {
130
130
const transaction = res . __sentry_transaction ;
131
131
const span = transaction ?. startChild ( {
132
132
description : fn . name ,
133
- op : `middleware.${ method } ` ,
133
+ op : `express. middleware.${ method } ` ,
134
134
} ) ;
135
135
fn . call ( this , req , res , function ( this : NodeJS . Global , ...args : unknown [ ] ) : void {
136
136
span ?. finish ( ) ;
@@ -149,7 +149,7 @@ function wrap(fn: Function, method: Method): (...args: any[]) => void {
149
149
const transaction = res . __sentry_transaction ;
150
150
const span = transaction ?. startChild ( {
151
151
description : fn . name ,
152
- op : `middleware.${ method } ` ,
152
+ op : `express. middleware.${ method } ` ,
153
153
} ) ;
154
154
fn . call ( this , err , req , res , function ( this : NodeJS . Global , ...args : unknown [ ] ) : void {
155
155
span ?. finish ( ) ;
0 commit comments