fix(hive-metric): use opentelemetry-otlp SDK instead of hand-rolled OTLP

This commit is contained in:
damocles 2026-07-04 23:00:06 +02:00 committed by mara
commit b4b5dd7fa4
2 changed files with 59 additions and 115 deletions

View file

@ -10,6 +10,13 @@ path = "src/main.rs"
[dependencies]
anyhow.workspace = true
clap.workspace = true
reqwest.workspace = true
serde_json.workspace = true
# OTEL SDK — only used by this crate, so kept local rather than in workspace.dependencies.
opentelemetry = "0.32"
opentelemetry_sdk = { version = "0.32", features = ["metrics"] }
opentelemetry-otlp = { version = "0.32", default-features = false, features = [
"metrics",
"http-json",
"reqwest-client",
"reqwest-rustls",
] }
tokio = { workspace = true, features = ["rt", "macros"] }