Skip to content

Commit

Permalink
Release version 0.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sd2k committed Jul 21, 2021
1 parent 1a74203 commit 6b894ff
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "rocket_prometheus"
description = """
Prometheus instrumentation for Rocket applications.
"""
version = "0.8.0"
version = "0.8.1"
authors = ["Ben Sully <[email protected]>"]
repository = "https://github.com/sd2k/rocket_prometheus"
edition = "2018"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6b894ff

Please sign in to comment.