Skip to content

Commit b753043

Browse files
committed
fix(express): Fix test for root route handling
1 parent 48f1a4f commit b753043

File tree

1 file changed

+16
-0
lines changed
  • dev-packages/node-integration-tests/suites/express-v5/tracing

1 file changed

+16
-0
lines changed

dev-packages/node-integration-tests/suites/express-v5/tracing/test.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,22 @@ describe('express v5 tracing', () => {
8282
.expect({
8383
transaction: {
8484
transaction: 'GET /',
85+
contexts: {
86+
trace: {
87+
span_id: expect.stringMatching(/[a-f0-9]{16}/),
88+
trace_id: expect.stringMatching(/[a-f0-9]{32}/),
89+
data: {
90+
'http.response.status_code': 200,
91+
url: expect.stringMatching(/\/$/),
92+
'http.method': 'GET',
93+
'http.url': expect.stringMatching(/\/$/),
94+
'http.route': '/', // <-- this should work
95+
'http.target': '/',
96+
},
97+
op: 'http.server',
98+
status: 'ok',
99+
},
100+
},
85101
},
86102
})
87103
.start();

0 commit comments

Comments
 (0)