Description
Hi folks,
I'm thinking in work on a pair of PR to improve the functionality of AWS-XRay for the Aiohttp framework.
First of all, I would like to add a new TraceConfig
object - the new Aiohttp Client tracing system since 3.0 [1] - that will allow users just make something like that to inject the specific headers:
import aiohttp
from aws_xray_sdk.ext.aiohttp.client import TraceConfig
async with aiohttp.ClientSession(trace_configs=[TraceConfig()]) as client:
await client.get('http://example.com/some/redirect/')
My main concern with that is how to deal with different Aiohttp versions, is there any requirement or advice with that?
Second, I would like to deprecate - remove? - the current middleware implementation that uses a deprecated pattern since the 2.X version, we strongly recommend the new one [2], any concerns?.
[1] https://docs.aiohttp.org/en/stable/client_advanced.html#client-tracing
[2] https://docs.aiohttp.org/en/stable/web_advanced.html?highlight=middleware#middlewares