Skip to content

Commit fb2a687

Browse files
committed
internal/scan: add format and scan level telemetry
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>
1 parent f5e77b8 commit fb2a687

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/scan/run.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ func RunGovulncheck(ctx context.Context, env []string, r io.Reader, stdout io.Wr
5656
}
5757

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

6062
switch cfg.ScanMode {
6163
case govulncheck.ScanModeSource:

0 commit comments

Comments
 (0)