Sha256: c34f9117b245be74be08706f604358898571ddcecac7139318173db2cb321871

Contents?: true

Size: 496 Bytes

Versions: 1

Compression:

Stored size: 496 Bytes

Contents

# frozen_string_literal: true

module ElasticAPM
  # @api private
  module Sql
    # This method is only here as a shortcut while the agent ships with
    # both implementations ~mikker
    def self.summarizer
      @summarizer ||=
        if ElasticAPM.agent&.config&.use_legacy_sql_parser
          require 'elastic_apm/sql_summarizer'
          SqlSummarizer.new
        else
          require 'elastic_apm/sql/signature'
          Sql::Signature::Summarizer.new
        end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
elastic-apm-3.6.0 lib/elastic_apm/sql.rb