Class: Sentry::Rails::CaptureExceptions

Inherits:
Sentry::Rack::CaptureExceptions
  • Object
show all
Includes:
ErrorReporterContext
Defined in:
lib/sentry/rails/capture_exceptions.rb

Constant Summary collapse

RAILS_7_1 =
Gem::Version.new(::Rails.version) >= Gem::Version.new("7.1.0.alpha")
SPAN_ORIGIN =
"auto.http.rails"

Constants included from ErrorReporterContext

ErrorReporterContext::SUPPORTS_EXECUTION_CONTEXT

Instance Method Summary collapse

Methods included from ErrorReporterContext

#execution_context

Constructor Details

#initialize(_) ⇒ CaptureExceptions

Returns a new instance of CaptureExceptions.



13
14
15
16
17
18
19
# File 'lib/sentry/rails/capture_exceptions.rb', line 13

def initialize(_)
  super

  if Sentry.initialized?
    @assets_regexp = Sentry.configuration.rails.assets_regexp
  end
end