@@ -112,36 +112,6 @@ test('Sends an API route transaction', async ({ baseURL }) => {
112112          op : 'request_context.nestjs' , 
113113          origin : 'auto.http.otel.nestjs' , 
114114        } , 
115-         { 
116-           span_id : expect . stringMatching ( / [ a - f 0 - 9 ] { 16 } / ) , 
117-           trace_id : expect . stringMatching ( / [ a - f 0 - 9 ] { 32 } / ) , 
118-           data : { 
119-             'sentry.origin' : 'auto.middleware.nestjs' , 
120-             'sentry.op' : 'middleware.nestjs' , 
121-           } , 
122-           description : 'SentryTracingInterceptor' , 
123-           parent_span_id : expect . stringMatching ( / [ a - f 0 - 9 ] { 16 } / ) , 
124-           start_timestamp : expect . any ( Number ) , 
125-           timestamp : expect . any ( Number ) , 
126-           status : 'ok' , 
127-           op : 'middleware.nestjs' , 
128-           origin : 'auto.middleware.nestjs' , 
129-         } , 
130-         { 
131-           span_id : expect . stringMatching ( / [ a - f 0 - 9 ] { 16 } / ) , 
132-           trace_id : expect . stringMatching ( / [ a - f 0 - 9 ] { 32 } / ) , 
133-           data : { 
134-             'sentry.origin' : 'auto.middleware.nestjs' , 
135-             'sentry.op' : 'middleware.nestjs' , 
136-           } , 
137-           description : 'SentryTracingInterceptor' , 
138-           parent_span_id : expect . stringMatching ( / [ a - f 0 - 9 ] { 16 } / ) , 
139-           start_timestamp : expect . any ( Number ) , 
140-           timestamp : expect . any ( Number ) , 
141-           status : 'ok' , 
142-           op : 'middleware.nestjs' , 
143-           origin : 'auto.middleware.nestjs' , 
144-         } , 
145115        { 
146116          span_id : expect . stringMatching ( / [ a - f 0 - 9 ] { 16 } / ) , 
147117          trace_id : expect . stringMatching ( / [ a - f 0 - 9 ] { 32 } / ) , 
@@ -183,29 +153,19 @@ test('Sends an API route transaction', async ({ baseURL }) => {
183153          status : 'ok' , 
184154          origin : 'manual' , 
185155        } , 
186-         { 
187-           span_id : expect . stringMatching ( / [ a - f 0 - 9 ] { 16 } / ) , 
188-           trace_id : expect . stringMatching ( / [ a - f 0 - 9 ] { 32 } / ) , 
189-           data : { 
190-             'sentry.origin' : 'auto.middleware.nestjs' , 
191-             'sentry.op' : 'middleware.nestjs' , 
192-           } , 
193-           description : 'Interceptors - After Route' , 
194-           parent_span_id : expect . stringMatching ( / [ a - f 0 - 9 ] { 16 } / ) , 
195-           start_timestamp : expect . any ( Number ) , 
196-           timestamp : expect . any ( Number ) , 
197-           status : 'ok' , 
198-           op : 'middleware.nestjs' , 
199-           origin : 'auto.middleware.nestjs' , 
200-         } , 
201156      ] ) , 
157+       start_timestamp : expect . any ( Number ) , 
158+       timestamp : expect . any ( Number ) , 
202159      transaction : 'GET /test-transaction' , 
203-       type : 'transaction' , 
204160      transaction_info : { 
205161        source : 'route' , 
206162      } , 
163+       type : 'transaction' , 
207164    } ) , 
208165  ) ; 
166+ 
167+   const  spanDescriptions  =  transactionEvent . spans . map ( span  =>  span . description ) ; 
168+   expect ( spanDescriptions ) . not . toContain ( 'SentryTracingInterceptor' ) ; 
209169} ) ; 
210170
211171test ( 'API route transaction includes nest middleware span. Spans created in and after middleware are nested correctly' ,  async  ( { 
0 commit comments