-
Notifications
You must be signed in to change notification settings - Fork 722
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
base: main
Are you sure you want to change the base?
refactor: botocore spans #3561
Conversation
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 ( |
There was a problem hiding this comment.
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
?
span.attributes[SpanAttributes.MESSAGING_DESTINATION], | ||
span.attributes[MESSAGING_DESTINATION_NAME], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these are different
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -113,17 +111,13 @@ def _test_publish_to_arn(self, arg_name: str): | |||
) | |||
|
|||
span = self.assert_span(f"{self.topic_name} send") | |||
self.assertEqual( |
There was a problem hiding this comment.
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
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.
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
Does This PR Require a Core Repo Change?
Checklist:
See contributing.md for styleguide, changelog guidelines, and more.