Skip to content

Commit

Permalink
Bump telemetry-batteries
Browse files Browse the repository at this point in the history
  • Loading branch information
Dzejkop committed Oct 10, 2024
1 parent 423964a commit 01c28d5
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 9 deletions.
34 changes: 30 additions & 4 deletions Cargo.lock

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

4 changes: 1 addition & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ hex = "0.4"
hyper = { version = "^0.14.27", features = ["server", "tcp", "http1", "http2"] }
maplit = "1.0.2"
metrics = "0.21.1"
opentelemetry = "0.21.0"
opentelemetry-datadog = "0.9.0"
rand = { version = "0.8.5", features = ["small_rng"] }
rayon = "1.10.0"
ruint = "1.11.0"
Expand All @@ -43,7 +41,7 @@ serde = { version = "1.0.189", features = ["derive"] }
serde_json = "1.0"
serde_path_to_error = "0.1.16"
take_mut = "0.2.2"
telemetry-batteries = { git = "https://github.com/worldcoin/telemetry-batteries.git", rev = "802a4f39f358e077b11c8429b4c65f3e45b85959" }
telemetry-batteries = { git = "https://github.com/worldcoin/telemetry-batteries.git", rev = "12cc036234b4e9b86f22ff7e35d499e2ff1e6304" }
tempfile = "3.10.1"
thiserror = "1.0"
tokio = { version = "1.34.0", features = ["sync", "macros", "rt-multi-thread"] }
Expand Down
2 changes: 0 additions & 2 deletions src/bin/world_tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use std::path::PathBuf;
use clap::Parser;
use futures::stream::FuturesUnordered;
use futures::StreamExt;
use opentelemetry_datadog::DatadogPropagator;
use telemetry_batteries::metrics::statsd::StatsdBattery;
use telemetry_batteries::tracing::datadog::DatadogBattery;
use telemetry_batteries::tracing::TracingShutdownHandle;
Expand Down Expand Up @@ -37,7 +36,6 @@ pub async fn main() -> WorldTreeResult<()> {
let config = ServiceConfig::load(opts.config.as_deref())?;

let _tracing_shutdown_handle = if let Some(telemetry) = &config.telemetry {
opentelemetry::global::set_text_map_propagator(DatadogPropagator::new());
let tracing_shutdown_handle = DatadogBattery::init(
telemetry.traces_endpoint.as_deref(),
&telemetry.service_name,
Expand Down

0 comments on commit 01c28d5

Please sign in to comment.