Sha256: c7d875c4d56cecd2f29019f6a455f15de47bc7a99478c379c45672d0d3e7450e
Contents?: true
Size: 691 Bytes
Versions: 2
Compression:
Stored size: 691 Bytes
Contents
require "sentry-ruby" 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
govuk_app_config-4.0.0.pre.2 | lib/govuk_app_config/govuk_error.rb |
govuk_app_config-4.0.0.pre.1 | lib/govuk_app_config/govuk_error.rb |