Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ All notable changes to this project will be documented in this file.

-

# [0.10.0] - 2026-01-03

### Changed

- Bump metrics-exporter-prometheus to `0.18`.

# [0.9.0] - 2025-08-13

### Changed
Expand Down Expand Up @@ -143,7 +149,7 @@ All notable changes to this project will be documented in this file.

First version.

[unreleased]: https://github.com/Ptrskay3/axum-prometheus/compare/release/0.9.0..master
[unreleased]: https://github.com/Ptrskay3/axum-prometheus/compare/release/0.10.0..master
[0.2.0]: https://github.com/Ptrskay3/axum-prometheus/compare/9fb600d7d9ac2e6d38e6399119fc7ba7f25d5fe0...756dc67bf2baae2de406e012bdaa2334ce0fcdcb
[0.3.0]: https://github.com/Ptrskay3/axum-prometheus/compare/axum-0.6...release/0.3
[0.3.1]: https://github.com/Ptrskay3/axum-prometheus/compare/release/0.3...release/0.3.1
Expand All @@ -157,4 +163,5 @@ First version.
[0.7.0]: https://github.com/Ptrskay3/axum-prometheus/compare/release/0.6.1...release/0.7.0
[0.8.0]: https://github.com/Ptrskay3/axum-prometheus/compare/release/0.7.0...release/0.8.0
[0.9.0]: https://github.com/Ptrskay3/axum-prometheus/compare/release/0.8.0...release/0.9.0
[0.10.0]: https://github.com/Ptrskay3/axum-prometheus/compare/release/0.9.0...release/0.10.0
[\#28]: https://github.com/Ptrskay3/axum-prometheus/pull/28
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "axum-prometheus"
version = "0.9.0"
version = "0.10.0"
edition = "2021"
homepage = "https://github.com/Ptrskay3/axum-prometheus"
license = "MIT"
Expand All @@ -14,8 +14,8 @@ repository = "https://github.com/Ptrskay3/axum-prometheus"
axum = "0.8.4"
http = "1.3.1"
http-body = "1.0.0"
metrics = "0.24.2"
metrics-exporter-prometheus = { version = "0.17", optional = true, default-features = false }
metrics = "0.24.3"
metrics-exporter-prometheus = { version = "0.18", optional = true, default-features = false }
pin-project-lite = "0.2.16"
tower = "0.5.1"
tokio = { version = "1.47.1", features = ["rt-multi-thread", "macros"] }
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ AXUM_HTTP_RESPONSE_BODY_SIZE = "my_app_response_body_size"

### Compatibility

| Axum Version | Crate Version |
|--------------|---------------------|
| `0.5` | `0.1` |
| `0.6` | `0.2`, `0.3`, `0.4` |
| `0.7` | `0.5`, `0.6`, `0.7` |
| `0.8` | `0.8`, `0.9` |
| Axum Version | Crate Version |
|--------------|----------------------|
| `0.5` | `0.1` |
| `0.6` | `0.2`, `0.3`, `0.4` |
| `0.7` | `0.5`, `0.6`, `0.7` |
| `0.8` | `0.8`, `0.9`, `0.10` |

#### MSRV

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

```toml
[dependencies]
axum-prometheus = "0.9.0"
axum-prometheus = "0.10.0"
```

Then you instantiate the prometheus middleware:
Expand Down Expand Up @@ -135,7 +135,7 @@ This crate currently has no higher level API for the `push-gateway` feature. If
This crate may be used with other exporters than Prometheus. First, disable the default features:

```toml
axum-prometheus = { version = "0.9.0", default-features = false }
axum-prometheus = { version = "0.10.0", default-features = false }
```

Then implement the `MakeDefaultHandle` for the provider you'd like to use. For `StatsD`:
Expand Down
6 changes: 3 additions & 3 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.9.0"
//! axum-prometheus = "0.10.0"
//! ```
//!
//! Then you instantiate the prometheus middleware:
Expand Down Expand Up @@ -98,7 +98,7 @@
//! This crate may be used with other exporters than Prometheus. First, disable the default features:
//!
//! ```toml
//! axum-prometheus = { version = "0.9.0", default-features = false }
//! axum-prometheus = { version = "0.10.0", default-features = false }
//! ```
//!
//! Then implement the `MakeDefaultHandle` for the provider you'd like to use. For `StatsD`:
Expand Down Expand Up @@ -334,7 +334,7 @@ impl<'a> Traffic<'a> {
pub(crate) fn ignores(&self, path: &str) -> bool {
match self.filter_mode {
FilterMode::Ignore => self.ignore_patterns.at(path).is_ok(),
FilterMode::AllowOnly => !self.allow_patterns.at(path).is_ok(),
FilterMode::AllowOnly => self.allow_patterns.at(path).is_err(),
}
}

Expand Down
Loading