Expected Behavior
temporal_ metrics emitted properly.
Actual Behavior
Metrics get emitted to a no-op scope, and not to the underlying Micrometer MeterRegistry.
This occurs because metrics scope bean fails to configure properly before being supplied to other temporal configuration. It waits to run after CompositeMeterRegistryAutoConfiguration (
|
"org.springframework.boot.actuate.autoconfigure.metrics.CompositeMeterRegistryAutoConfiguration") |
), however the package for this class changed to
org.springframework.boot.micrometer.metrics.autoconfigure.CompositeMeterRegistryAutoConfiguration in Spring Boot 4.
Steps to Reproduce the Problem
- Update application to Spring Boot 4
- Check if metrics are emitted to Micrometer properly
Specifications
- Version: 1.32.1
- Platform: Mac/Linux
Expected Behavior
temporal_metrics emitted properly.Actual Behavior
Metrics get emitted to a no-op scope, and not to the underlying Micrometer MeterRegistry.
This occurs because metrics scope bean fails to configure properly before being supplied to other temporal configuration. It waits to run after
CompositeMeterRegistryAutoConfiguration(sdk-java/temporal-spring-boot-autoconfigure/src/main/java/io/temporal/spring/boot/autoconfigure/MetricsScopeAutoConfiguration.java
Line 18 in 2322bd0
org.springframework.boot.micrometer.metrics.autoconfigure.CompositeMeterRegistryAutoConfigurationin Spring Boot 4.Steps to Reproduce the Problem
Specifications