Skip to content
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

Fix http attributes of AWS SDK V2 instrumentation #8931

Merged

Conversation

rapphil
Copy link
Contributor

@rapphil rapphil commented Jul 12, 2023

Populate http attributes of the span generated by the AWS SDK v2 instrumentation during beforeTransmission in the TracingExecutionInterceptor so that a request is instrumented after it is fully transformed by other interceptors.

p.s.: That is why we get access to the USER_AGENT_ORIGINAL semantic attribute in all the test cases now.

This pr also changes how the s3 client is being tested due to differences introduced by the aws sdk v2.18.0 with regards to forcing the usage of virtual-hosted-style access in s3.. Tests no longer relies on the testLatestDeps property and instead assert for both possibilities since both are correct (with and without virtual-hosted-style).

Populate http span attributes during beforeTransmission in the
AWS SDK v2 instrumentation so that a request is instrumented
after it is fully transformed by other interceptors.

Signed-off-by: Raphael Silva <rapphil@gmail.com>
@rapphil rapphil requested a review from a team July 12, 2023 06:18
rapphil and others added 5 commits July 12, 2023 08:44
…pentelemetry/instrumentation/awssdk/v2_2/AbstractQueryProtocolModelTest.java

Co-authored-by: Jean Bisutti <jean.bisutti@gmail.com>
…eryProtocolModelTest.java

Co-authored-by: Jean Bisutti <jean.bisutti@gmail.com>
Signed-off-by: Raphael Silva <rapphil@gmail.com>
Signed-off-by: Raphael Silva <rapphil@gmail.com>
Signed-off-by: Raphael Silva <rapphil@gmail.com>
@trask trask added this to the v1.28.0 milestone Jul 12, 2023
@trask trask merged commit 57cfddc into open-telemetry:main Jul 12, 2023
44 checks passed
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.

4 participants