diff --git a/src/lib.rs b/src/lib.rs index 0330a57..c744cdf 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -377,6 +377,7 @@ impl AppInsights { let config = Config::default().with_resource(opentelemetry_sdk::Resource::new(vec![ KeyValue::new("service.namespace", namespace.as_ref().to_owned()), KeyValue::new("service.name", name.as_ref().to_owned()), + KeyValue::new("host.name", servername.as_ref().to_owned()), // KeyValue::new("ai.cloud.roleInstance", server_name.clone()), // Azure-specific resource attribute KeyValue::new("service.instance.id", servername.as_ref().to_owned()), // General OpenTelemetry attribute ]));