Skip to content

Add a property to disable Observations starting with a prefix #34802

Closed
@jonatan-ivanov

Description

@jonatan-ivanov

It seems there is a good amount of users who are registering an ObservationPredicate in order to disable Observations for Spring Security, something like this:

@Bean
ObservationPredicate noSpringSecurityObservations() {
    return (name, context) -> !name.startsWith("spring.security.");
}

I think this common use-case could be simplified by creating this bean and let the users to configure this using a single property.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions