From 6bddf0369efd233bb38cc1ae12c9ee42cec7b804 Mon Sep 17 00:00:00 2001 From: Anton Panasenko Date: Tue, 16 Sep 2025 16:02:17 -0700 Subject: [PATCH] [codex] use orginator as service_name --- codex-rs/core/src/otel_init.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/codex-rs/core/src/otel_init.rs b/codex-rs/core/src/otel_init.rs index a0d82f6eda..365f795b81 100644 --- a/codex-rs/core/src/otel_init.rs +++ b/codex-rs/core/src/otel_init.rs @@ -6,8 +6,7 @@ use codex_otel::config::OtelHttpProtocol; use codex_otel::config::OtelSettings; use codex_otel::otel_provider::OtelProvider; use std::error::Error; - -const SERVICE_NAME: &str = "codex-cli"; +use crate::default_client::ORIGINATOR; /// Build an OpenTelemetry provider from the app Config. /// @@ -47,7 +46,7 @@ pub fn build_provider( }; OtelProvider::from(&OtelSettings { - service_name: SERVICE_NAME.to_string(), + service_name: ORIGINATOR.value.to_owned(), service_version: service_version.to_string(), codex_home: config.codex_home.clone(), environment: config.otel.environment.to_string(),