Skip to content

feat: expose the matched route pattern on the tracing context - #207

Open
logaretm wants to merge 2 commits into
pillarjs:masterfrom
logaretm:awad/tracing-route-pattern
Open

logaretm wants to merge 2 commits into
pillarjs:masterfrom
logaretm:awad/tracing-route-pattern

Conversation

@logaretm

@logaretm logaretm commented Oct 9, 2026 •

Copy link
Copy Markdown
Member

Tracing subscribers couldn't tell which route pattern matched a request, fixed by adding a route field to the express.router.request context, built on rawPath from #174.

I added tests for middleware, route handlers, route error handlers, mounted routers, and array paths where only one entry matches.

@logaretm logaretm changed the title docs: document reading the route pattern from the tracing context feat: expose the matched route pattern on the tracing context Oct 9, 2026
@bjohansebas

Copy link
Copy Markdown
Member

You can use my PR, no problem. You have commit access, so you can use the GitHub CLI to push to my branch

@logaretm

logaretm commented Oct 9, 2026 •

Copy link
Copy Markdown
Member Author

We can keep them separate to avoid muddying your PR, will rebase/undraft this PR once yours merges!

If you think it belongs there, then happy to push it. Up to you.

@bjohansebas

Copy link
Copy Markdown
Member

Hmm, I’m not sure. If you want, take a look at my PR. How about we give Ulises and the other reviewers a week to review it, then merge it and take a look at yours?

@bjohansebas

Copy link
Copy Markdown
Member

please rebase

@logaretm
logaretm force-pushed the awad/tracing-route-pattern branch from 4896d50 to 27974cb Compare October 22, 2026 15:29
@logaretm
logaretm marked this pull request as ready for review October 22, 2026 15:30
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