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

set the error context to the worker class name #440

Merged
merged 1 commit into from Apr 20, 2016
Merged

set the error context to the worker class name #440

merged 1 commit into from Apr 20, 2016

Conversation

heythisisnate
Copy link
Contributor

@jondeandres @brianr as I mentioned in #432, on second thought I think putting the worker class name in the context parameter will be much more useful for searching & filtering. The Sidekiq queue name still comes through in request.params.queue, but this is less important for searching.

@@ -20,7 +20,7 @@ def self.handle_exception(msg_or_context, e)
:request => { :params => params },
:framework => "Sidekiq: #{::Sidekiq::VERSION}"
}
scope[:context] = "sidekiq##{params['queue']}" if params.is_a?(Hash)
scope[:context] = params['class'] if params.is_a?(Hash)

Copy link
Contributor

Choose a reason for hiding this comment

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

Could you add the queue to scope:queue] here?

@heythisisnate
Copy link
Contributor Author

@jondeandres done!
Does the queue attribute do anything special? Is it searchable in the Rollbar UI?

@jondeandres
Copy link
Contributor

@heythisisnate not in the items page but in RQL section. but anyway I think it's interesting information to have.

Thanks 😄

@jondeandres jondeandres merged commit b57d9d1 into rollbar:master Apr 20, 2016
@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