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
ConstructorsConstructorDescriptionSpanIgnoringSpanExportingPredicate(List<String> spanNamePatternsToSkip, List<String> additionalSpanNamePatternsToIgnore) Creates a new instance ofSpanIgnoringSpanExportingPredicate. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisExportable(FinishedSpan span) Called to export sampledSpans.
-
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:SpanExportingPredicateCalled to export sampledSpans.- Specified by:
isExportablein interfaceSpanExportingPredicate- Parameters:
span- the collection of sampled Spans to be exported.- Returns:
- whether should export spans
-