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
I'm using TraceLayer's on_response handler to record latency metrics for a tonic service. I want to ignore requests that were for the healthcheck endpoint though, to avoid skewing the metrics.
I can't pull the request path from the span though because there doesn't seem to be a way to access span fields that have been previously added to the span.
What's the best approach for situations like this?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Summary
I'm using TraceLayer's
on_response
handler to record latency metrics for a tonic service. I want to ignore requests that were for the healthcheck endpoint though, to avoid skewing the metrics.I can't pull the request path from the span though because there doesn't seem to be a way to access span fields that have been previously added to the span.
What's the best approach for situations like this?
tower-http version
0.6.2
Beta Was this translation helpful? Give feedback.
All reactions