refactor: Simplify telemetry metrics by removing site_id and enhancing tunnel_id usage

This commit is contained in:
Marc Schäfer
2025-10-07 18:43:09 +02:00
parent f8fd8e1bc5
commit a86b14d97d
10 changed files with 53 additions and 54 deletions

View File

@@ -25,7 +25,7 @@ cfg := Config{ServiceName: "newt", PromEnabled: true, AdminAddr: "127.0.0.1:0",
defer ts.Close()
// Trigger a counter
IncConnAttempt(ctx, "ignored", "websocket", "success")
IncConnAttempt(ctx, "websocket", "success")
time.Sleep(100 * time.Millisecond)
resp, err := http.Get(ts.URL)