@@ -63,12 +63,8 @@ test.describe('tracing in dynamically rendered (ssr) routes', () => {
6363
6464 expect ( serverPageRequestTxn ) . toMatchObject ( {
6565 contexts : {
66- app : expect . any ( Object ) ,
6766 cloud_resource : expect . any ( Object ) ,
6867 culture : expect . any ( Object ) ,
69- device : expect . any ( Object ) ,
70- os : expect . any ( Object ) ,
71- otel : expect . any ( Object ) ,
7268 runtime : expect . any ( Object ) ,
7369 trace : {
7470 data : {
@@ -78,7 +74,6 @@ test.describe('tracing in dynamically rendered (ssr) routes', () => {
7874 'sentry.origin' : 'auto.http.astro' ,
7975 'sentry.sample_rate' : 1 ,
8076 'sentry.source' : 'route' ,
81- url : expect . stringContaining ( '/test-ssr' ) ,
8277 'http.request.header.accept' : expect . any ( String ) ,
8378 'http.request.header.accept_encoding' : 'br, gzip' ,
8479 'http.request.header.accept_language' : 'en-US' ,
@@ -96,9 +91,7 @@ test.describe('tracing in dynamically rendered (ssr) routes', () => {
9691 event_id : expect . stringMatching ( / [ a - f 0 - 9 ] { 32 } / ) ,
9792 platform : 'javascript' ,
9893 request : {
99- cookies : { } ,
10094 headers : expect . objectContaining ( {
101- // demonstrates that request data integration can extract headers
10295 accept : expect . any ( String ) ,
10396 'accept-encoding' : expect . any ( String ) ,
10497 'user-agent' : expect . any ( String ) ,
@@ -112,7 +105,6 @@ test.describe('tracing in dynamically rendered (ssr) routes', () => {
112105 packages : expect . any ( Array ) ,
113106 version : expect . any ( String ) ,
114107 } ,
115- server_name : expect . any ( String ) ,
116108 spans : expect . any ( Array ) ,
117109 start_timestamp : expect . any ( Number ) ,
118110 timestamp : expect . any ( Number ) ,
@@ -232,7 +224,6 @@ test.describe('nested SSR routes (client, server, server request)', () => {
232224 'sentry.op' : 'http.server' ,
233225 'sentry.origin' : 'auto.http.astro' ,
234226 'sentry.source' : 'route' ,
235- url : expect . stringContaining ( '/user-page/myUsername123' ) ,
236227 'http.request.header.accept' : expect . any ( String ) ,
237228 'http.request.header.accept_encoding' : 'br, gzip' ,
238229 'http.request.header.accept_language' : 'en-US' ,
@@ -247,20 +238,18 @@ test.describe('nested SSR routes (client, server, server request)', () => {
247238 // HTTP client span - actual API URL with client operation
248239 expect ( serverRequestHTTPClientSpan ) . toMatchObject ( {
249240 op : 'http.client' ,
250- origin : 'auto.http.otel.node_fetch ' ,
241+ origin : 'auto.http.fetch ' ,
251242 description : 'GET http://localhost:3030/api/user/myUsername123.json' , // http.client does not need to be parametrized
252243 data : {
253244 'sentry.op' : 'http.client' ,
254- 'sentry.origin' : 'auto.http.otel.node_fetch' ,
255- 'url.full' : expect . stringContaining ( '/api/user/myUsername123.json' ) ,
256- 'url.path' : '/api/user/myUsername123.json' ,
245+ 'sentry.origin' : 'auto.http.fetch' ,
257246 url : expect . stringContaining ( '/api/user/myUsername123.json' ) ,
258247 } ,
259248 } ) ;
260249
261250 // Server HTTP request transaction
262251 expect ( serverHTTPServerRequestTxn ) . toMatchObject ( {
263- transaction : 'GET /api/user/[userId] .json' ,
252+ transaction : 'GET /api/user/myUsername123 .json' ,
264253 transaction_info : { source : 'route' } ,
265254 contexts : {
266255 trace : {
@@ -270,12 +259,7 @@ test.describe('nested SSR routes (client, server, server request)', () => {
270259 'sentry.op' : 'http.server' ,
271260 'sentry.origin' : 'auto.http.astro' ,
272261 'sentry.source' : 'route' ,
273- url : expect . stringContaining ( '/api/user/myUsername123.json' ) ,
274- 'http.request.header.accept' : expect . any ( String ) ,
275- 'http.request.header.accept_encoding' : 'gzip, deflate' ,
276- 'http.request.header.accept_language' : '*' ,
277- 'http.request.header.sec_fetch_mode' : 'cors' ,
278- 'http.request.header.user_agent' : expect . any ( String ) ,
262+ 'http.request.header.accept_encoding' : 'br, gzip' ,
279263 } ,
280264 } ,
281265 } ,
@@ -327,7 +311,6 @@ test.describe('nested SSR routes (client, server, server request)', () => {
327311 'sentry.op' : 'http.server' ,
328312 'sentry.origin' : 'auto.http.astro' ,
329313 'sentry.source' : 'route' ,
330- url : expect . stringContaining ( '/catchAll/hell0/whatever-do' ) ,
331314 'http.request.header.accept' : expect . any ( String ) ,
332315 'http.request.header.accept_encoding' : 'br, gzip' ,
333316 'http.request.header.accept_language' : 'en-US' ,
@@ -384,7 +367,6 @@ test.describe('parametrized vs static paths', () => {
384367 'sentry.op' : 'http.server' ,
385368 'sentry.origin' : 'auto.http.astro' ,
386369 'sentry.source' : 'route' ,
387- url : expect . stringContaining ( '/user-page/settings' ) ,
388370 'http.request.header.accept' : expect . any ( String ) ,
389371 'http.request.header.accept_encoding' : 'br, gzip' ,
390372 'http.request.header.accept_language' : 'en-US' ,
0 commit comments