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

feat: ruby-kafka instrumentation #476

Merged

Conversation

robertlaurin
Copy link
Contributor

@robertlaurin robertlaurin commented Nov 18, 2020

Todo:

  • Getting kafka working in ci
  • Add readme
  • Add examples
  • Configure appraisals and minimum version supported
  • Test with consumer

@robertlaurin robertlaurin self-assigned this Nov 18, 2020
@robertlaurin robertlaurin force-pushed the ruby-kafka-instrumentation branch 7 times, most recently from 092fb97 to 09c98d0 Compare November 19, 2020 18:28
@robertlaurin robertlaurin force-pushed the ruby-kafka-instrumentation branch 15 times, most recently from 27b8614 to 32337c8 Compare November 20, 2020 21:30
Copy link
Contributor Author

@robertlaurin robertlaurin left a comment

Choose a reason for hiding this comment

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

Moving this out of draft to get some reviews in, I don't feel that this is 100% yet but I think having a review will speed things up a bit.

Review ready.

@robertlaurin robertlaurin marked this pull request as ready for review November 20, 2020 21:43
@robertlaurin
Copy link
Contributor Author

Updated to use links in this commit 8a1ef1b

@counter = 0
consumer.each_message do |_msg|
@counter += 1
raise 'oops' if @counter >= 2
Copy link
Contributor

Choose a reason for hiding this comment

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

Oh, I guess it is just to terminate the each_message loop. Does it need to be a member variable? Wouldn't a local be sufficient?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

A local is sufficient, I think there was a reason why it was this way before but it's no longer valid. Updated!

robertlaurin and others added 2 commits December 24, 2020 11:31
Co-authored-by: Francis Bogsanyi <francis.bogsanyi@shopify.com>
robertlaurin and others added 2 commits December 24, 2020 13:03
Co-authored-by: Francis Bogsanyi <francis.bogsanyi@shopify.com>
Co-authored-by: Francis Bogsanyi <francis.bogsanyi@shopify.com>
robertlaurin and others added 2 commits December 24, 2020 13:26
…ruby-kafka/patches/consumer_test.rb

Co-authored-by: Francis Bogsanyi <francis.bogsanyi@shopify.com>
Copy link
Contributor

@fbogsany fbogsany left a comment

Choose a reason for hiding this comment

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

LGTM, other than appeasing Rubocop.

Thanks @robertlaurin! I know it was challenging to get this over the finish line.

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.

None yet

6 participants