From abfc5810303fadf80c6de7bdf55c38b783b8e2be Mon Sep 17 00:00:00 2001 From: drbh Date: Thu, 20 Jun 2024 00:56:34 +0000 Subject: [PATCH] fix: adjust types --- launcher/src/main.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/launcher/src/main.rs b/launcher/src/main.rs index 01d0e8f4..0defe027 100644 --- a/launcher/src/main.rs +++ b/launcher/src/main.rs @@ -486,7 +486,7 @@ fn shard_manager( max_batch_size: Option, max_input_tokens: usize, otlp_endpoint: Option, - otlp_service_name: String, + otlp_service_name: Option, log_level: LevelFilter, status_sender: mpsc::Sender, shutdown: Arc, @@ -559,7 +559,7 @@ fn shard_manager( } // OpenTelemetry Service Name - if let Some(otlp_endpoint) = otlp_endpoint { + if let Some(otlp_service_name) = otlp_service_name { shard_args.push("--otlp-service-name".to_string()); shard_args.push(otlp_service_name); } @@ -1220,8 +1220,9 @@ fn spawn_webserver( } // OpenTelemetry - if args.otlp_service_name { + if let Some(otlp_service_name) = args.otlp_service_name { router_args.push("--otlp-service-name".to_string()); + router_args.push(otlp_service_name); } // CORS origins