Class NewRelic::Agent::Database::Obfuscator
In: lib/new_relic/agent/database/obfuscator.rb
Parent: Object

Methods

Included Modules

Singleton ObfuscationHelpers

Constants

QUERY_TOO_LARGE_MESSAGE = "Query too large (over 16k characters) to safely obfuscate".freeze
ELLIPSIS = "...".freeze

Attributes

obfuscator  [R] 

Public Class methods

Public Instance methods

Sets the sql obfuscator used to clean up sql when sending it to the server. Possible types are:

:before => sets the block to run before the existing obfuscators

:after => sets the block to run after the existing obfuscator(s)

:replace => removes the current obfuscator and replaces it with the provided block

[Validate]