Commit aaba80ee authored by ale's avatar ale

Initialize tracing

parent c27749b8
Pipeline #1636 passed with stages
in 1 minute and 32 seconds
......@@ -10,6 +10,7 @@ import (
"syscall"
"time"
"git.autistici.org/ai3/go-common/tracing"
"git.autistici.org/ai3/go-common/unix"
"github.com/coreos/go-systemd/daemon"
"github.com/prometheus/client_golang/prometheus/promhttp"
......@@ -51,6 +52,8 @@ func main() {
log.Fatalf("configuration error: %v", err)
}
tracing.Init()
if *httpAddr != "" {
h := http.NewServeMux()
h.Handle("/metrics", promhttp.Handler())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment