matches method

bool matches(
  1. TraceSpan span
)

Evaluates whether the given span satisfies this query token.

Implementation

bool matches(TraceSpan span) {
  final match = (field == 'dur' || field == 'duration')
      ? _matchesDuration(span)
      : _collectSearchTargets(span).any(_matchesTarget);
  return isExclusion ? !match : match;
}