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

Function apiJSON

modules/sentry/api.go:64–67  ·  view source on GitHub ↗
(w http.ResponseWriter, v any)

Source from the content-addressed store, hash-verified

62}
63
64func apiJSON(w http.ResponseWriter, v any) {
65 w.Header().Set("Content-Type", "application/json")
66 json.NewEncoder(w).Encode(v)
67}
68
69func apiError(w http.ResponseWriter, msg string, code int) {
70 w.Header().Set("Content-Type", "application/json")

Callers 9

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

Calls

no outgoing calls

Tested by

no test coverage detected