From 6b894ff3094276c5cb4ef1f85f083270d3f73996 Mon Sep 17 00:00:00 2001 From: Ben Sully Date: Wed, 21 Jul 2021 09:37:18 +0100 Subject: [PATCH] Release version 0.8.1 --- CHANGELOG.md | 5 ++++- Cargo.toml | 2 +- README.md | 2 +- src/lib.rs | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7ccd6fc..fcd9c45 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] + +## [0.8.1] - 2021-07-21 ### Changed - The two Rocket related metrics (`http_requests_total` and `http_requests_duration_seconds`) are now stored inside a separate registry to additional metrics. This allows multiple `PrometheusMetrics` fairings to exist even when using the global `prometheus::Registry`, such as the one used for metrics created by the macros in the `prometheus` crate. Previously this would cause a panic because the two fairing instances would attempt to register identical metrics to the same registry, which is an error. The implication of this is that the registry returned by `PrometheusMetrics::registry` no longer contains the Rocket related metrics. In practice this is unlikely to be a problem, since metrics from both registries are returned by the fairing's handler as before. @@ -65,7 +67,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - First version of the crate released to crates.io. -[Unreleased]: https://github.com/sd2k/rocket_prometheus/compare/v0.8.0...HEAD +[Unreleased]: https://github.com/sd2k/rocket_prometheus/compare/v0.8.1...HEAD +[0.8.1]: https://github.com/sd2k/rocket_prometheus/compare/v0.8.0...v0.8.1 [0.8.0]: https://github.com/sd2k/rocket_prometheus/compare/v0.7.0...v0.8.0 [0.7.0]: https://github.com/sd2k/rocket_prometheus/compare/v0.6.0...v0.7.0 [0.6.0]: https://github.com/sd2k/rocket_prometheus/compare/v0.5.0...v0.6.0 diff --git a/Cargo.toml b/Cargo.toml index c6e27d8..e527fa9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ name = "rocket_prometheus" description = """ Prometheus instrumentation for Rocket applications. """ -version = "0.8.0" +version = "0.8.1" authors = ["Ben Sully "] repository = "https://github.com/sd2k/rocket_prometheus" edition = "2018" diff --git a/README.md b/README.md index d2f5d73..2190d84 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ Add this crate to your `Cargo.toml`: ```toml [dependencies] -rocket_prometheus = "0.8.0" +rocket_prometheus = "0.8.1" ``` Then attach and mount a `PrometheusMetrics` instance to your Rocket app: diff --git a/src/lib.rs b/src/lib.rs index 0b4dd79..b92ed1a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -7,7 +7,7 @@ Add this crate to your `Cargo.toml`: ```toml [dependencies] -rocket_prometheus = "0.8.0" +rocket_prometheus = "0.8.1" ``` Then attach and mount a `PrometheusMetrics` instance to your Rocket app: