You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to differentiate sttp prometheus metrics by external service I used to tag the request with the name of the external service, so then when creating the PrometheusBackend I could get the tag from the request and add it to the metric as a label.
Since 3.5.0 that's no longer possible for all metrics, as now responseToSuccessCounterMapper and responseToErrorCounterMapper are based on the Response.
Is there any plan to maybe add tags to the ResponseMetadata? Or is there maybe another way to achieve this?
The text was updated successfully, but these errors were encountered:
Adding tags to Response would be tricky, but maybe we can extend RequestMetadata with tags so that Response.request would make it possible to read that. Maybe you'd like to attempt creating a PR?
In order to differentiate sttp prometheus metrics by external service I used to tag the request with the name of the external service, so then when creating the
PrometheusBackend
I could get the tag from the request and add it to the metric as a label.Since 3.5.0 that's no longer possible for all metrics, as now
responseToSuccessCounterMapper
andresponseToErrorCounterMapper
are based on the Response.Is there any plan to maybe add
tags
to theResponseMetadata
? Or is there maybe another way to achieve this?The text was updated successfully, but these errors were encountered: