-
-
Notifications
You must be signed in to change notification settings - Fork 56
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
Option to map "path" to something else #20
Comments
Created upstream ticket to expose API necessary to implement essential fix for this efficiently: actix/actix-web#1565 |
Thank you for doing this @nazar-pc. |
Implemented upstream and should be a part of some future release of actix-web |
I think with dependency on actix-web 3.0 it makes sense to switch to new API from actix/actix-web#1565 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have an endpoint that is parametrized with and entity id
Using PrometheusMetric middleware I get different metric for each id (because thay make different path). Would be great to have an option to somehow map real path to
/get/{id}
or something. I'm not sure if it's feasible to automatically find mapping provided inget/post/...
macros. However, maybe it would be enough to add option to provide custom function to modify path for purposes of storing metrics.Maybe something like (or something similar) could work:
Is there an option to add such functionality? Would that make sens or is there any better option?
The text was updated successfully, but these errors were encountered: