Sha256: ba47e3b7e643cfe857e09192d6bade9e3faa7e197d3e985756a343521773bf12
Contents?: true
Size: 624 Bytes
Versions: 6
Compression:
Stored size: 624 Bytes
Contents
# rubocop:disable Style/FileName # We need to do this because of the way integration loading works require "rack/timeout/base" # This integration is a good example of how to change how exceptions # get grouped by Sentry's UI. Simply override #raven_context in # the exception class, and append something to the fingerprint # that will distinguish exceptions in the way you desire. module RackTimeoutExtensions def raven_context { :fingerprint => ["{{ default }}", env["REQUEST_URI"]] } end end Rack::Timeout::Error.include RackTimeoutExtensions Rack::Timeout::RequestTimeoutException.include RackTimeoutExtensions
Version data entries
6 entries across 6 versions & 1 rubygems