Class: Sentry::Rails::CaptureExceptions
- Inherits:
-
Sentry::Rack::CaptureExceptions
- Object
- Sentry::Rack::CaptureExceptions
- Sentry::Rails::CaptureExceptions
- 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
-
#initialize(_) ⇒ CaptureExceptions
constructor
A new instance of CaptureExceptions.
Methods included from ErrorReporterContext
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 |