Sha256: ab5d3039f66a3821801633c39307232a29e24ef69795a74775574cd7d958003d

Contents?: true

Size: 477 Bytes

Versions: 53

Compression:

Stored size: 477 Bytes

Contents

require "sentry-raven"
require "govuk_app_config/govuk_statsd"

module GovukError
  def self.notify(exception_or_message, args = {})
    # Allow users to use `parameters` as a key like the Airbrake
    # client, allowing easy upgrades.
    args[:extra] ||= {}
    args[:extra].merge!(parameters: args.delete(:parameters))

    Raven.capture_exception(exception_or_message, args)
  end

  def self.configure
    Raven.configure do |config|
      yield(config)
    end
  end
end

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
govuk_app_config-2.4.1 lib/govuk_app_config/govuk_error.rb
govuk_app_config-2.4.0 lib/govuk_app_config/govuk_error.rb
govuk_app_config-2.3.0 lib/govuk_app_config/govuk_error.rb
govuk_app_config-2.2.2 lib/govuk_app_config/govuk_error.rb
govuk_app_config-2.2.1 lib/govuk_app_config/govuk_error.rb
govuk_app_config-2.2.0 lib/govuk_app_config/govuk_error.rb
govuk_app_config-2.1.2 lib/govuk_app_config/govuk_error.rb
govuk_app_config-2.1.1 lib/govuk_app_config/govuk_error.rb
govuk_app_config-2.1.0 lib/govuk_app_config/govuk_error.rb
govuk_app_config-2.0.3 lib/govuk_app_config/govuk_error.rb
govuk_app_config-2.0.2 lib/govuk_app_config/govuk_error.rb
govuk_app_config-2.0.1 lib/govuk_app_config/govuk_error.rb
govuk_app_config-2.0.0 lib/govuk_app_config/govuk_error.rb
govuk_app_config-1.20.2 lib/govuk_app_config/govuk_error.rb
govuk_app_config-1.20.1 lib/govuk_app_config/govuk_error.rb
govuk_app_config-1.20.0 lib/govuk_app_config/govuk_error.rb
govuk_app_config-1.19.0 lib/govuk_app_config/govuk_error.rb
govuk_app_config-1.18.1 lib/govuk_app_config/govuk_error.rb
govuk_app_config-1.17.0 lib/govuk_app_config/govuk_error.rb
govuk_app_config-1.16.3 lib/govuk_app_config/govuk_error.rb