[package] name = "hive-metric" version.workspace = true readme = "README.md" edition.workspace = true [[bin]] name = "hive-metric" path = "src/main.rs" [dependencies] anyhow.workspace = true clap.workspace = true # OTEL SDK, from the workspace base — see the root Cargo.toml's comment for # the blocking-client rationale shared by every OTEL-pushing crate. # Blocking (not async) reqwest client on purpose: the metrics SDK drives the # OTLP push from a `PeriodicReader` background thread that has no Tokio runtime, # so the async client panics there with "no reactor running". The blocking # client sends on that thread directly — and for a fire-and-forget CLI that # records one point then `shutdown()`s, a synchronous send is exactly right. # No `internal-logs` here, unlike hive-c0re: this binary installs no tracing # subscriber, so the SDK's diagnostics would have nowhere to go. opentelemetry.workspace = true opentelemetry_sdk.workspace = true opentelemetry-otlp.workspace = true