Sha256: 247fecbcec6f40951c4e7203996da2bff7d22c4174c79222a699dbaf34334529
Contents?: true
Size: 591 Bytes
Versions: 5
Compression:
Stored size: 591 Bytes
Contents
# 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
5 entries across 5 versions & 1 rubygems