Skip to content

Feature: Add granular GitHub Action usage metrics to telemetry #21130

@cocosheng-g

Description

@cocosheng-g

Description

This issue tracks the addition of new telemetry metadata keys to support granular usage metrics for the Gemini CLI when running in GitHub Actions.

Specifically, this adds:

  • GEMINI_CLI_GH_EVENT_NAME (172): The GitHub event name (e.g., issues, pull_request, schedule).
  • GEMINI_CLI_GH_EVENT_NUMBER (173): The raw integer event number (Issue or PR ID). This avoids PII fingerprinting while relying on the repository context to provide global uniqueness.

These additions allow for tracking unique Repositories, Issues, and PRs touched by the CLI, and distinguish between different workflow triggers (Automated vs. Scheduled).

Related

Metadata

Metadata

Assignees

Labels

area/enterpriseIssues related to Telemetry, Policy, Quota / Licensingstatus/need-triageIssues that need to be triaged by the triage automation.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions