Merge pull request #39509 from wanger26

* pr/39509:
  Polish "Clarify that auto-configured OpenTelemetry Resource behaviour"
  Clarify that auto-configured OpenTelemetry Resource behaviour

Closes gh-39509
This commit is contained in:
Moritz Halbritter 2024-02-12 08:20:54 +01:00
commit d8e7281b96
1 changed files with 2 additions and 1 deletions

View File

@ -80,7 +80,8 @@ Spring Boot's actuator module includes basic support for https://opentelemetry.i
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.
Additionally, it provides a `Resource` bean.
The attributes of the `Resource` can be configured via the configprop:management.opentelemetry.resource-attributes[] configuration property.
The attributes of the auto-configured `Resource` can be configured via the configprop:management.opentelemetry.resource-attributes[] configuration property.
If you have defined your own `Resource` bean, this will no longer be the case.
NOTE: Spring Boot does not provide auto-configuration for OpenTelemetry metrics or logging.
OpenTelemetry tracing is only auto-configured when used together with <<actuator#actuator.micrometer-tracing, Micrometer Tracing>>.