Skip to content

Commit

Permalink
fix: custom service name
Browse files Browse the repository at this point in the history
  • Loading branch information
Revolution1 committed Jul 24, 2024
1 parent 13aeb84 commit ff6c513
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extensions/telemetry/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ pub fn setup_telemetry(options: &TelemetryConfig) -> Result<Option<Tracer>, Trac

let resource = Resource::from_schema_url(
[
KeyValue::new(semconv::resource::SERVICE_NAME, env!("CARGO_PKG_NAME")),
KeyValue::new(semconv::resource::SERVICE_NAME, service_name),
KeyValue::new(
semconv::resource::SERVICE_VERSION,
crate::build_info::GIT_VERSION.unwrap_or(env!("CARGO_PKG_VERSION")),
Expand Down

0 comments on commit ff6c513

Please sign in to comment.