Auto-configure OtlpMetricsSender if available

Update `OtlpMetricsExportAutoConfiguration` to use the new
`OtlpMetricsSender`interface that allows users to customize the
sending of OTLP metrics using the `OtlpMeterRegistry`.

See gh-45204
This commit is contained in:
Tommy Ludwig
2025-04-15 18:28:46 +09:00
committed by Phillip Webb
parent 752842a4ee
commit 776d233c1c
3 changed files with 57 additions and 4 deletions

View File

@@ -522,6 +522,8 @@ management:
Custom headers, for example for authentication, can also be provided using configprop:management.otlp.metrics.export.headers.*[] properties.
If an `OtlpMetricsSender` bean is available, it will be configured on the `OtlpMeterRegistry` that Spring Boot auto-configures.
[[actuator.metrics.export.prometheus]]