-
Notifications
You must be signed in to change notification settings - Fork 172
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
Conversation
|
||
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/") |
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.
This should probably remain httpbin.org
.
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.
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/") |
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.
https?
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.
LGTM
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.