Skip to content

Commit

Permalink
debug metrics collection
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrox committed Sep 28, 2024
1 parent bd82068 commit dee7d9f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions manager/metrics_collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package manager

import (
"context"
"fmt"
"io"
"log/slog"
"net"
Expand Down Expand Up @@ -39,6 +40,7 @@ func fetchMetricsAndMerge(w io.Writer) {
shimMetrics, err := getMetricsOverTTRPC(context.Background(), sockName)
if err != nil {
slog.Error("getting metrics", "err", err)
fmt.Fprintf(w, "getting metrics error: %s", err)
// we still want to read the rest of the sockets
continue
}
Expand Down

0 comments on commit dee7d9f

Please sign in to comment.