(path string)
| 376 | } |
| 377 | |
| 378 | func 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 |
no outgoing calls