Skip to content

Commit

Permalink
Merge pull request #29 from Ptrskay3/release/0.4.0
Browse files Browse the repository at this point in the history
release 0.4.0
  • Loading branch information
Ptrskay3 authored Jul 24, 2023
2 parents 7d2cbcc + 6c7fc08 commit 7aa4605
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 7 deletions.
17 changes: 16 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,19 @@ All notable changes to this project will be documented in this file.

-

# [0.4.0] - 2023-07-24

### Added

- Support for different exporters than Prometheus. Developers now allowed to use their own exporter - as long as it's using the `metrics.rs` ecosystem. This is meant to be a non-breaking change - if you're using Prometheus, you shouldn't notice any changes in the public API. If you do however, please file an issue! [\#28]
- An example showcasing `StatsD` exporter [\#28]
- Simple snapshot tests [\#28]
- Utility functions to get metric names at runtime [\#28]

### Fixed

- Previous attempts to fix `PrometheusMetricBuilder::with_prefix` in 0.3.4 were not complete, this is now fully addressed. [\#28]

# [0.3.4] - 2023-07-16

### Fixed
Expand Down Expand Up @@ -70,10 +83,12 @@ All notable changes to this project will be documented in this file.

First version.

[unreleased]: https://github.com/Ptrskay3/axum-prometheus/compare/master...release/0.3.4
[unreleased]: https://github.com/Ptrskay3/axum-prometheus/compare/master...release/0.4.0
[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
[0.3.2]: https://github.com/Ptrskay3/axum-prometheus/compare/release/0.3.1...release/0.3.2
[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
[\#28]: https://github.com/Ptrskay3/axum-prometheus/pull/28
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[package]
name = "axum-prometheus"
version = "0.3.4"
version = "0.4.0"
edition = "2021"
homepage = "https://github.com/Ptrskay3/axum-prometheus"
license = "MIT"
description = "Prometheus metrics middleware for Axum"
description = "A tower middleware to collect and export HTTP metrics for Axum"
keywords = ["axum", "prometheus", "metrics"]
categories = ["asynchronous", "network-programming", "web-programming", "development-tools::profiling"]
repository = "https://github.com/Ptrskay3/axum-prometheus"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Add `axum-prometheus` to your `Cargo.toml`.

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

Then you instantiate the prometheus middleware:
Expand Down Expand Up @@ -119,7 +119,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.3.4", default-features = false }
axum-prometheus = { version = "0.4.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 @@ -35,7 +35,7 @@
//! Add `axum-prometheus` to your `Cargo.toml`.
//! ```not_rust
//! [dependencies]
//! axum-prometheus = "0.3.4"
//! axum-prometheus = "0.4.0"
//! ```
//!
//! Then you instantiate the prometheus middleware:
Expand Down Expand Up @@ -92,7 +92,7 @@
//! This crate may be used with other exporters than Prometheus. First, disable the default features:
//!
//! ```toml
//! axum-prometheus = { version = "0.3.4", default-features = false }
//! axum-prometheus = { version = "0.4.0", default-features = false }
//! ```
//!
//! Then implement the `MakeDefaultHandle` for the provider you'd like to use. For `StatsD`:
Expand Down

0 comments on commit 7aa4605

Please sign in to comment.