@@ -490,7 +490,7 @@ test.describe("Tracing", () => {
490490 ( event ) =>
491491 event . contexts ?. trace ?. op === "http.server" &&
492492 ( ( event . contexts ?. trace ?. data as any ) ?. [ "http.route" ] === "/users" ||
493- event . transaction ?. includes ( "/users" ) )
493+ event . transaction ?. includes ( "/users" ) )
494494 ) ;
495495 expect ( liveViewHttpTransaction ) . toBeDefined ( ) ;
496496
@@ -502,19 +502,26 @@ test.describe("Tracing", () => {
502502 event . transaction ?. includes ( "UserLive.Index.mount" ) ||
503503 event . transaction ?. includes ( ".mount" )
504504 ) ;
505-
505+
506506 // Find mount transaction that has spans (prefer one with DB spans)
507- const liveViewMountTransaction = liveViewMountTransactions . find ( tx => {
508- const spans = ( tx as any ) . spans || [ ] ;
509- return spans . length > 0 ;
510- } ) || liveViewMountTransactions [ 0 ] ;
511-
507+ const liveViewMountTransaction =
508+ liveViewMountTransactions . find ( ( tx ) => {
509+ const spans = ( tx as any ) . spans || [ ] ;
510+ return spans . length > 0 ;
511+ } ) || liveViewMountTransactions [ 0 ] ;
512+
512513 expect ( liveViewMountTransaction ) . toBeDefined ( ) ;
513514
514515 // All should have valid trace IDs
515- expect ( apiTransaction ?. contexts ?. trace ?. trace_id ) . toMatch ( / ^ [ a - f 0 - 9 ] { 32 } $ / ) ;
516- expect ( liveViewHttpTransaction ?. contexts ?. trace ?. trace_id ) . toMatch ( / ^ [ a - f 0 - 9 ] { 32 } $ / ) ;
517- expect ( liveViewMountTransaction ?. contexts ?. trace ?. trace_id ) . toMatch ( / ^ [ a - f 0 - 9 ] { 32 } $ / ) ;
516+ expect ( apiTransaction ?. contexts ?. trace ?. trace_id ) . toMatch (
517+ / ^ [ a - f 0 - 9 ] { 32 } $ /
518+ ) ;
519+ expect ( liveViewHttpTransaction ?. contexts ?. trace ?. trace_id ) . toMatch (
520+ / ^ [ a - f 0 - 9 ] { 32 } $ /
521+ ) ;
522+ expect ( liveViewMountTransaction ?. contexts ?. trace ?. trace_id ) . toMatch (
523+ / ^ [ a - f 0 - 9 ] { 32 } $ /
524+ ) ;
518525
519526 // Verify the API transaction has database spans
520527 const apiSpans = ( apiTransaction as any ) ?. spans || [ ] ;
0 commit comments