Skip to content

refactor: botocore spans #3561

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

weslayer
Copy link
Contributor

@weslayer weslayer commented Jun 5, 2025

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Refs #3475

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • tox

Does This PR Require a Core Repo Change?

  • Yes. - Link to PR:
  • No.

Checklist:

See contributing.md for styleguide, changelog guidelines, and more.

  • Followed the style guidelines of this project

@weslayer
Copy link
Contributor Author

weslayer commented Jun 5, 2025

unsure what is going on what the tox tests and versioning. could someone help guide me?

@@ -23,7 +23,37 @@
_BotocoreInstrumentorContext,
_DynamoDbExtension,
)
from opentelemetry.semconv.trace import SpanAttributes
from opentelemetry.semconv._incubating.attributes.aws_attributes import (
Copy link
Contributor

Choose a reason for hiding this comment

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

Since these are a lot maybe just import aws_attributes and reference them as aws_attributes.AWS_DYNAMO_WHATEVER?

Comment on lines -122 to +116
span.attributes[SpanAttributes.MESSAGING_DESTINATION],
span.attributes[MESSAGING_DESTINATION_NAME],
Copy link
Contributor

Choose a reason for hiding this comment

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

these are different

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I cannot find the original SpanAttributes.MESSAGING_DESTINATION.
image

@@ -113,17 +111,13 @@ def _test_publish_to_arn(self, arg_name: str):
)

span = self.assert_span(f"{self.topic_name} send")
self.assertEqual(
Copy link
Contributor

Choose a reason for hiding this comment

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

You must not drop assertions

@xrmx xrmx added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Jun 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants