Sha256: 12b379933c25f5d2e5e3395fc509a7978bd6433f2e485aa0fdb75864caf0e9ab

Contents?: true

Size: 714 Bytes

Versions: 1

Compression:

Stored size: 714 Bytes

Contents

require "sentry-ruby"
require "sentry-rails"
require "govuk_app_config/govuk_statsd"
require "govuk_app_config/govuk_error/configuration"
require "govuk_app_config/version"

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))

    args[:tags] ||= {}
    args[:tags][:govuk_app_config_version] = GovukAppConfig::VERSION

    Sentry.capture_exception(exception_or_message, args)
  end

  def self.configure
    @configuration ||= Configuration.new(Sentry::Configuration.new)
    yield @configuration
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
govuk_app_config-4.0.0.pre.3 lib/govuk_app_config/govuk_error.rb