diff --git a/CHANGELOG.md b/CHANGELOG.md index 3b164f6..3d8c5a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.10.1] - 2024-05-20 +### Added + +- Add `PrometheusMetrics::with_request_filter`, allowing requests to be omitted from metrics by passing a closure returning `false` ([#23](https://github.com/sd2k/rocket_prometheus/pull/23), by @Eijebong). + ## [0.10.0] - 2023-11-20 ### Changed @@ -93,7 +98,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.10.0...HEAD +[Unreleased]: https://github.com/sd2k/rocket_prometheus/compare/v0.10.1...HEAD +[0.10.1]: https://github.com/sd2k/rocket_prometheus/compare/v0.10.0...v0.10.1 [0.10.0]: https://github.com/sd2k/rocket_prometheus/compare/v0.10.0-rc.3...v0.10.0 [0.10.0-rc.3]: https://github.com/sd2k/rocket_prometheus/compare/v0.10.0-rc.2...v0.10.0-rc.3 [0.10.0-rc.2]: https://github.com/sd2k/rocket_prometheus/compare/v0.10.0-rc.1...v0.10.0-rc.2 diff --git a/Cargo.toml b/Cargo.toml index 023cd07..5eb186b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ name = "rocket_prometheus" description = """ Prometheus instrumentation for Rocket applications. """ -version = "0.10.0" +version = "0.10.1" authors = ["Ben Sully "] repository = "https://github.com/sd2k/rocket_prometheus" edition = "2018" diff --git a/README.md b/README.md index 45f87c4..8112e90 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ Add this crate to your `Cargo.toml` alongside Rocket 0.5.0: ```toml [dependencies] rocket = "0.5.0" -rocket_prometheus = "0.10.0" +rocket_prometheus = "0.10.1" ``` Then attach and mount a `PrometheusMetrics` instance to your Rocket app: diff --git a/src/lib.rs b/src/lib.rs index e7fdc5a..25b2e9b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -8,7 +8,7 @@ Add this crate to your `Cargo.toml` alongside Rocket 0.5.0: ```toml [dependencies] rocket = "0.5.0" -rocket_prometheus = "0.10.0" +rocket_prometheus = "0.10.1" ``` Then attach and mount a [`PrometheusMetrics`] instance to your Rocket app: