Class SpanIgnoringSpanFilter

java.lang.Object
org.springframework.cloud.sleuth.exporter.SpanIgnoringSpanFilter
All Implemented Interfaces:
SpanFilter

public class SpanIgnoringSpanFilter extends Object implements SpanFilter
SpanFilter that ignores spans via names.
Since:
3.0.0
Author:
Marcin Grzejszczak
  • Constructor Details

    • SpanIgnoringSpanFilter

      public SpanIgnoringSpanFilter(List<String> spanNamePatternsToSkip, List<String> additionalSpanNamePatternsToIgnore)
  • Method Details

    • isExportable

      public boolean isExportable(FinishedSpan span)
      Description copied from interface: SpanFilter
      Called to export sampled Spans.
      Specified by:
      isExportable in interface SpanFilter
      Parameters:
      span - the collection of sampled Spans to be exported.
      Returns:
      whether should export spans