applyRules
protected java.lang.Boolean applyRules(java.lang.String key)
Determines if the input key should be sent to the collector. This can return null.
The method returns a Boolean instead of a boolean because the attributes service has two tries. The first one
includes the configuration include and exclude nodes. The second one includes the default excludes. These can not
be merged together because the user configuration should always take precedent. The Boolean allows us to
determine if there were any matches in the first trie. For example, suppose we want to exclude
request.parameters.* be default, but the customer wants to include request.*. In the tree, request.parameters.*
would be after request.* meaning it would take precedent, when the request.* should really take precedent.
- Parameters:
key - An attribute key.
- Returns:
- True means the key should be included. False means the key should not be included. Null means the key did
not match any rules in the tree.