Closed kodieg closed 3 years ago
Created upstream ticket to expose API necessary to implement essential fix for this efficiently: https://github.com/actix/actix-web/issues/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 https://github.com/actix/actix-web/issues/1565
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?