-
Notifications
You must be signed in to change notification settings - Fork 550
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
feat(instrumentation-koa): identify middleware functions inside route handlers #2037
base: main
Are you sure you want to change the base?
feat(instrumentation-koa): identify middleware functions inside route handlers #2037
Conversation
023ac93
to
eee63df
Compare
cc @dyladan Not sure who can look into this since it seems there's no maintainer for this package. |
eee63df
to
a4cba8d
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #2037 +/- ##
=======================================
Coverage 90.97% 90.98%
=======================================
Files 146 145 -1
Lines 7492 7455 -37
Branches 1502 1489 -13
=======================================
- Hits 6816 6783 -33
+ Misses 676 672 -4
|
Shamelessly pinging @pichlermarc and @trentm 😅 |
cc @blumamir |
Bump :/ |
Any news here? |
Reviews for new features for unmaintained components may be delayed until a new owner has been found as we try to prioritize work in the following ways:
We're currently working on better communicating our process as the existing documentation (a note in the readme and the link to the contributing.md) on this is not sufficient. |
Which problem is this PR solving?
Considering the following route handler:
...will generate two spans with the same name:
router - /post/:id
, even though the first handler is actually a named middleware (some
).Ideally, it would generate two different spans:
middleware - some
router - /post/:id
Short description of the changes
The changes are quite simple: when iterating these handlers, we assume they are a middleware if it's not the last handler on the stack and if it has a name.