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

Function registerAPI

modules/sentry/api.go:10–19  ·  view source on GitHub ↗
(mux *http.ServeMux, db *sql.DB)

Source from the content-addressed store, hash-verified

8)
9
10func registerAPI(mux *http.ServeMux, db *sql.DB) {
11 mux.HandleFunc("GET /api/sentry/exceptions", handleExceptionsList(db))
12 mux.HandleFunc("GET /api/sentry/exceptions/{id}", handleExceptionDetail(db))
13 mux.HandleFunc("GET /api/sentry/traces", handleTracesList(db))
14 mux.HandleFunc("GET /api/sentry/traces/{traceId}", handleTraceDetail(db))
15 mux.HandleFunc("GET /api/sentry/logs", handleLogsList(db))
16 mux.HandleFunc("GET /api/sentry/service-map", handleServiceMap(db))
17 mux.HandleFunc("GET /api/sentry/counts", handleCounts(db))
18 mux.HandleFunc("DELETE /api/sentry/all", handleClearAll(db))
19}
20
21// handleClearAll deletes all data from sentry structured tables.
22func handleClearAll(db *sql.DB) http.HandlerFunc {

Callers 3

seedTestDataFunction · 0.70
TestAPIEmptyDatabaseFunction · 0.70
RegisterRoutesMethod · 0.70

Calls 8

handleExceptionsListFunction · 0.85
handleExceptionDetailFunction · 0.85
handleTracesListFunction · 0.85
handleTraceDetailFunction · 0.85
handleLogsListFunction · 0.85
handleServiceMapFunction · 0.85
handleCountsFunction · 0.85
handleClearAllFunction · 0.85

Tested by 2

seedTestDataFunction · 0.56
TestAPIEmptyDatabaseFunction · 0.56