Skip to content
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

Clean scope before every Sidekiq job execution #421

Merged
merged 1 commit into from
Apr 8, 2016

Conversation

jondeandres
Copy link
Contributor

For Sidekiq > 3.x we are using the error handlers for the error reporting while we use a middleware for Sidekiq < 3.x.

So, in order to clean the scope in both solutions, we add a middleware to do it for Sidekiq > 3.x and complete the existing middleware for Sidekiq < 3.x.

@jondeandres jondeandres force-pushed the clean-sidekiq-scope branch from 6345e1c to 3400d2e Compare April 8, 2016 18:07
@jondeandres jondeandres force-pushed the clean-sidekiq-scope branch from 3400d2e to d35d2d1 Compare April 8, 2016 19:04
@jondeandres jondeandres merged commit 1a19c1b into master Apr 8, 2016
@jondeandres jondeandres deleted the clean-sidekiq-scope branch April 8, 2016 20:18
config.server_middleware do |chain|
chain.add Rollbar::Sidekiq
end
else
config.error_handlers << Proc.new do |e, context|
chain.add Rollbar::Sidekiq::ClearScope
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

chain is undefined here, see #422.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @phlipper, I'll release a new version in few minutes. Sorry for this.

@fschwahn fschwahn mentioned this pull request May 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants