Skip to content

Commit

Permalink
update metric example to use hyper 1.0 version
Browse files Browse the repository at this point in the history
  • Loading branch information
getong committed Dec 26, 2023
1 parent 4260702 commit 65ca552
Show file tree
Hide file tree
Showing 4 changed files with 113 additions and 89 deletions.
93 changes: 52 additions & 41 deletions Cargo.lock

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

14 changes: 9 additions & 5 deletions examples/metrics/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,19 @@ release = false

[dependencies]
futures = "0.3.29"
hyper = { version = "0.14", features = ["server", "tcp", "http1"] }
bytes = "1.5.0"
hyper = { version = "1.1", features = ["full"]}
http-body-util = "0.1.0"
hyper-util = { version = "0.1.2", features = ["full"] }
libp2p = { path = "../../libp2p", features = ["tokio", "metrics", "ping", "noise", "identify", "tcp", "yamux", "macros"] }
opentelemetry = { version = "0.20.0", features = ["rt-tokio", "metrics"] }
opentelemetry-otlp = { version = "0.13.0", features = ["metrics"]}
opentelemetry = { version = "0.21.0", features = ["metrics"] }
opentelemetry-otlp = { version = "0.14.0", features = ["metrics"]}
opentelemetry_api = "0.20.0"
prometheus-client = { workspace = true }
opentelemetry_sdk = {version = "0.21.1", features = ["rt-tokio", "metrics"]}
tokio = { version = "1", features = ["full"] }
tracing = "0.1.37"
tracing-opentelemetry = "0.21.0"
tracing = "0.1.40"
tracing-opentelemetry = "0.22.0"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }

[lints]
Expand Down
Loading

0 comments on commit 65ca552

Please sign in to comment.