Commit fbe3ac5
committed
fix(cozeloop): ensure span.Finish called on panic and handle []byte aliases in interrupt data
- Move span.Finish(ctx) into defer block in OnEnd goroutine to guarantee
span is finished even if ParseOutput/SetTags panics
- Use reflect to detect []byte-based types (e.g. json.RawMessage) in
serializeInterruptInfo to avoid writing binary data into span tags
Change-Id: Ie70d9fb1eb2593924affd8a939b492a592d8939e1 parent 211c2d4 commit fbe3ac5
2 files changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
734 | 734 | | |
735 | 735 | | |
736 | 736 | | |
737 | | - | |
| 737 | + | |
| 738 | + | |
738 | 739 | | |
739 | 740 | | |
740 | 741 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| 137 | + | |
137 | 138 | | |
138 | 139 | | |
139 | 140 | | |
140 | 141 | | |
141 | | - | |
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| |||
0 commit comments