Git backed by object storage because you can't stop me
git object-storage kefka
10

Configure Feed

Select the types of activity you want to include in your feed.

chore: add pprof endpoints to metrics server

Signed-off-by: Xe Iaso <me@xeiaso.net>

Xe Iaso (May 29, 2026, 1:01 PM EDT) 82da7452 63ab369b

+8
+8
cmd/objgitd/main.go
··· 8 8 "log/slog" 9 9 "net" 10 10 "net/http" 11 + "net/http/pprof" 11 12 "os" 12 13 "os/signal" 14 + "runtime" 13 15 "syscall" 14 16 "time" 15 17 ··· 105 107 slog.Error("can't listen", "metrics_bind", *metricsBind, "err", err) 106 108 os.Exit(1) 107 109 } 110 + runtime.SetBlockProfileRate(100) 108 111 mux := http.NewServeMux() 109 112 mux.Handle("/metrics", promhttp.Handler()) 113 + mux.HandleFunc("GET /debug/pprof/", pprof.Index) 114 + mux.HandleFunc("GET /debug/pprof/cmdline", pprof.Cmdline) 115 + mux.HandleFunc("GET /debug/pprof/profile", pprof.Profile) 116 + mux.HandleFunc("GET /debug/pprof/symbol", pprof.Symbol) 117 + mux.HandleFunc("GET /debug/pprof/trace", pprof.Trace) 110 118 srv := &http.Server{Handler: mux} 111 119 g.Go(func() error { 112 120 if err := srv.Serve(ln); err != nil && !errors.Is(err, http.ErrServerClosed) {