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 Details

  • Constructor Details

    • ObservationHttpExclusionsConfiguration

      public ObservationHttpExclusionsConfiguration()
  • Method Details

    • getExclusions

      @Nullable public @Nullable List<String> getExclusions()
      Returns:
      the URI patterns to exclude from the observation
    • setExclusions

      public void setExclusions(@Nullable @Nullable List<String> exclusions)
      Sets the URI patterns to be excluded from observation.
      Parameters:
      exclusions - regex patterns to be excluded if the request URI matches
      See Also:
    • exclusionTest

      @Nullable public @Nullable Predicate<String> 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.