Class AbstractObservationFilter
java.lang.Object
io.micronaut.micrometer.observation.http.AbstractObservationFilter
- Direct Known Subclasses:
ObservationClientFilter
,ObservationServerFilter
Abstract filter used for Micrometer Observation.
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractObservationFilter
(@Nullable Predicate<String> pathExclusionTest) Configure observation in the filter for span creation and propagation across arbitrary transports. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
shouldExclude
(@Nullable String path) Tests if the defined path should be excluded from observation.
-
Field Details
-
CLIENT_PATH
- See Also:
-
SERVER_PATH
- See Also:
-
MICROMETER_OBSERVATION_ATTRIBUTE_KEY
- See Also:
-
-
Constructor Details
-
AbstractObservationFilter
Configure observation in the filter for span creation and propagation across arbitrary transports.- Parameters:
pathExclusionTest
- for excluding URI paths from observation
-
-
Method Details
-
shouldExclude
Tests if the defined path should be excluded from observation.- Parameters:
path
- the path- Returns:
true
if the path should be excluded
-