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 expected URL in aiohttp instrumentation test #1772

Merged
merged 3 commits into from
Apr 25, 2023

Conversation

ocelotl
Copy link
Contributor

@ocelotl ocelotl commented Apr 24, 2023

Fixes #1770

The underlying cause of the issue here is the update of the yarl package
from 1.8.2 to 1.9.1. yarl is used as a dependency in the
opentelemetry-instrumentation-aiohttp package but it is not there where
the issue happens, but in aiohttp who also has yarl as a dependency.

This is why the fix does not touch any relevant part of any
opentelemetry-* code, since it is the return value of aiohttp code who
now has a different value for the URL.

@ocelotl ocelotl self-assigned this Apr 24, 2023
@ocelotl ocelotl requested a review from a team April 24, 2023 22:33
@ocelotl ocelotl added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Apr 24, 2023
ocelotl added 3 commits April 24, 2023 16:40
This reverts commit 3ed4663.
The underlying cause of the issue here is the update of the yarl package
from 1.8.2 to 1.9.1. yarl is used as a dependency in the
opentelemetry-instrumentation-aiohttp package but it is not there where
the issue happens, but in aiohttp who also has yarl as a dependency.

This is why the fix does not touch any relevant part of any
opentelemetry-* code, since it is the return value of aiohttp code who
now has a different value for the URL.

Fixes open-telemetry#1770
@aabmass
Copy link
Member

aabmass commented Apr 25, 2023

Can you add a description of why the test broke and how this fixes it?

@ocelotl
Copy link
Contributor Author

ocelotl commented Apr 25, 2023

Can you add a description of why the test broke and how this fixes it?

There is already a description in the latest commit, adding it in the PR as well ✌️

@ocelotl ocelotl merged commit 5117098 into open-telemetry:main Apr 25, 2023
@ocelotl ocelotl deleted the issue_1770 branch April 25, 2023 17:44
musicinmybrain added a commit to musicinmybrain/opentelemetry-python-contrib that referenced this pull request May 23, 2023
The minimum version ensures the expected URL string in the tests is
consistent; see
open-telemetry#1772.

The yarl dependency is needed both for the package and for the tests.
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.

aiohttp instrumentation is failing
4 participants