Class AbstractObservationFilter

java.lang.Object
io.micronaut.micrometer.observation.http.AbstractObservationFilter
Direct Known Subclasses:
ObservationClientFilter, ObservationServerFilter

@Internal public abstract class AbstractObservationFilter extends Object
Abstract filter used for Micrometer Observation.
  • Field Details

  • Constructor Details

    • AbstractObservationFilter

      protected AbstractObservationFilter(@Nullable @Nullable Predicate<String> pathExclusionTest)
      Configure observation in the filter for span creation and propagation across arbitrary transports.
      Parameters:
      pathExclusionTest - for excluding URI paths from observation
  • Method Details

    • shouldExclude

      protected boolean shouldExclude(@Nullable @Nullable String path)
      Tests if the defined path should be excluded from observation.
      Parameters:
      path - the path
      Returns:
      true if the path should be excluded