Skip to content

chore: migrate to Express v5 in the tests #1416

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 8, 2025
Merged

chore: migrate to Express v5 in the tests #1416

merged 1 commit into from
May 8, 2025

Conversation

rowanmanning
Copy link
Member

This moves us to use Express v5 in the tests. Only OpenTelemetry needed a little more work and I believe this is because async routing is now properly supported in Express. It means that we can no longer shut down the OpenTelemetry SDK before the response has been sent, because the trace is sent on response close rather than once the middleware finishes executing.

@rowanmanning rowanmanning enabled auto-merge (rebase) May 6, 2025 11:05
Copy link
Contributor

@CyntiBinti CyntiBinti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Good point about the long timeout too

This moves us to use Express v5 in the tests. Only OpenTelemetry needed
a little more work and I believe this is because async routing is now
properly supported in Express. It means that we can no longer shut down
the OpenTelemetry SDK _before_ the response has been sent, because the
trace is sent on response close rather than once the middleware finishes
executing.
@rowanmanning rowanmanning merged commit 7147574 into main May 8, 2025
12 checks passed
@rowanmanning rowanmanning deleted the express-5 branch May 8, 2025 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants