Repository navigation
feat: report CLI usage analytics to Argvio instead of OpenTelemetry - #329
Open
emmanuelgautier wants to merge 4 commits into
Open
emmanuelgautier wants to merge 4 commits into
emmanuelgautier wants to merge 4 commits into
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #329 +/- ##
==========================================
+ Coverage 65.45% 67.20% +1.74%
==========================================
Files 91 91
Lines 2565 2464 -101
==========================================
- Hits 1679 1656 -23
+ Misses 886 808 -78 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
emmanuelgautier
force-pushed
the
feat/argvio
branch
from
October 18, 2026 23:02
85d8e01 to
cbfad24
Compare
emmanuelgautier
force-pushed
the
feat/argvio
branch
from
October 19, 2026 22:44
cbfad24 to
4c36efc
Compare
emmanuelgautier
force-pushed
the
feat/argvio
branch
4 times, most recently
from
November 1, 2026 10:19
bf7811c to
d83d11e
Compare
emmanuelgautier
force-pushed
the
feat/argvio
branch
from
November 1, 2026 10:31
d83d11e to
18e3d22
Compare
…s.yaml catalog Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
….5.0 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
telemetryx.Instrument, and embeds itspublic_ingestingest key. It only allows sending usage data, so it is safe to ship in the binary.telemetryx.New, every scan, discover and OpenAPI counter). Argvio's command invocations and exit codes replace the per-command success and error counts.error_reasondid (for exampleinvalid-client,error-executing-scan), throughtelemetryx.Reason.telemetryx.Vocab, never from the scanned spec.telemetryx.Execute. Shell, terminal and runtime on session start are sent by argvio itself at the Basic tier.openapi.operations).telemetryx.Exit/telemetryx.Fatalinstead ofos.Exit/log.Fatalinside commands, so failed runs are recorded and flushed.--sqa-opt-out,DO_NOT_TRACKorARGVIO_DISABLED. Interactive runs report at the Basic tier, CI runs at Anonymous. Counters are accepted at the anonymous tier, so they are also sent from CI; they only ever carry fixed identifiers written in code.Dependency
Uses
github.com/cerberauth/xatfc43052onmain(it includes #61 and #66, both merged) andargvio-gov0.4.0, both released. Nothing else needs to merge first.Test plan
go build ./...,go vet ./...,go test ./...,golangci-lint run --new-from-rev=origin/main(0 issues)Update: Argvio v0.7.0 product metrics
x: command panics are now recorded (categoryinternal, reasonpanic, exit 2, never the panic value), so--sqa-opt-out's "crash reports" is true.telemetryx.NewCounter/NewDuration/NewValue) instead of one packed label.argvio.metrics.yaml: the catalog the Argvio Product view renders from (titles, units, dimension order, ratios). Validated offline withargvio metric validatev0.7.0..github/workflows/argvio-metrics.ymlvalidates it on PRs and syncs it on release / manual dispatch with theARGVIO_METRICS_ADMIN_KEYsecret (sync is skipped with a warning while the secret isn't set).openapi.operations(method),openapi.security-scheme(scheme × supported; merges the old.unsupportedcounter). The OpenAPI build timing is renamedopenapi.load(a catalog name is unique across kinds).scan.operations(value: operations per scan); shared scan outcome viax/telemetryx/scanmetrics:scan.checks(status),scan.vulnerable(check × severity),scan.findings(value per scan by severity), plus check vulnerable/error-rate ratios. vulnapi's own*finding.Findingresults are counted through the reporter'sFindingshook.🤖 Generated with Claude Code