Class: Datadog::Sampling::Matcher

Inherits:
Object
  • Object
show all
Defined in:
lib/ddtrace/sampling/matcher.rb

Overview

Checks if a span conforms to a matching criteria.

Direct Known Subclasses

ProcMatcher, SimpleMatcher

Instance Method Summary collapse

Instance Method Details

#match?(span) ⇒ Boolean

This method is abstract.

Returns true if the span should conforms to this rule, false otherwise

Parameters:

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


11
12
13
# File 'lib/ddtrace/sampling/matcher.rb', line 11

def match?(span)
  raise NotImplementedError
end