Package io.micrometer.tracing.exporter
Class SpanIgnoringSpanExportingPredicate
java.lang.Object
io.micrometer.tracing.exporter.SpanIgnoringSpanExportingPredicate
- All Implemented Interfaces:
SpanExportingPredicate
SpanExportingPredicate
that ignores spans via names.- Since:
- 1.0.0
-
Constructor Summary
ConstructorDescriptionSpanIgnoringSpanExportingPredicate
(List<String> spanNamePatternsToSkip, List<String> additionalSpanNamePatternsToIgnore) Creates a new instance ofSpanIgnoringSpanExportingPredicate
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
isExportable
(FinishedSpan span) Called to export sampledSpan
s.
-
Constructor Details
-
SpanIgnoringSpanExportingPredicate
public SpanIgnoringSpanExportingPredicate(List<String> spanNamePatternsToSkip, List<String> additionalSpanNamePatternsToIgnore) Creates a new instance ofSpanIgnoringSpanExportingPredicate
.- Parameters:
spanNamePatternsToSkip
- - name patterns to skipadditionalSpanNamePatternsToIgnore
- - additional span names to ignore
-
-
Method Details
-
isExportable
Description copied from interface:SpanExportingPredicate
Called to export sampledSpan
s.- Specified by:
isExportable
in interfaceSpanExportingPredicate
- Parameters:
span
- the collection of sampled Spans to be exported.- Returns:
- whether should export spans
-