Class 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 Detail

      • SpanIgnoringSpanFilter

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

      • 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