Skip to content

feat: Add Copilot 3rd-party agent metrics - #4460

Open
Tens1des wants to merge 1 commit into
google:masterfrom
Tens1des:feat/copilot-3rd-party-agent-metrics
Open

feat: Add Copilot 3rd-party agent metrics#4460
Tens1des wants to merge 1 commit into
google:masterfrom
Tens1des:feat/copilot-3rd-party-agent-metrics

Conversation

@Tens1des

Copy link
Copy Markdown

Adds totals_by_3rd_party_agent to Copilot usage metrics report structs.

GitHub changelog: https://github.blog/changelog/2026-08-07-copilot-usage-metrics-api-adds-agent-app-activity/

  • New CopilotMetricsThirdPartyAgent type (agent_name, agent_id, user_initiated_interaction_count, optional session_count)
  • Field wired on CopilotDailyMetrics, CopilotUserDailyMetrics, and CopilotUserPeriodicMetrics
  • Tests for daily and user-daily downloads; accessors regenerated via script/generate.sh

Fixes #4459

@codecov

codecov Bot commented Aug 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.55%. Comparing base (27edd67) to head (ba5c8e5).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4460   +/-   ##
=======================================
  Coverage   97.55%   97.55%           
=======================================
  Files         194      194           
  Lines       19884    19884           
=======================================
  Hits        19398    19398           
  Misses        268      268           
  Partials      218      218           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@gmlewis gmlewis added the NeedsReview PR is awaiting a review before merging. label Aug 19, 2026

@gmlewis gmlewis left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @Tens1des!
LGTM.
Awaiting second LGTM+Approval from any other contributor to this repo before merging.

cc: @stevehipwell - @alexandear - @Not-Dhananjay-Mishra

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

NeedsReview PR is awaiting a review before merging.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Copilot totals_by_3rd_party_agent metrics

2 participants