Method: NewRelic::Agent::AttributeFilter#cache_prefix_denylist
- Defined in:
- lib/new_relic/agent/attribute_filter.rb
#cache_prefix_denylist ⇒ Object
For attribute prefixes where we know the default destinations will always be DST_NONE, we can statically determine that any attribute starting with the prefix will not be allowed unless there’s an include rule that might match attributes starting with it.
This allows us to skip significant preprocessing work (hash/array flattening and type coercion) for HTTP request parameters and job arguments for Sidekiq and Resque in the common case, since none of these attributes are captured by default.
242 243 244 245 246 247 |
# File 'lib/new_relic/agent/attribute_filter.rb', line 242 def cache_prefix_denylist @prefix_denylist = {} @prefix_denylist[:'request.parameters'] = true unless might_allow_prefix_uncached?(:'request.parameters') @prefix_denylist[:'job.sidekiq.args'] = true unless might_allow_prefix_uncached?(:'job.sidekiq.args') @prefix_denylist[:'job.resque.args'] = true unless might_allow_prefix_uncached?(:'job.resque.args') end |