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

Use requests for python sample app #280

Merged
merged 2 commits into from
Sep 7, 2022
Merged

Use requests for python sample app #280

merged 2 commits into from
Sep 7, 2022

Conversation

rapphil
Copy link
Contributor

@rapphil rapphil commented Sep 7, 2022

Aiohttp is causing a regression in the soak tests downstream, causing high CPU usage.

The regression is caused by a bug inserted in this commit: open-telemetry/opentelemetry-python-contrib@e267ebc

The bug was fixed in this commit and will only be available in the next release: open-telemetry/opentelemetry-python-contrib@934af7e

In order to unblock the soak tests, I'm suggesting that we move to use requests instead of aiohttp.


s3 = boto3.resource("s3")

# lambda function
def lambda_handler(event, context):

loop = asyncio.get_event_loop()
loop.run_until_complete(callAioHttp())
requests.get("https://www.amazon.com/")
Copy link
Member

Choose a reason for hiding this comment

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

This should probably remain httpbin.org.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done


s3 = boto3.resource("s3")

# lambda function
def lambda_handler(event, context):

loop = asyncio.get_event_loop()
loop.run_until_complete(callAioHttp())
requests.get("http://httpbin.org/")

Choose a reason for hiding this comment

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

https?

Copy link
Contributor

@wangzlei wangzlei left a comment

Choose a reason for hiding this comment

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

LGTM

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