MCPcopy Create free account
hub / github.com/buggregator/server / enrichStacktrace

Function enrichStacktrace

modules/sentry/source_context.go:129–143  ·  view source on GitHub ↗
(st any, fetch sourceFetcher, cache map[string]*fetchedSource, missing map[string]bool)

Source from the content-addressed store, hash-verified

127}
128
129func 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
145func enrichFrame(fm map[string]any, fetch sourceFetcher, cache map[string]*fetchedSource, missing map[string]bool) bool {
146 // Skip frames that already carry source.

Callers 1

enrichSourceContextFunction · 0.85

Calls 2

asAnySliceFunction · 0.85
enrichFrameFunction · 0.85

Tested by

no test coverage detected