Skip to content
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

fix missing spans for express built-in middleware #627

Merged
merged 1 commit into from
Jul 16, 2019

Conversation

rochdev
Copy link
Member

@rochdev rochdev commented Jul 15, 2019

What does this PR do?

Fix missing spans for built-in Express middleware. By wrapping app.handle instead of adding a middleware, it ensures that it's not possible that a middleware already ran by the time our middleware is reached.

Motivation

Since the plugin was itself using a middleware to hook into Express, built-in middleware that run earlier in the request would not be instrumented, thus hiding some timings.

@rochdev rochdev added bug Something isn't working integrations labels Jul 15, 2019
@rochdev rochdev added this to the 0.13.1 milestone Jul 15, 2019
@rochdev rochdev requested a review from a team as a code owner July 15, 2019 20:13
@rochdev rochdev merged commit ecadea9 into master Jul 16, 2019
@rochdev rochdev deleted the fix-express-missing-middleware branch July 16, 2019 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working integrations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants