getsentry / sentry-ruby

Sentry SDK for Ruby
https://sentry.io/for/ruby
MIT License
927 stars 493 forks source link

Upgrade from 5.16.1 to 5.17.0 breaks the Rails app in development #2270

Closed alextakitani closed 5 months ago

alextakitani commented 5 months ago

Issue Description

After upgrading the app and starting the development server, I'm redirected to the 500 error page.

Reproduction Steps

update the Gemfile, bundle, run rails s

Expected Behavior

Work normally

Actual Behavior

All urls redirect to the 500 error page.

Ruby Version

2.7.6

SDK Version

5.17.0

Integration and Its Version

Rails 7.0.6

Sentry Config

require 'sentry-ruby'

Sentry.init do |config| config.dsn = 'REDACTED' config.breadcrumbs_logger = %i[sentry_logger http_logger]

To activate performance monitoring, set one of these options.

We recommend adjusting the value in production:

config.traces_sample_rate = 1.0

or

config.traces_sampler = lambda do |_context| 0.5 end config.enabled_environments = %w[production] end

kapso commented 5 months ago

same for us, lvh.me:3000 does not work

shrmnk commented 5 months ago

Experiencing the same issue described here.

config.enabled_environments does not have development in it either

tobischo commented 5 months ago

Please see #2269

It looks like a fix was already added, but is waiting for a new release

sl0thentr0py commented 5 months ago

ok i will release, sorry for this

sl0thentr0py commented 5 months ago

released 5.17.1