-
Notifications
You must be signed in to change notification settings - Fork 143
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 the official middleware pattern for Aiohttp ext #29
Use the official middleware pattern for Aiohttp ext #29
Conversation
Previous implementation was using the former version of Aiohttp that got deprecated since 2.3.0.
I have one question. Based on https://aiohttp.readthedocs.io/en/stable/web_advanced.html#aiohttp-web-middlewares: "Prior to v2.3 middleware required an outer middleware factory which returned the middleware coroutine." Does it mean this PR drops support for |
What is expected is people having installed at leasr the last version of 2 major release, they wont have breaking changes and will be "free" of known bugs. If somebody is still in an older release the update to the last 2.X should be friction less. In any case the 3.X version is getting mature, 3.0.5 is out and sooner than later a 3.1 would be released. What IMHO might be the good candidate for production sysy |
I totally understand what you are saying. The issue is not about whether they upgrade to 2.3 or 3.x, it is about when. We cannot assume upgrading We definitely want the This way whoever new to X-Ray and have Please let me know your thoughts. |
Looking into the middleware code looks like that there is a dependency - the Thoughts ? |
You are right. It looks like the first PR for Could you add new section "unreleased" on Also it would be helpful if you can add a ">2.3" at https://github.com/aws/aws-xray-sdk-python/blob/master/docs/index.rst "aiohttp item" |
Done. In any case Im working also with the Client part that is only compatible with Aiohttp 3.X series, but lets discuss that in the next MR. |
Yes the client part for 3.x is totally fine. |
The previous implementation was using the former version of Aiohttp that
got deprecated since 2.3.0. Related to #28.
The interface didn't change, so from the point of the view of the user, it does not suppose a breaking change. I would suggest using a minor release.