Method: NewRelic::Agent::AttributeFilter#allows_key?
- Defined in:
- lib/new_relic/agent/attribute_filter.rb
permalink #allows_key?(key, destination) ⇒ Boolean
215 216 217 218 219 220 221 222 223 224 225 226 |
# File 'lib/new_relic/agent/attribute_filter.rb', line 215 def allows_key?(key, destination) return false unless destination & @enabled_destinations == destination value = @key_cache[destination][key] if value.nil? allowed_destinations = apply(key, destination) @key_cache[destination][key] = allows?(allowed_destinations, destination) else value end end |