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

Function apiError

modules/sentry/api.go:69–73  ·  view source on GitHub ↗
(w http.ResponseWriter, msg string, code int)

Source from the content-addressed store, hash-verified

67}
68
69func apiError(w http.ResponseWriter, msg string, code int) {
70 w.Header().Set("Content-Type", "application/json")
71 w.WriteHeader(code)
72 json.NewEncoder(w).Encode(map[string]any{"message": msg, "code": code})
73}
74
75// listResponse wraps data with pagination metadata.
76func listResponse(data any, total, page, limit int) map[string]any {

Callers 8

handleTracesListFunction · 0.85
handleTraceDetailFunction · 0.85
handleClearAllFunction · 0.85
handleServiceMapFunction · 0.85
handleExceptionsGroupedFunction · 0.85
handleExceptionDetailFunction · 0.85
handleLogsListFunction · 0.85

Calls 1

WriteHeaderMethod · 0.80

Tested by

no test coverage detected