Releases: Ptrskay3/axum-prometheus
Releases · Ptrskay3/axum-prometheus
0.7.0
Changed
MakeDefaultHandle::make_default_handle
now takesself
as argument. This allows custom implementor structs to hold non-static data. [#49]- Change the default initialization of
PrometheusHandle
to prevent unbounded memory growth of histograms. [#52] - Bump
metrics
to0.23
,metrics-exporter-prometheus
to0.15
. [#52] - Document MSRV as 1.70 currently. [#52]
Added
GenericMetricLayer::pair_from
to initialize from a concrete struct.GenericMetricLayer::pair
now requires that the handle type implementsDefault
. [#49]BaseMetricLayer
that serves a more lightweight alternative toGenericMetricLayer
. [#56]
What's Changed
- Update metrics-exporter-prometheus to 0.14.0 by @gauravkumar37 in #50
MakeDefaultHandle
and other API improvements by @Ptrskay3 in #49- Change default initialization of PrometheusHandle by @Ptrskay3 in #52
- A backend-agnostic layer by @Ptrskay3 in #56
- Briefly document push gateway mode by @Ptrskay3 in #61
- release/0.7.0 by @Ptrskay3 in #62
New Contributors
- @gauravkumar37 made their first contribution in #50
Full Changelog: 0.6.1...0.7.0
0.6.1
- Disabled the
"push-gateway"
feature inmetrics-exporter-prometheus
by default, and added a way to enable it via
the same name underaxum_prometheus
. This change ensures that this crate can still be built without openssl support, see here. [#44] - Update examples to
metrics-exporter-prometheus
to0.13
andmetrics
to0.22
. [#43]
0.6.0
0.5.0
Added
- Support for response body size metric, which can be turned on via
PrometheusMetricLayerBuilder::enable_response_body_size
. [#33] - All metrics now are initialized via the
metrics::describe_*
functions by default, but can be turned off withPrometheusMetricLayerBuilder::no_initialize_metrics
if you wish to do it manually. [#33] - Compatibility with
http-body = "1.0"
andaxum = "0.7"
. [#36]
Changed
- The lower-level Lifecycle API has changed: separated the
OnBodyChunk
trait, which is ran when a response body chunk has been generated. [#33]
0.4.0
Added
- Support for different exporters than Prometheus. Developers now allowed to use their own exporter - as long as it's using the
metrics.rs
ecosystem. This is meant to be a non-breaking change - if you're using Prometheus, you shouldn't notice any changes in the public API. If you do however, please file an issue! #28 - An example showcasing
StatsD
exporter #28 - Simple snapshot tests #28
- Utility functions to get metric names at runtime #28
Fixed
- Previous attempts to fix
PrometheusMetricBuilder::with_prefix
in 0.3.4 were not complete, this is now fully addressed. #28
0.3.4
Fixed
PrometheusMetricBuilder::with_prefix
is now properly setting the metric prefix, and the metric handle also takes that prefix into account. Previously the metric initialization incorrectly ignored the prefix, which caused the requests duration histogram to usequantile
instead ofle
labels. [#26]. (Thanks @yanns!)
0.3.3
0.3.2
0.3.1
0.3.0
- Routing patterns can be ignored, and grouped together when reporting to Prometheus. Added
PrometheusMetricLayerBuilder
to easily customize these. [#5] - Endpoint label behavior can be altered with the new
EndpointLabel
enum. [#8] - The metric names can be changed by setting some environmental variables at compile time. [#6] (Thanks @dylanwh.)