Skip to content

Conversation

@louim
Copy link
Contributor

@louim louim commented Nov 21, 2017

This fixes https://github.com/getsentry/raven-ruby/issues/797

I went for the simplest implementation, let me know what you think.

@nateberkopec
Copy link
Contributor

This looks fine. However, you'll need to deal with the case where GlobalID is not defined (e.g. someone using Sidekiq without Rails).

@louim
Copy link
Contributor Author

louim commented Nov 22, 2017

I made some tweaks, let me know if there's a better way of doing this.


class SidekiqErrorHandler
ACTIVEJOB_RESERVED_PREFIX = "_aj_".freeze
HAS_GLOBALID = const_defined?('GlobalID')
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@nateberkopec nateberkopec merged commit 177d24d into getsentry:master Nov 22, 2017
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.

[Sidekiq] Display stringified version of globalid

2 participants