You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This line in sentry-resque results in undefined method `rails' for #<Sentry::Configuration:* in rails applications that do not use sentry-rails.
To Reproduce
require 'bundler/inline'
gemfile do
source 'https://rubygems.org' do
gem 'rails'
gem 'sentry-resque'
# gem 'sentry-rails'
end
end
require "resque"
require "sentry-resque"
require "rails"
require "action_dispatch"
class TestApp < Rails::Application
Sentry.init do |config|
config.breadcrumbs_logger = [:sentry_logger]
config.dsn = 'https://aaaa@xxxx.ingest.sentry.io/123456'
end
end
TestApp.initialize!
Expected behavior
It should not result in NoMethodError.
Actual behavior
undefined method `rails' for #<Sentry::Configuration:0x00007f9397b2ae08> (NoMethodError)
The text was updated successfully, but these errors were encountered:
@st0012 We switched from resque-sentry to sentry-resque and ran into this NoMethodError. The existing logic within the rails app is acting as a substitute for sentry-rails at the moment and it'll change in the near future.
Describe the bug
sentry-ruby/sentry-resque/lib/sentry-resque.rb
Line 19 in a50bf1f
This line in
sentry-resque
results inundefined method `rails' for #<Sentry::Configuration:*
in rails applications that do not usesentry-rails
.To Reproduce
Expected behavior
It should not result in
NoMethodError
.Actual behavior
The text was updated successfully, but these errors were encountered: