Skip to content

v0.23.0

Latest
Compare
Choose a tag to compare
@stephenhillier stephenhillier released this 26 Jun 04:06

Features

Group unhandled paths

You can now get metrics on requests made against unhandled paths (i.e. 404s) using the group_unhandled_paths option. When this option is set, metrics for unhandled requests will be grouped under the path="__unknown__" label. From the README:

group_unhandled_paths: Similar to filter_unhandled_paths, but instead of ignoring the requests, they are grouped under the __unknown__ path. This option overrides filter_unhandled_paths by setting it to False. The default value is False.

All credit to @piotrhyzy and @Filipoliko!

Bug fixes:

  • Fixed a Prometheus client exception that could occur when using the from_response_header helper function to create custom labels. Thanks to @lainiwa for reporting an issue.