Updates Client to create Bunny::Consumer with queue obj, not string #30
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This change should not result in any change in functionality.
The motivation behind introducing this change is two-fold:
queue.channel
inside its patch ofBunny::Consumer#call
. This results in a runtime error with the current versions of bunny_burrow and the OTel gem. See https://github.com/open-telemetry/opentelemetry-ruby-contrib/blob/main/instrumentation/bunny/lib/opentelemetry/instrumentation/bunny/patches/consumer.rb#L14Regarding point 2 above, I acknowledge that the "better" course of action would probably be to file a bug report with the OTel bunny instrumentation gem. In my opinion, the authors of the gem made an incorrect assumption about the underlying Bunny gem that contradicts the latter's own documentation.
That said, I don't believe there's any harm in making this change to bunny_burrow AND it is the quicker option. Since this issue is currently a blocker to being able to use the OTel bunny instrumentation gem with a project that uses bunny_burrow, I decided to propose this
fixchange.