Skip to content

Commit

Permalink
ci: resolve nil error with hack metrics script
Browse files Browse the repository at this point in the history
  • Loading branch information
tboerger committed Sep 14, 2024
1 parent 884f94d commit 44e521f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hack/generate-metrics-docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package main

import (
"fmt"
"log/slog"
"os"
"reflect"
"sort"
Expand All @@ -26,7 +27,7 @@ func main() {

collectors = append(
collectors,
exporter.NewRepoCollector(nil, nil, nil, nil, config.Load().Target).Metrics()...,
exporter.NewRepoCollector(slog.Default(), nil, nil, nil, config.Load().Target).Metrics()...,
)

metrics := make([]metric, 0)
Expand Down

0 comments on commit 44e521f

Please sign in to comment.