Repository navigation
feat: report CLI usage analytics to Argvio instead of OpenTelemetry - #147
Open
emmanuelgautier wants to merge 2 commits into
Open
emmanuelgautier wants to merge 2 commits into
emmanuelgautier wants to merge 2 commits into
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #147 +/- ##
==========================================
+ Coverage 55.58% 57.22% +1.64%
==========================================
Files 11 11
Lines 358 332 -26
==========================================
- Hits 199 190 -9
+ Misses 159 142 -17 ☔ 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
f2edb49 to
9b65644
Compare
emmanuelgautier
force-pushed
the
feat/argvio
branch
from
October 19, 2026 22:44
9b65644 to
88c6511
Compare
emmanuelgautier
force-pushed
the
feat/argvio
branch
4 times, most recently
from
November 1, 2026 10:19
2151cfc to
021db76
Compare
emmanuelgautier
force-pushed
the
feat/argvio
branch
from
November 1, 2026 10:32
021db76 to
810352d
Compare
…cs.yaml catalog 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 generator and authenticator counters). Argvio's command invocations and exit codes replace the per-command success and error counts.error_reasondid (for examplefailed-to-load-openapi-file), throughtelemetryx.Reason.telemetryx.Vocab.generate, which reported a nilerrinstead ofencodeErr(the same bug is onmain).telemetryx.Execute. Shell, terminal and runtime on session start are sent by argvio itself at the Basic tier.generator.generate).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).generator.rules(method × result; wasverb.generatedin one label),authenticator.created(scheme),generate.output(format × destination file/stdout, new),generator.generateduration.generate.rules(value: rules per run),generator.rule-failure-rateratio.🤖 Generated with Claude Code