4.x MP metrics and health do not honor server.features.observe.observers
config, but instead observe.providers.*
#8009
Milestone
server.features.observe.observers
config, but instead observe.providers.*
#8009
Environment Details
Problem Description
In MP apps, metrics and health follow config at the top level (
metrics
andhealth
) but not config insideserver.features.observe.observers.metrics
or...health
as SE apps do.But they do respond to config at
observe.providers.xxx
.This seems to be because the constructors for
MetricsCdiExtension
andHealthCdiExtension
incorrectly pass hardcoded strings"observe.providers.metrics"
and"observe.providers.health"
to the superclass constructor as one of the config paths to consider.I assume the intended behavior is for the CDI extensions to use either the top-level config for
metrics
andhealth
or the config nested underserver...
but the paths do not have the correct prefix and useproviders
instead ofobservers
.Steps to reproduce
curl -v http://localhost:8080/health
. You get the expected output with status 200details
to true programmatically.server.features.observe.observers.health.details = false
server.features...
.The text was updated successfully, but these errors were encountered: