Skip to content

fix: updated amqp instrumentation, adapted attributes and unittests #738

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: main
Choose a base branch
from

Conversation

CagriYonca
Copy link
Contributor

  • Updated aioamqp instrumentation, changed spantype from sdk to amqp.
  • Adapted attributes according to the backend code.

@CagriYonca CagriYonca self-assigned this May 21, 2025
@CagriYonca CagriYonca requested a review from a team as a code owner May 21, 2025 09:46
@CagriYonca CagriYonca force-pushed the fix/aioamqp branch 2 times, most recently from 6eaddf5 to 0c61b0f Compare May 21, 2025 10:28
Copy link
Member

@pvital pvital left a comment

Choose a reason for hiding this comment

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

Few comments.

@@ -26,11 +26,31 @@ async def basic_publish_with_instana(
"aioamqp-publisher", span_context=parent_context
) as span:
try:
span.set_attribute("aioamqp.exchange", argv[0])
return await wrapped(*argv, **kwargs)
span.set_attribute("amqp.message", argv[0])
Copy link
Contributor

Choose a reason for hiding this comment

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

I couldn't find an entry for amqp.message attribute in the backend/ui-client code. Could you please confirm if we need this here?
If yes, can you decode() the message from bytes to str and then store?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants