Open
Description
It seems there is a good amount of users who are registering an ObservationPredicate
in order to disable Observations for /actuator/**
endpoints, something like this:
@Bean
ObservationPredicate actuatorServerContextPredicate() {
return (name, context) -> {
if (name.equals("http.server.requests") && context instanceof ServerRequestObservationContext serverContext) {
return !serverContext.getCarrier().getRequestURI().startsWith("<actuator-base-path>");
}
return true;
};
}
I think this common use-case could be simplified by creating a similar bean (for mvc and webflux) and let the users to configure this using a single property.