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