Commit 73763c1
feat(telemetry): track TTY vs non-TTY invocations via metric
Emits a `cli.invocation` counter metric with an `is_tty` attribute on
every CLI call. This lets us measure what percentage of usage comes from
agents and CI vs interactive terminals in the Sentry Metrics dashboard.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 23cb92c commit 73763c1
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
345 | 350 | | |
346 | 351 | | |
347 | 352 | | |
| |||
0 commit comments