Skip to content

Track Amazon request queue time#279

Merged
adamchainz merged 12 commits intomasterfrom
track_amazon_request_queue_time
Oct 22, 2019
Merged

Track Amazon request queue time#279
adamchainz merged 12 commits intomasterfrom
track_amazon_request_queue_time

Conversation

@adamchainz
Copy link
Copy Markdown
Contributor

Fixes #210.

@adamchainz adamchainz merged commit 24d4f1d into master Oct 22, 2019
@adamchainz adamchainz deleted the track_amazon_request_queue_time branch October 22, 2019 17:43
adamchainz added a commit that referenced this pull request Oct 23, 2019
Both the Bottle and Pyramid integrations have this overly cautious behaviour around reading headers from the upstream framework. They both assume that basic framework operations such as fetching a header can fail, and guard around it.

Some of this came from my refactoring for Bottle in #192 and Pyramid in #195, where I narrowed large `try/except` blocks down, but didn't rethink this paranoia.

I think this is too cautious and can be removed. It required a lot of extra lines for the two frameworks when adding Amazon request queue timing in #279, to really no extra effect. If fetching headers (with safe defaults) is broken, users' applications are pretty much guaranteed to be broken too.
adamchainz added a commit that referenced this pull request Oct 23, 2019
Both the Bottle and Pyramid integrations have this overly cautious behaviour around reading headers from the upstream framework. They both assume that basic framework operations such as fetching a header can fail, and guard around it.

Some of this came from my refactoring for Bottle in #192 and Pyramid in #195, where I narrowed large `try/except` blocks down, but didn't rethink this paranoia.

I think this is too cautious and can be removed. It required a lot of extra lines for the two frameworks when adding Amazon request queue timing in #279, to really no extra effect. If fetching headers (with safe defaults) is broken, users' applications are pretty much guaranteed to be broken too.
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.

Track time-in-queue for AWS ALB via the X-Amzn-Trace-Id header

1 participant