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 SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidsetExclusions(@Nullable List<String> exclusions) Sets the URI patterns to be excluded from observation.
- 
Field Details- 
PREFIX- See Also:
 
 
- 
- 
Constructor Details- 
ObservationHttpExclusionsConfigurationpublic ObservationHttpExclusionsConfiguration()
 
- 
- 
Method Details- 
getExclusions- Returns:
- the URI patterns to exclude from the observation
 
- 
setExclusionsSets 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.
 
 
-