Skip to content

Commit 94f518c

Browse files
committed
fix: trace config frozen
1 parent f5a9b06 commit 94f518c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

common/http_timing.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ async def measure_http_request_timing(
102102
timing_collector = HttpTimingCollector()
103103
trace_config: aiohttp.TraceConfig = timing_collector.create_trace_config()
104104

105+
# Freeze trace config before adding to session
106+
trace_config.freeze()
105107
# Add timing trace to session temporarily
106108
session._trace_configs.append(trace_config)
107109

0 commit comments

Comments
 (0)