Skip to content

Commit

Permalink
Merge pull request #56 from worldcoin/0xkitsune/traces-endpoint
Browse files Browse the repository at this point in the history
fix(tracing): configurable datadog endpoint
  • Loading branch information
0xKitsune authored Feb 26, 2024
2 parents 485fb08 + 621f93e commit 09bfe0c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions bin/mpc_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,12 @@ async fn main() -> eyre::Result<()> {
let config: Config = load_config("MPC", args.config.as_deref())?;

let _tracing_shutdown_handle = if let Some(service) = &config.service {
let tracing_shutdown_handle =
DatadogBattery::init(None, &service.service_name, None, true);
let tracing_shutdown_handle = DatadogBattery::init(
service.traces_endpoint.as_deref(),
&service.service_name,
None,
true,
);

StatsdBattery::init(
&service.metrics_host,
Expand Down

0 comments on commit 09bfe0c

Please sign in to comment.