Class NewRelic::Agent::AttributeFilter
In: lib/new_relic/agent/attribute_filter.rb
Parent: Object

Methods

Constants

DST_NONE = 0x0
DST_TRANSACTION_EVENTS = 1 << 0
DST_TRANSACTION_TRACER = 1 << 1
DST_ERROR_COLLECTOR = 1 << 2
DST_BROWSER_MONITORING = 1 << 3
DST_DEVELOPER_MODE = 1 << 4
DST_ALL = 0xF

Attributes

rules  [R] 

Public Class methods

Public Instance methods

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.

Note that the given prefix must be a Symbol

[Validate]