Method: NewRelic::Agent::AttributeFilter#initialize

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

#initialize(config) ⇒ AttributeFilter

Returns a new instance of AttributeFilter.

[View source]

78
79
80
81
82
83
84
85
86
87
88
# File 'lib/new_relic/agent/attribute_filter.rb', line 78

def initialize(config)
  prep_enabled_destinations(config)
  prep_rules(config)

  # We're ok to cache high security for fast lookup because the attribute
  # filter is re-generated on any significant config change.
  @high_security = config[:high_security]

  setup_key_cache
  cache_prefix_denylist
end