Skip to content

Instantly share code, notes, and snippets.

View BabakAmini's full-sized avatar

Babak BabakAmini

View GitHub Profile
@anthonynsimon
anthonynsimon / aiohttp_trace.py
Last active November 19, 2024 18:04
aiohttp tracing
import aiohttp
def request_tracer(results_collector):
"""
Provides request tracing to aiohttp client sessions.
:param results_collector: a dict to which the tracing results will be added.
:return: an aiohttp.TraceConfig object.
:example: