Skip to content

Commit 2908cc5

Browse files
committed
Set service.namespace attribute to same value as service.group for purpose of Resource attributes
Signed-off-by: Vanio Begic <[email protected]>
1 parent 83f678a commit 2908cc5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/opentelemetry/OpenTelemetryAutoConfiguration.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ private Resource toResource(Environment environment, OpenTelemetryProperties pro
8080
.asMap();
8181
attributes.computeIfAbsent("service.name", (key) -> getApplicationName(environment));
8282
attributes.computeIfAbsent("service.group", (key) -> getApplicationGroup(environment));
83+
// See https://github.com/spring-projects/spring-boot/issues/44411 for potential information about deprecation of "service.group" attribute
84+
attributes.computeIfAbsent("service.namespace", (key) -> getApplicationGroup(environment));
8385
attributes.forEach(builder::put);
8486
return builder.build();
8587
}

0 commit comments

Comments
 (0)