-
-
Notifications
You must be signed in to change notification settings - Fork 300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replaces thread storage with request_store #218
Conversation
Fixes issue roidrage#197. Under load it was possible for a thread to handle a second request without clearing the variables in the thread. This caused log lines to have the incorrect values for `: lograge_location`. @abrisse suggested we used `request_store`, after a brief examination of this gem it seems that it’s well maintained and it solves our problem.
LGTM |
Looks good, I am just wondering about the sidekiq issue mentioned here: I have no numbers though how many people use lograge with sidkiq. |
@pxlpnk I'm not sure that's a problem here. As far as I can tell Active Job and Sidekiq workers don't use our subscriber. |
Then this approach is definitely more sane and safe 👍 |
Thanks! I'll cut a release today. |
I can't see a specific reason, why we would pin it to 1.0. Lets update it to the latest: #219 |
It's not pinned and will resolve to |
Sorry for the late response, I left it at |
Fixes issue #197. Under load it was possible for a thread to handle a second request without clearing the variables in the thread. This caused log lines to have the incorrect values for
: lograge_location
.@abrisse suggested we used
request_store
, after a brief examination of this gem it seems that it’s well maintained and it solves our problem.