Class: Sentry::Rails::CaptureExceptions

Inherits:
Sentry::Rack::CaptureExceptions
  • Object
show all
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"

Instance Method Summary collapse

Constructor Details

#initialize(_) ⇒ CaptureExceptions

Returns a new instance of CaptureExceptions.



9
10
11
12
13
14
15
# File 'lib/sentry/rails/capture_exceptions.rb', line 9

def initialize(_)
  super

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