(st any, fetch sourceFetcher, cache map[string]*fetchedSource, missing map[string]bool)
| 127 | } |
| 128 | |
| 129 | func enrichStacktrace(st any, fetch sourceFetcher, cache map[string]*fetchedSource, missing map[string]bool) bool { |
| 130 | stm, ok := st.(map[string]any) |
| 131 | if !ok { |
| 132 | return false |
| 133 | } |
| 134 | changed := false |
| 135 | for _, f := range asAnySlice(stm["frames"]) { |
| 136 | if fm, ok := f.(map[string]any); ok { |
| 137 | if enrichFrame(fm, fetch, cache, missing) { |
| 138 | changed = true |
| 139 | } |
| 140 | } |
| 141 | } |
| 142 | return changed |
| 143 | } |
| 144 | |
| 145 | func enrichFrame(fm map[string]any, fetch sourceFetcher, cache map[string]*fetchedSource, missing map[string]bool) bool { |
| 146 | // Skip frames that already carry source. |
no test coverage detected