Skip to content

feat: add support for rabbitmq/amqp091-go tracing #5

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

slagiewka
Copy link

The original AMQP driver continues development under official umbrella of rabbitmq.

In this PR I'm suggesting support for this new driver package via another package delivered by go-amqp. Thanks to that projects upgrading to rabbitmq/amqp091-go can make the switch of tracing support deliberately.

Other option would be to just upgrade opentracing-contrib/go-amqp/amqp to depend on new driver instead. This however, would break compatibility for users that have not upgraded yet.

Code is copied and adjusted for new driver location, entirely separating both paths. We can discuss whether we need to refactor and the two packages inside this project should reuse each others code.

@slagiewka slagiewka marked this pull request as ready for review February 25, 2022 12:49
@slagiewka
Copy link
Author

@keithnoguchi @yurishkuro please have a look 😉

@lucacome lucacome requested a review from Copilot March 14, 2025 02:08
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for the new rabbitmq/amqp091-go driver for OpenTracing instrumentation by introducing a separate package, amqp091tracer, that mirrors the functionality provided for the previous driver.

  • Introduces a dedicated package (amqp091tracer) for tracing with the new driver.
  • Adds tests for header propagation, injection, and extraction to verify the new implementation.
  • Updates documentation and the README to reflect the support for rabbitmq/amqp091-go.

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
amqp091tracer/propagation_test.go Adds tests to validate header injection and extraction.
amqp091tracer/tracer_test.go Adds tests for the Inject and Extract functions in tracer.go.
amqp091tracer/tracer.go Implements Inject and Extract functions using the new driver.
amqp091tracer/propagation.go Defines carrier type and methods for propagating tracing headers.
amqp091tracer/doc.go Provides package documentation for amqp091tracer.
amqp091tracer/testtracer_test.go Implements a test tracer to support unit testing of tracing.
README.md Updates the README to include the new driver support.

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.

1 participant