Repository navigation
Commit adc9ccf
committed
revert(core): keep cancellation out of span error status
The #536 change marked any BaseException that unwinds a manual span as ERROR
and put the exception text in the status. That breaks guardrails' stream
contract (a cancelled stream is not an error and its cancel message is not
exported) and differs from OpenTelemetry, which deliberately leaves
cancellation alone. Restore _tracers.py exactly as it was on a151e45 and drop
its test and changelog line. #536's OpenAI part (truncated multi-choice streams
export ERROR) is unchanged.1 parent a67c16f commit adc9ccf
3 files changed
Lines changed: 1 addition & 164 deletions
File tree
- python
- fi_instrumentation/instrumentation
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
| 206 | + | |
220 | 207 | | |
221 | 208 | | |
222 | 209 | | |
| |||
This file was deleted.
0 commit comments