Skip to content

Commit

Permalink
Merge pull request Ptrskay3#37 from Ptrskay3/release/0.5.0
Browse files Browse the repository at this point in the history
release/0.5.0
  • Loading branch information
Ptrskay3 authored Nov 27, 2023
2 parents c102992 + 3ae5b30 commit 4601af8
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 9 deletions.
14 changes: 10 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,21 @@

All notable changes to this project will be documented in this file.

## [Unreleased]
# [Unreleased]

-

# [0.5.0] - 2023-11-27

### Added

- Support for response body size metric, which can be turned on via `PrometheusMetricLayerBuilder::enable_response_body_size`.
- All metrics now are initialized via `metrics::describe_*` function by default, but can be turned off with `PrometheusMetricLayerBuilder::no_initialize_metrics`.
- Support for response body size metric, which can be turned on via `PrometheusMetricLayerBuilder::enable_response_body_size`. [\#33]
- All metrics now are initialized via `metrics::describe_*` function by default, but can be turned off with `PrometheusMetricLayerBuilder::no_initialize_metrics`. [\#33]
- Compatibility with `http-body = "1.0"` and`axum = "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.
- 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] - 2023-07-24

Expand Down Expand Up @@ -98,4 +103,5 @@ First version.
[0.3.3]: https://github.com/Ptrskay3/axum-prometheus/compare/release/0.3.2...release/0.3.3
[0.3.4]: https://github.com/Ptrskay3/axum-prometheus/compare/release/0.3.3...release/0.3.4
[0.4.0]: https://github.com/Ptrskay3/axum-prometheus/compare/release/0.3.4...release/0.4.0
[0.5.0]: https://github.com/Ptrskay3/axum-prometheus/compare/release/0.4.0...release/0.5.0
[\#28]: https://github.com/Ptrskay3/axum-prometheus/pull/28
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "axum-prometheus"
version = "0.4.0"
version = "0.5.0"
edition = "2021"
homepage = "https://github.com/Ptrskay3/axum-prometheus"
license = "MIT"
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ AXUM_HTTP_RESPONSE_BODY_SIZE = "my_app_response_body_size"
| ------------ | ------------- |
| `0.5` | `0.1` |
| `0.6` | `0.2`, `0.3`, `0.4` |
| `0.7` | `0.5` |

## Usage

Expand All @@ -62,7 +63,7 @@ Add `axum-prometheus` to your `Cargo.toml`.

```toml
[dependencies]
axum-prometheus = "0.4.0"
axum-prometheus = "0.5.0"
```

Then you instantiate the prometheus middleware:
Expand Down Expand Up @@ -121,7 +122,7 @@ axum_http_requests_duration_seconds_count{method="GET",status="200",endpoint="/m
This crate may be used with other exporters than Prometheus. First, disable the default features:

```toml
axum-prometheus = { version = "0.4.0", default-features = false }
axum-prometheus = { version = "0.5.0", default-features = false }
```

Then implement the `MakeDefaultHandle` for the provider you'd like to use. For `StatsD`:
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
//! Add `axum-prometheus` to your `Cargo.toml`.
//! ```not_rust
//! [dependencies]
//! axum-prometheus = "0.4.0"
//! axum-prometheus = "0.5.0"
//! ```
//!
//! Then you instantiate the prometheus middleware:
Expand Down Expand Up @@ -93,7 +93,7 @@
//! This crate may be used with other exporters than Prometheus. First, disable the default features:
//!
//! ```toml
//! axum-prometheus = { version = "0.4.0", default-features = false }
//! axum-prometheus = { version = "0.5.0", default-features = false }
//! ```
//!
//! Then implement the `MakeDefaultHandle` for the provider you'd like to use. For `StatsD`:
Expand Down

0 comments on commit 4601af8

Please sign in to comment.