Class SpanIgnoringSpanFilter
- java.lang.Object
-
- org.springframework.cloud.sleuth.exporter.SpanIgnoringSpanFilter
-
- All Implemented Interfaces:
SpanFilter
public class SpanIgnoringSpanFilter extends Object implements SpanFilter
SpanFilterthat ignores spans via names.- Since:
- 3.0.0
- Author:
- Marcin Grzejszczak
-
-
Constructor Summary
Constructors Constructor Description SpanIgnoringSpanFilter(List<String> spanNamePatternsToSkip, List<String> additionalSpanNamePatternsToIgnore)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisExportable(FinishedSpan span)Called to export sampledSpans.
-
-
-
Method Detail
-
isExportable
public boolean isExportable(FinishedSpan span)
Description copied from interface:SpanFilterCalled to export sampledSpans.- Specified by:
isExportablein interfaceSpanFilter- Parameters:
span- the collection of sampled Spans to be exported.- Returns:
- whether should export spans
-
-