Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
iHsin authored Sep 11, 2024
1 parent 4167f04 commit 89e5ebb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clash_lib/src/app/logging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use opentelemetry::{
};
use opentelemetry_sdk::{trace, Resource};
use opentelemetry_semantic_conventions::{
resource::{DEPLOYMENT_ENVIRONMENT, SERVICE_NAME, SERVICE_VERSION},
resource::{DEPLOYMENT_ENVIRONMENT_NAME, SERVICE_NAME, SERVICE_VERSION},
SCHEMA_URL,
};
use serde::Serialize;
Expand Down Expand Up @@ -124,7 +124,7 @@ pub fn setup_logging(
KeyValue::new(SERVICE_NAME, env!("CARGO_PKG_NAME")),
KeyValue::new(SERVICE_VERSION, env!("CARGO_PKG_VERSION")),
KeyValue::new(
DEPLOYMENT_ENVIRONMENT,
DEPLOYMENT_ENVIRONMENT_NAME,
std::env::var("PROFILE").unwrap_or_default(),
),
],
Expand Down

0 comments on commit 89e5ebb

Please sign in to comment.