Skip to content

Add support to save original pattern to context#53

Open
meson10 wants to merge 8 commits into
bmizerany:masterfrom
last9:master
Open

Add support to save original pattern to context#53
meson10 wants to merge 8 commits into
bmizerany:masterfrom
last9:master

Conversation

@meson10
Copy link
Copy Markdown

@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
Copy Markdown
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