mozilla / fx-private-relay

Keep your email safe from hackers and trackers. Make an email alias with 1 click, and keep your address to yourself.
https://relay.firefox.com
Other
1.44k stars 166 forks source link

For `ResponseMetrics` middleware, improve `view` tag and add tests #4746

Closed jwhitlock closed 4 weeks ago

jwhitlock commented 1 month ago

The ResponseMetrics middleware emits the timing metric fx.private.relay.response. This gives us the application's view of the response time, bucketed by the hour. We use the view tag to segment by views, to determine trends over time and slow periods.

This PR improve the tag view in a few cases:

This PR also includes tests for ResponseMetrics.

How to test