Sha256: e1e10cea08d8da9e1e586a41248a87323bd2efa0e84ef0f6bc7b29681939b939
Contents?: true
Size: 565 Bytes
Versions: 21
Compression:
Stored size: 565 Bytes
Contents
# frozen_string_literal: true module Mihari module Web module Middleware # # Customized Sentry::Rack::CaptureExceptions # class CaptureExceptions < Sentry::Rack::CaptureExceptions include Concerns::ErrorUnwrappable 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
21 entries across 21 versions & 1 rubygems