Add property to prevent observations starting with a prefix
For example, setting management.observations.enable.denied.prefix=false will prevent all observations starting with 'denied.prefix' Closes gh-34802
This commit is contained in:
@@ -26,7 +26,7 @@ class MyObservationPredicate implements ObservationPredicate {
|
||||
|
||||
@Override
|
||||
public boolean test(String name, Context context) {
|
||||
return !name.startsWith("denied.prefix.");
|
||||
return !name.contains("denied");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user