Skip to content

MeterRegistryPostProcessor not ran when MeterRegistry injected in cache configuration beans #29053

Closed
@Nik95

Description

@Nik95

I wanted to add some metrics provided by Lettuce for monitoring purpose of connections to Redis.
But when injecting MeterRegistry in our Configuration class, MeterRegistryProcessor is no longer called, hence MeterRegistry is not configured.

Similar issue has been reported here #18565, but only a fix for Spring Cloud Sleuth use case has been done.

I've built a minimal sample application to reproduce issue: https://github.com/Nik95/sample-spring-boot

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions