-
Notifications
You must be signed in to change notification settings - Fork 41.6k
Closed
Labels
status: declinedA suggestion or change that we don't feel we should currently applyA suggestion or change that we don't feel we should currently apply
Description
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
Labels
status: declinedA suggestion or change that we don't feel we should currently applyA suggestion or change that we don't feel we should currently apply