Skip to content

Commit 02765bc

Browse files
wanger26mhalbritter
authored andcommitted
Clarify that auto-configured OpenTelemetry Resource behaviour
The documentation does not describe that exposing a Resource bean, will prevent the property from being able to provide attributes (unless the newly exposed Resource bean, implements it). Signed-off-by: Jakob Wanger <[email protected]> See gh-39509
1 parent 5df64af commit 02765bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-boot-project/spring-boot-docs/src/docs/asciidoc/actuator/observability.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Spring Boot's actuator module includes basic support for https://opentelemetry.i
8080

8181
It provides a bean of type `OpenTelemetry`, and if there are beans of type `SdkTracerProvider`, `ContextPropagators`, `SdkLoggerProvider` or `SdkMeterProvider` in the application context, they automatically get registered.
8282
Additionally, it provides a `Resource` bean.
83-
The attributes of the `Resource` can be configured via the configprop:management.opentelemetry.resource-attributes[] configuration property.
83+
The attributes of the `Resource` can be configured via the configprop:management.opentelemetry.resource-attributes[] configuration property if you have not defined and exposed your own Resource bean.
8484

8585
NOTE: Spring Boot does not provide auto-configuration for OpenTelemetry metrics or logging.
8686
OpenTelemetry tracing is only auto-configured when used together with <<actuator#actuator.micrometer-tracing, Micrometer Tracing>>.

0 commit comments

Comments
 (0)