Class ObservationHttpExclusionsConfiguration
java.lang.Object
io.micronaut.micrometer.observation.http.ObservationHttpExclusionsConfiguration
@ConfigurationProperties("micrometer.observation.http")
public final class ObservationHttpExclusionsConfiguration
extends Object
Exclusions configuration for Micrometer Observation.
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidsetExclusions(@Nullable List<String> exclusions) Sets the URI patterns to be excluded from observation. 
- 
Field Details
- 
PREFIX
- See Also:
 
 
 - 
 - 
Constructor Details
- 
ObservationHttpExclusionsConfiguration
public ObservationHttpExclusionsConfiguration() 
 - 
 - 
Method Details
- 
getExclusions
- Returns:
 - the URI patterns to exclude from the observation
 
 - 
setExclusions
Sets the URI patterns to be excluded from observation.- Parameters:
 exclusions- regex patterns to be excluded if the request URI matches- See Also:
 
 - 
exclusionTest
- Returns:
 - null (implying everything should be included), or a Predicate which, when given a URL path, returns whether that path should be excluded from observation.
 
 
 -