Class OpenTelemetryExclusionsConfiguration

java.lang.Object
io.micronaut.tracing.opentelemetry.instrument.util.OpenTelemetryExclusionsConfiguration

@ConfigurationProperties("otel") public class OpenTelemetryExclusionsConfiguration extends Object
Since:
4.2.0
Author:
Nemanja Mikic
  • Field Details

  • Constructor Details

    • OpenTelemetryExclusionsConfiguration

      public OpenTelemetryExclusionsConfiguration()
  • Method Details

    • getExclusions

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

      public void setExclusions(@Nullable @Nullable List<String> exclusions)
      Sets the URI patterns to be excluded from tracing.
      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 tracing.