Skip to content

Multiple actuator endpoint beans resolve #26229

@cdalexndr

Description

@cdalexndr

While trying to provide my own implementation of threaddump endpoint the application fails to start:
Found two endpoints with the id 'threaddump':...

I cannot extend existing ThreadDumpEndpoint because I want to change the @ReadOperation method public ThreadDumpDescriptor threadDump() that is used to produce json with my own String threadDump() method that produces text.
Because of this, the ThreadDumpEndpointAutoConfiguration @ConditionalOnMissingBean doesn't match my bean of different class, resulting in two endpoint beans.

It would be nice to allow overriding of actuator endpoint beans. For example using @Primary.
This way I can use standard endpoint instead of my custom endpoint.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: declinedA suggestion or change that we don't feel we should currently apply

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions