Sha256: bdcbe7d5051441b82ea353e79ff354086d567677bed3dd6dd91548799e5caaaa

Contents?: true

Size: 369 Bytes

Versions: 70

Compression:

Stored size: 369 Bytes

Contents

# frozen_string_literal: true

module Appsignal
  class EventFormatter
    # @api private
    module Rom
      class SqlFormatter
        def format(payload)
          ["query.#{payload[:name]}", payload[:query], SQL_BODY_FORMAT]
        end
      end
    end
  end
end

Appsignal::EventFormatter.register(
  "sql.dry",
  Appsignal::EventFormatter::Rom::SqlFormatter
)

Version data entries

70 entries across 70 versions & 1 rubygems

Version Path
appsignal-4.1.1-java lib/appsignal/event_formatter/rom/sql_formatter.rb
appsignal-4.1.1 lib/appsignal/event_formatter/rom/sql_formatter.rb
appsignal-4.1.0-java lib/appsignal/event_formatter/rom/sql_formatter.rb
appsignal-4.1.0 lib/appsignal/event_formatter/rom/sql_formatter.rb
appsignal-4.0.9-java lib/appsignal/event_formatter/rom/sql_formatter.rb
appsignal-4.0.9 lib/appsignal/event_formatter/rom/sql_formatter.rb
appsignal-4.0.8-java lib/appsignal/event_formatter/rom/sql_formatter.rb
appsignal-4.0.8 lib/appsignal/event_formatter/rom/sql_formatter.rb
appsignal-4.0.7-java lib/appsignal/event_formatter/rom/sql_formatter.rb
appsignal-4.0.7 lib/appsignal/event_formatter/rom/sql_formatter.rb
appsignal-4.0.6-java lib/appsignal/event_formatter/rom/sql_formatter.rb
appsignal-4.0.6 lib/appsignal/event_formatter/rom/sql_formatter.rb
appsignal-4.0.5-java lib/appsignal/event_formatter/rom/sql_formatter.rb
appsignal-4.0.5 lib/appsignal/event_formatter/rom/sql_formatter.rb
appsignal-4.0.4-java lib/appsignal/event_formatter/rom/sql_formatter.rb
appsignal-4.0.4 lib/appsignal/event_formatter/rom/sql_formatter.rb
appsignal-4.0.3-java lib/appsignal/event_formatter/rom/sql_formatter.rb
appsignal-4.0.3 lib/appsignal/event_formatter/rom/sql_formatter.rb
appsignal-4.0.2-java lib/appsignal/event_formatter/rom/sql_formatter.rb
appsignal-4.0.2 lib/appsignal/event_formatter/rom/sql_formatter.rb