Skip to content

Commit 6ee8623

Browse files
committed
Extend root route handling integration test, see #16375 for details
1 parent 1fce372 commit 6ee8623

File tree

2 files changed

+32
-0
lines changed
  • dev-packages/node-integration-tests/suites

2 files changed

+32
-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': '/',
95+
'http.target': '/',
96+
},
97+
op: 'http.server',
98+
status: 'ok',
99+
},
100+
},
85101
},
86102
})
87103
.start();

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

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

0 commit comments

Comments
 (0)