File tree Expand file tree Collapse file tree 2 files changed +6
-73
lines changed Expand file tree Collapse file tree 2 files changed +6
-73
lines changed Original file line number Diff line number Diff line change 10
10
3 . ** CRITICAL** : This breaks tests because tests are executed over both separate requests instead of one unified trace
11
11
12
12
** Root Cause** :
13
- - The ` @trace() ` and ` trace_async() ` decorators don't handle async generators properly
14
- - They capture the generator object itself as output, not the streamed content
15
- - ` trace_async_openai() ` creates separate traces for OpenAI calls
13
+ - ** CRITICAL** : ` @trace_async() ` is fundamentally broken for async generators
14
+ - Cannot ` await ` an async generator function (returns generator object, not values)
15
+ - Logs the generator object as output instead of actual streamed content
16
+ - Records timing before generator is consumed (incorrect latency)
17
+ - Never captures the actual yielded values
18
+ - ` trace_async_openai() ` creates separate traces for OpenAI calls
16
19
- This creates conflicting/duplicate trace data that confuses test execution
17
20
- Tests expect single request but get two separate ones to validate
18
21
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments