Sha256: ce955c7b139a2ba2acf9d2de4b1a15c709130542f917fcc9367bcb1550afd34e

Contents?: true

Size: 399 Bytes

Versions: 36

Compression:

Stored size: 399 Bytes

Contents

class Appsignal::Event < ActiveSupport::Notifications::Event
  def sanitize!
    @payload = Appsignal::ParamsSanitizer.sanitize(@payload)
  end

  def truncate!
    @payload = {}
  end

  def self.event_for_instrumentation(*args)
    case args[0]
    when 'query.moped'
      Appsignal::Event::MopedEvent.new(*args)
    else
      new(*args)
    end
  end
end

require 'appsignal/event/moped_event'

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
appsignal-0.11.18 lib/appsignal/event.rb
appsignal-0.11.17 lib/appsignal/event.rb
appsignal-0.11.16 lib/appsignal/event.rb
appsignal-0.11.15 lib/appsignal/event.rb
appsignal-0.11.14 lib/appsignal/event.rb
appsignal-0.11.14.beta.1 lib/appsignal/event.rb
appsignal-0.11.13 lib/appsignal/event.rb
appsignal-0.11.13.beta.4 lib/appsignal/event.rb
appsignal-0.11.13.beta.3 lib/appsignal/event.rb
appsignal-0.11.13.beta.2 lib/appsignal/event.rb
appsignal-0.11.13.beta.1 lib/appsignal/event.rb
appsignal-0.11.13.beta.0 lib/appsignal/event.rb
appsignal-0.11.12 lib/appsignal/event.rb
appsignal-0.11.11 lib/appsignal/event.rb
appsignal-0.11.10 lib/appsignal/event.rb
appsignal-0.11.10.beta.2 lib/appsignal/event.rb
appsignal-0.11.10.beta.1 lib/appsignal/event.rb
appsignal-0.11.9 lib/appsignal/event.rb
appsignal-0.11.8.beta.4 lib/appsignal/event.rb
appsignal-0.11.8.beta.3 lib/appsignal/event.rb