From 621f93ed771e3c99a023f1522e449be3e50211f9 Mon Sep 17 00:00:00 2001 From: 0xKitsune <0xKitsune@protonmail.com> Date: Mon, 26 Feb 2024 13:47:21 -0500 Subject: [PATCH] configurable traces endpoint --- bin/mpc_node.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bin/mpc_node.rs b/bin/mpc_node.rs index f886f52..f4dcce7 100644 --- a/bin/mpc_node.rs +++ b/bin/mpc_node.rs @@ -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,