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

Add support to save original pattern to context #53

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

meson10
Copy link

@meson10 meson10 commented Oct 16, 2021

Inspired by mux and other routers
preserve the matched pattern that can be referenced in the lifetime of a handler.
This is useful for telemetry and instrumentation to use the pattern
AND not the whole URL, which can result in cardinality explosion.
For compatibility with most other mux like gorilla, mux, use count=2

@meson10
Copy link
Author

meson10 commented Oct 16, 2021

@bmizerany Hi, I am not sure if it would notify you. Hence, tagging you explicitly 🙏🏾

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