Skip to content

Spring Metrics Configuration fails with Spring Boot 4 #2758

@jrogers

Description

@jrogers

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

  1. Update application to Spring Boot 4
  2. Check if metrics are emitted to Micrometer properly

Specifications

  • Version: 1.32.1
  • Platform: Mac/Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions