Skip to content

Commit

Permalink
refactor: upgrade to axum 0.7 (#88)
Browse files Browse the repository at this point in the history
* refactor: upgrade to axum 0.7

* chore: use axum stable release

* chore: update examples deps

* chore: bump crate version to 0.8
  • Loading branch information
ttys3 authored Nov 27, 2023
1 parent b6c30f7 commit 4cecbb2
Show file tree
Hide file tree
Showing 5 changed files with 207 additions and 145 deletions.
165 changes: 92 additions & 73 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "axum-otel-metrics"
version = "0.7.0"
version = "0.8.0"
edition = "2021"
license = "MIT"
description = "axum OpenTelemetry metrics middleware with prometheus exporter"
Expand All @@ -12,12 +12,12 @@ exclude = [".github/*", "examples/*", "tests/*"]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
axum = "0.6.20"
axum = "0.7"
#axum = { git = "https://github.com/tokio-rs/axum.git", branch = "main"}
opentelemetry = { version = "0.21", features = ["metrics"] }
opentelemetry_sdk = { version = "0.21.1", features = ["rt-tokio"] }
opentelemetry-prometheus = { version = "0.14.1", features = ["prometheus-encoding"] }
opentelemetry-semantic-conventions = { version = "0.13.0"}
#axum = { git = "https://github.com/tokio-rs/axum.git", branch = "main"}
#opentelemetry = { git = "https://github.com/open-telemetry/opentelemetry-rust.git", branch = "main", features = ["metrics", "rt-tokio"]}
#opentelemetry-prometheus = { git = "https://github.com/open-telemetry/opentelemetry-rust.git", branch = "main", features = ["prometheus-encoding"] }
#opentelemetry-semantic-conventions = { git = "https://github.com/open-telemetry/opentelemetry-rust.git", branch = "main"}
Expand All @@ -26,8 +26,8 @@ prometheus = "0.13.3"
tower = "0.4.13"
futures-util = "0.3.29"
pin-project-lite = "0.2.13"
http = "0.2.11"
http-body = "0.4.5"
http = "1.0.0"
http-body = "1.0.0"


[dev-dependencies]
Expand Down
Loading

0 comments on commit 4cecbb2

Please sign in to comment.