From 22781fc6a0867e0f44d324bd73827add878fbfe3 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Fri, 31 Oct 2025 09:30:19 -0700 Subject: [PATCH] Polish `DEFAULT_SERVICE_NAME` javadoc See gh-44494 --- .../opentelemetry/OpenTelemetryResourceAttributes.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/opentelemetry/OpenTelemetryResourceAttributes.java b/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/opentelemetry/OpenTelemetryResourceAttributes.java index cda30f67918..c7f867ce11b 100644 --- a/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/opentelemetry/OpenTelemetryResourceAttributes.java +++ b/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/opentelemetry/OpenTelemetryResourceAttributes.java @@ -44,7 +44,8 @@ import org.springframework.util.StringUtils; public final class OpenTelemetryResourceAttributes { /** - * Default value for service name if {@code service.name} is not set. + * Default value for service name. Used if {@code service.name} is not set and no name + * can be deduced from the running application. */ private static final String DEFAULT_SERVICE_NAME = "unknown_service";