Skip to content

Commit 428963e

Browse files
committed
Merge pull request #50867 from nosan
Closes gh-50867 * gh-50867: Update OpenTelemetryResourceAttributes documentation
2 parents 73e30d6 + 43985f1 commit 428963e

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,11 @@ public OpenTelemetryResourceAttributes(Environment environment, @Nullable Map<St
8686
* If a key exists in both environment variables and user-defined resources, the value
8787
* from the user-defined resource takes precedence, even if it is empty.
8888
* <p>
89-
* Additionally, {@code spring.application.name} or {@code unknown_service} will be
90-
* used as the default for {@code service.name}, and {@code spring.application.group}
91-
* will serve as the default for {@code service.group} and {@code service.namespace}.
92-
* @param consumer the {@link BiConsumer} to apply
89+
* Additionally, {@code spring.application.name}, or {@code unknown_service} if it is
90+
* not set, will be used as the default value for {@code service.name}, and
91+
* {@code spring.application.group} will serve as the default value for
92+
* {@code service.namespace}.
93+
* @param consumer the consumer to apply resource attributes to
9394
*/
9495
public void applyTo(BiConsumer<String, String> consumer) {
9596
Assert.notNull(consumer, "'consumer' must not be null");

0 commit comments

Comments
 (0)