Commit b70b21a
authored
fix(copilot): surface error cause chain in sim-to-go span status (#5473)
markSpanForError only recorded the top-level exception message, so a
fetch() failure showed up as the generic "TypeError: fetch failed" with
no indication of the real cause (ENOTFOUND, ECONNREFUSED, etc). Use
describeError to walk the cause chain and set it as the span status
message and an error.code attribute.1 parent e5b9432 commit b70b21a
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
98 | 102 | | |
99 | 103 | | |
100 | 104 | | |
101 | | - | |
| 105 | + | |
102 | 106 | | |
103 | 107 | | |
104 | 108 | | |
| |||
0 commit comments