Skip to content

Commit

Permalink
Release version 0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sd2k committed Jul 10, 2021
1 parent 218fd14 commit 961d274
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ 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.0] - 2021-07-10
### Changed

- Update `prometheus` requirement to 0.11.
- Update `prometheus` requirement to 0.12.
- Add `version=0.0.4` parameter to `Content-Type` header when returning metrics at the /metrics URL, as specified by the Prometheus [Exposition Formats specification](https://prometheus.io/docs/instrumenting/exposition_formats/#text-based-format).
- Use `Duration::as_secs_f64` instead of manually calculating nanoseconds when calculating request durations. This bumps the minimum supported Rust version to 1.38.0, which is unlikely to be a problem in practice, since Rocket still requires a nightly version of Rust.
- Impl `From<PrometheusMetrics> for Vec<Route>` instead of `Into<Vec<Route>> for PrometheusMetrics`, since the former gives us the latter for free.
Expand Down Expand Up @@ -60,7 +62,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.7.0...HEAD
[Unreleased]: https://github.com/sd2k/rocket_prometheus/compare/v0.8.0...HEAD
[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
[0.5.0]: https://github.com/sd2k/rocket_prometheus/compare/v0.4.0...v0.5.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.7.0"
version = "0.8.0"
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.7.0"
rocket_prometheus = "0.8.0"
```

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.7.0"
rocket_prometheus = "0.8.0"
```
Then attach and mount a `PrometheusMetrics` instance to your Rocket app:
Expand Down

0 comments on commit 961d274

Please sign in to comment.