Method: NewRelic::Agent::SamplerCollection#sampler_class_registered?

Defined in:
lib/new_relic/agent/sampler_collection.rb

#sampler_class_registered?(sampler_class) ⇒ Boolean

Returns:

  • (Boolean)
[View source]

24
25
26
# File 'lib/new_relic/agent/sampler_collection.rb', line 24

def sampler_class_registered?(sampler_class)
  self.any? { |s| s.class == sampler_class }
end