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

Function extractProject

modules/sentry/handler.go:378–384  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

376}
377
378func extractProject(path string) string {
379 parts := strings.Split(strings.Trim(path, "/"), "/")
380 if len(parts) >= 2 {
381 return parts[1]
382 }
383 return ""
384}
385
386// resolveProject maps a Sentry DSN project segment to a Buggregator project key.
387// The Sentry JavaScript SDK rejects non-numeric DSN project ids, so a purely

Callers 2

HandleMethod · 0.85
TestExtractProjectFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestExtractProjectFunction · 0.68