Sha256: 452a24aa3e88574393854e58429fbe55e3ce01dd6279c8fa4da6934f3e25329c
Contents?: true
Size: 582 Bytes
Versions: 4
Compression:
Stored size: 582 Bytes
Contents
# frozen_string_literal: true module Mihari module Web module Middleware # # Customized Sentry::Rack::CaptureExceptions # class CaptureExceptions < Sentry::Rack::CaptureExceptions include Concerns::ErrorUnwrappable private def capture_exception(exception, env) unwrapped = unwrap_error(exception) Mihari.logger.error unwrapped Sentry.capture_exception(unwrapped).tap do |event| env[ERROR_EVENT_ID_KEY] = event.event_id if event end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems