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

Support Shoryuken in batch mode #655

Merged
merged 1 commit into from
Dec 17, 2018
Merged

Conversation

steveh
Copy link
Contributor

@steveh steveh commented Dec 16, 2018

Shoryuken can be run in a batch mode, in which case sqs_msg and body will be arrays.

Shoryuken monkey patches in a message_id method, but attributes won't exist on an array.

Shoryuken can be run in a batch mode, in which case `sqs_msg` and `body` will be arrays.

Shoryuken [monkey patches](https://github.com/phstc/shoryuken/blob/bc7938942270a1171d1597064698d88c3f36a4ec/lib/shoryuken/manager.rb#L93) in a `message_id` method, but `attributes` won't exist on an array.
@delner
Copy link
Contributor

delner commented Dec 17, 2018

Ahh okay, so under the current implementation this would be considered a bug? If so, this seems like a pretty sensible change. Just wish there was a way of replicating batch mode in our tests, so we could ensure it doesn't break.

@delner delner assigned delner and unassigned delner Dec 17, 2018
@delner delner self-requested a review December 17, 2018 04:06
@delner delner added integrations Involves tracing integrations community Was opened by a community member labels Dec 17, 2018
@delner delner added this to the 0.18.0 milestone Dec 17, 2018
Copy link
Contributor

@delner delner left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution @steveh!

@delner delner merged commit 15a9e7a into DataDog:0.18-dev Dec 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Was opened by a community member integrations Involves tracing integrations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants