MCPcopy Index your code
hub / github.com/tailscale/tailscale / newDebugMux

Function newDebugMux

cmd/tailscaled/debug.go:52–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50}
51
52func newDebugMux() *http.ServeMux {
53 mux := http.NewServeMux()
54 mux.HandleFunc("/debug/metrics", servePrometheusMetrics)
55 mux.HandleFunc("/debug/pprof/", pprof.Index)
56 mux.HandleFunc("/debug/pprof/cmdline", pprof.Cmdline)
57 mux.HandleFunc("/debug/pprof/profile", pprof.Profile)
58 mux.HandleFunc("/debug/pprof/symbol", pprof.Symbol)
59 mux.HandleFunc("/debug/pprof/trace", pprof.Trace)
60 return mux
61}
62
63func servePrometheusMetrics(w http.ResponseWriter, r *http.Request) {
64 w.Header().Set("Content-Type", "text/plain")

Callers

nothing calls this directly

Calls 1

HandleFuncMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…