Browse Source

Improve null-safety of module/spring-boot-opentelemetry

See gh-47263
pull/47626/head
Moritz Halbritter 2 months ago
parent
commit
d9dd769d36
  1. 2
      module/spring-boot-opentelemetry/src/main/java/org/springframework/boot/opentelemetry/autoconfigure/OpenTelemetryResourceAttributes.java

2
module/spring-boot-opentelemetry/src/main/java/org/springframework/boot/opentelemetry/autoconfigure/OpenTelemetryResourceAttributes.java

@ -60,7 +60,7 @@ public class OpenTelemetryResourceAttributes { @@ -60,7 +60,7 @@ public class OpenTelemetryResourceAttributes {
* @param environment the environment
* @param resourceAttributes user-provided resource attributes to be used
*/
public OpenTelemetryResourceAttributes(Environment environment, Map<String, String> resourceAttributes) {
public OpenTelemetryResourceAttributes(Environment environment, @Nullable Map<String, String> resourceAttributes) {
this(environment, resourceAttributes, null);
}

Loading…
Cancel
Save