Commit dc09f50
authored
feat(observe): handle starlette.StreamingResponse (#1394)
Starlette has a StreamingResponse type that wraps an AsyncGenerator,
which is often used in fastapi http calls.
By wrapping the result inside of it, we can get the correct
timings and outputs for these generators in the resulting trace.1 parent 496aca3 commit dc09f50
1 file changed
+20
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
315 | 325 | | |
316 | 326 | | |
317 | 327 | | |
| |||
416 | 426 | | |
417 | 427 | | |
418 | 428 | | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
419 | 439 | | |
420 | 440 | | |
421 | 441 | | |
| |||
0 commit comments