File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 10103 . ** CRITICAL** : This breaks tests because tests are executed over both separate requests instead of one unified trace
1111
1212** 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
1619- This creates conflicting/duplicate trace data that confuses test execution
1720- Tests expect single request but get two separate ones to validate
1821
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments