You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/opentelemetry/OpenTelemetryResourceAttributes.java
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@
26
26
importorg.springframework.util.StringUtils;
27
27
28
28
/**
29
-
* OpenTelemetryResourceAttributes retrieves information from the
29
+
* {@link OpenTelemetryResourceAttributes} retrieves information from the
30
30
* {@code OTEL_RESOURCE_ATTRIBUTES} and {@code OTEL_SERVICE_NAME} environment variables
31
31
* and merges it with the resource attributes provided by the user.
32
32
* <p>
@@ -70,14 +70,16 @@ public OpenTelemetryResourceAttributes(Map<String, String> resourceAttributes) {
70
70
* If a key exists in both environment variables and user-defined resources, the value
71
71
* from the user-defined resource takes precedence, even if it is empty.
72
72
* <p>
73
-
* <b>Null keys and values are ignored.</b>
73
+
* <b>Keys that are null or empty will be ignored, and all keys will be trimmed.</b>
74
+
* <p>
75
+
* <b>Values that are null will be ignored, and all values will be trimmed.</b>
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/opentelemetry/OpenTelemetryResourceAttributesTests.java
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,6 @@ class OpenTelemetryResourceAttributesTests {
0 commit comments