@@ -49,40 +49,6 @@ test('Sends an API route transaction', async ({ baseURL }) => {
4949 expect ( transactionEvent ) . toEqual (
5050 expect . objectContaining ( {
5151 spans : expect . arrayContaining ( [
52- {
53- span_id : expect . stringMatching ( / [ a - f 0 - 9 ] { 16 } / ) ,
54- trace_id : expect . stringMatching ( / [ a - f 0 - 9 ] { 32 } / ) ,
55- data : {
56- 'sentry.origin' : 'manual' ,
57- 'fastify.type' : 'middleware' ,
58- 'plugin.name' : '@fastify/middie' ,
59- 'hook.name' : 'onRequest' ,
60- } ,
61- description : 'middleware - runMiddie' ,
62- parent_span_id : expect . stringMatching ( / [ a - f 0 - 9 ] { 16 } / ) ,
63- start_timestamp : expect . any ( Number ) ,
64- timestamp : expect . any ( Number ) ,
65- status : 'ok' ,
66- origin : 'manual' ,
67- } ,
68- {
69- span_id : expect . stringMatching ( / [ a - f 0 - 9 ] { 16 } / ) ,
70- trace_id : expect . stringMatching ( / [ a - f 0 - 9 ] { 32 } / ) ,
71- data : {
72- 'sentry.origin' : 'auto.http.otel.fastify' ,
73- 'sentry.op' : 'request_handler.fastify' ,
74- 'plugin.name' : '@fastify/middie' ,
75- 'fastify.type' : 'request_handler' ,
76- 'http.route' : '/test-transaction' ,
77- } ,
78- description : '@fastify/middie' ,
79- parent_span_id : expect . stringMatching ( / [ a - f 0 - 9 ] { 16 } / ) ,
80- start_timestamp : expect . any ( Number ) ,
81- timestamp : expect . any ( Number ) ,
82- status : 'ok' ,
83- op : 'request_handler.fastify' ,
84- origin : 'auto.http.otel.fastify' ,
85- } ,
8652 {
8753 span_id : expect . stringMatching ( / [ a - f 0 - 9 ] { 16 } / ) ,
8854 trace_id : expect . stringMatching ( / [ a - f 0 - 9 ] { 32 } / ) ,
0 commit comments