Class OpenTelemetryExclusionsConfiguration
java.lang.Object
io.micronaut.tracing.opentelemetry.instrument.util.OpenTelemetryExclusionsConfiguration
- Since:
- 4.2.0
- Author:
- Nemanja Mikic
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setExclusions
(@Nullable List<String> exclusions) Sets the URI patterns to be excluded from tracing.
-
Field Details
-
PREFIX
- See Also:
-
-
Constructor Details
-
OpenTelemetryExclusionsConfiguration
public OpenTelemetryExclusionsConfiguration()
-
-
Method Details
-
getExclusions
- Returns:
- the URI patterns to exclude from the tracing
-
setExclusions
Sets the URI patterns to be excluded from tracing.- 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 tracing.
-