Repository navigation
feat: report CLI usage analytics to Argvio instead of OpenTelemetry - #25
Open
emmanuelgautier wants to merge 2 commits into
Open
emmanuelgautier wants to merge 2 commits into
emmanuelgautier wants to merge 2 commits into
Conversation
emmanuelgautier
force-pushed
the
feat/argvio
branch
from
October 18, 2026 23:02
67b541d to
21f1add
Compare
emmanuelgautier
force-pushed
the
feat/argvio
branch
from
October 19, 2026 22:44
21f1add to
62c8c28
Compare
emmanuelgautier
force-pushed
the
feat/argvio
branch
3 times, most recently
from
November 1, 2026 10:14
5193229 to
8e70691
Compare
emmanuelgautier
force-pushed
the
feat/argvio
branch
from
November 1, 2026 10:32
8e70691 to
5ee3801
Compare
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.Newand the OTel reporter onscan). Argvio's command invocations and exit codes replace the per-command success and error counts.x's default classifier. There were no OTel counters to carry over.telemetryx.Execute. Shell, terminal and runtime on session start are sent by argvio itself at the Basic tier.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).scanmetrics(scan.checks,scan.vulnerableover the 35 checks,scan.findings),scan.engine(the--enginehint, flag values not being in usage events), rate ratios.🤖 Generated with Claude Code