Skip to content

Commit

Permalink
internal/scan: add format and scan level telemetry
Browse files Browse the repository at this point in the history
Change-Id: I9564ea12001d0ae4c173e051394dee3c12f459f1
Reviewed-on: https://go-review.googlesource.com/c/vuln/+/589395
TryBot-Result: Gopher Robot <gobot@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Maceo Thompson <maceothompson@google.com>
Run-TryBot: Zvonimir Pavlinovic <zpavlinovic@google.com>
  • Loading branch information
zpavlinovic committed Jun 4, 2024
1 parent f5e77b8 commit fb2a687
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/scan/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ func RunGovulncheck(ctx context.Context, env []string, r io.Reader, stdout io.Wr
}

counter.Inc(fmt.Sprintf("govulncheck/mode:%s", cfg.ScanMode))
counter.Inc(fmt.Sprintf("govulncheck/scan:%s", cfg.ScanLevel))
counter.Inc(fmt.Sprintf("govulncheck/format:%s", cfg.format))

switch cfg.ScanMode {
case govulncheck.ScanModeSource:
Expand Down

0 comments on commit fb2a687

Please sign in to comment.