Sha256: a470ddc00de8b3f2be9be73142a6c015a5b71b70486f2a7c36deb3ff0e63b170
Contents?: true
Size: 555 Bytes
Versions: 7
Compression:
Stored size: 555 Bytes
Contents
module Sentry module Rails module ControllerMethods def capture_message(message, options = {}) with_request_scope do Sentry.capture_message(message, **options) end end def capture_exception(exception, options = {}) with_request_scope do Sentry.capture_exception(exception, **options) end end private def with_request_scope Sentry.with_scope do |scope| scope.set_rack_env(request.env) yield end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems