class ElasticAPM::SqlSummarizer
@api private
def self.cache
def self.cache @cache ||= Util::LruCache.new end
def summarize(sql)
def summarize(sql) self.class.cache[sql] ||= REGEXES.find do |regex, sig| if (match = sql.match(regex)) break format(FORMAT, sig, match[1] && match[1].gsub(/["']/, '')) end end || DEFAULT end