getsentry / sentry-ruby

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

NoMethodError in session_flusher.rb #2468

Open avdi opened 5 days ago

avdi commented 5 days ago

Issue Description

This exception from sentry-ruby popped up on Sentry:

Image

Reproduction Steps

We've only seen it happen once, so not sure how to reproduce.

Expected Behavior

Not an exception

Actual Behavior

An exception

Ruby Version

3.2.4

SDK Version

5.21.0

Integration and Its Version

Rails

Sentry Config

No response

sl0thentr0py commented 4 days ago

I'm at a loss how this could happen, this is the relevant code

https://github.com/getsentry/sentry-ruby/blob/ceba0da67755c6168729027b84cb2eaac9179902/sentry-ruby/lib/sentry/session_flusher.rb#L31-L33

EDIT: nvm, I think we need a lock, will add.