Skip to content

feat(cli): tag CI invocations in telemetry - #1753

Merged
betegon merged 1 commit into
mainfrom
bt/cli-ci-telemetry
Oct 30, 2026
Merged

betegon merged 1 commit into
mainfrom
bt/cli-ci-telemetry

Conversation

@betegon

@betegon betegon commented Oct 30, 2026

Copy link
Copy Markdown
Member

Commands without an agent tag are currently grouped as human usage, which also includes CI jobs. Add an explicit is_ci tag (true or false) to CLI and library telemetry so dashboards can separate those invocations while preserving the identity of agents running in CI.

Reuse the existing environment detector for telemetry, build uploads, and snapshot uploads without changing its matching behavior or adding dependencies. Outgoing event and command transaction tests cover generic and provider-specific CI markers, false/unset values, and preserved agent identity.

The developer guide documents the dashboard split, retaining the existing command filters and aggregate:

Segment Additional filter
Agent !agent:""
CI agent:"" is_ci:true
Human agent:"" is_ci:false
Unknown agent:"" is_ci:""

Dashboard updates should follow a CLI release containing the tag. Older events without is_ci remain unknown; the Human label still includes undetected local automation.

Validated with root typecheck and lint, and the full root test suite on Linux x64 / Node 24 / UTC with Spotlight disabled: 15,877 tests passed, 72 skipped.

@vercel

vercel Bot commented Oct 30, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
sentry-local Skipped Skipped Oct 30, 2026 1:20pm UTC

Request Review

@betegon
betegon marked this pull request as ready for review October 30, 2026 14:10
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Oct 30, 2026
@betegon
betegon merged commit c06d0b2 into main Oct 30, 2026
27 checks passed
@betegon
betegon deleted the bt/cli-ci-telemetry branch October 30, 2026 14:18

This branch was previously deployed

1 inactive deployment
Preview — 406d5a15 Deployed Oct 30, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant