Commit a632a81
fix(httpx): Always set span attributes even when request raises
Wrap real_send in try/finally so span attributes (URL, method, etc.) are
always flushed to the span. Previously an exception from real_send would
leave the span with no attributes at all.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 19eeac5 commit a632a81
1 file changed
Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
| 99 | + | |
99 | 100 | | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
104 | 105 | | |
105 | 106 | | |
106 | 107 | | |
| |||
0 commit comments