Knowledge File / AI小生意项目库
改进Copilot使用度量报告的准确性与覆盖范围
GitHub Copilot使用度量API进行了三项改进:CLI现在报告建议的代码行数、服务器端遥测用户现在有IDE标识、AI信用消耗归因更完整。这些更新减少了盲点,提高了数据的可信度,并确保跨IDE、CLI和服务器端表面的一致性分析。
SOURCE / AI小生意项目库
MIN / 9
ACCESS / 会员
POST / 2026-07-03 07:19:06
原贴
查看原文原文
We’ve made three improvements to the Copilot usage metrics API that make its reports more complete and accurate: GitHub Copilot CLI now reports suggested lines of code, users seen only through server-side telemetry now have their IDE identified, and AI credit consumption is now attributed more completely. GitHub Copilot CLI now reports suggested lines of code. CLI activity now contributes to the loc_suggested_to_add_sum and loc_suggested_to_delete_sum fields, which previously always reported 0 for the CLI. Code generation counts are also more accurate on newer CLI versions, where suggested and accepted edits are de-duplicated so the same edit isn’t counted twice. IDE identified for more users. Users who were previously visible only through server-side telemetry now have their IDE and plugin versions surfaced in totals_by_ide , so totals_by_ide reflects more of your Copilot users. AI credits attributed more accurately. We fixed two issues that caused some users to show 0.0 AI credits despite real usage. First, AI credit consumption not associated with an organization was being dropped. It’s now attributed to the correct organization or enterprise. Second, users seen only through server-side telemetry were not being matched to their billing data. Their consumption is now included. Thanks to these updates, ai_credits_used totals more completely reflect actual consumption. More complete coverage: Surfacing CLI suggested lines of code and identifying IDEs for server-side-only users means fewer blind spots in who is using Copilot and how. More trustworthy consumption data: Correcting AI credit attribution means ai_credits_used totals more accurately reflect what your users actually consumed. Consistent analysis across surfaces: As Copilot usage spans the IDE, CLI, and server-side surfaces, these updates keep the reports aligned with real activity. These metrics are available to enterprise administrators and organization owners who have access to Copilot usage metrics through the REST API. Copilot CLI reports suggested lines of code from CLI version 1.0.57 onward. Code generation de-duplication applies from version 1.0.64 onward. Between 1.0.57 and 1.0.64 , code generation activity may be slightly undercounted for the CLI. AI credit totals for previously-missed usage will increase as a result of these attribution fixes—values that were already reported are unchanged. Visit the Copilot usage metrics API documentation to learn more.
中文翻译
我们对Copilot使用度量API进行了三项改进,使其报告更完整、更准确:GitHub Copilot CLI现在报告建议的代码行数,仅通过服务器端遥测看到的用户现在有了IDE标识,AI信用消耗现在更完整地归因。GitHub Copilot CLI现在报告建议的代码行数。CLI活动现在贡献给loc_suggested_to_add_sum和loc_suggested_to_delete_sum字段,之前这些字段对CLI总是报告0。在较新的CLI版本上,代码生成计数也更准确,因为建议和接受的编辑被去重,同一编辑不会被计数两次。更多用户的IDE被识别。之前仅通过服务器端遥测可见的用户,现在其IDE和插件版本在totals_by_ide中显示,因此totals_by_ide反映了更多Copilot用户。AI信用更准确地归因。我们修复了两个导致某些用户显示0.0 AI信用但实际有使用的问题。首先,未与组织关联的AI信用消耗被丢弃,现在归因到正确的组织或企业。其次,仅通过服务器端遥测看到的用户未匹配到其计费数据,现在他们的消耗也被包含。得益于这些更新,ai_credits_used总量更完整地反映实际消耗。更完整的覆盖:显示CLI建议的代码行数并为仅服务器端用户识别IDE,意味着减少了谁在使用Copilot以及如何使用的盲点。更可信的消耗数据:纠正AI信用归因意味着ai_credits_used总量更准确地反映用户实际消耗。跨表面的一致性分析:随着Copilot使用跨越IDE、CLI和服务器端表面,这些更新使报告与实际活动保持一致。这些度量指标可供拥有通过REST API访问Copilot使用度量权限的企业管理员和组织所有者使用。Copilot CLI从1.0.57版本开始报告建议的代码行数。代码生成去重从1.0.64版本开始应用。在1.0.57和1.0.64之间,CLI的代码生成活动可能略少计。由于这些归因修复,之前遗漏的使用对应的AI信用总量将增加——已经报告的值不变。访问Copilot使用度量API文档了解更多。
核心信息
GitHub Copilot使用度量API进行了三项改进:CLI现在报告建议的代码行数、服务器端遥测用户现在有IDE标识、AI信用消耗归因更完整。这些更新减少了盲点,提高了数据的可信度,并确保跨IDE、CLI和服务器端表面的一致性分析。
- GitHub Copilot使用度量API进行了三项改进:CLI现在报告建议的代码行数、服务器端遥测用户现在有IDE标识、AI信用消耗归因更完整。这些更新减少了盲点,提高了数据的可信度,并确保跨IDE、CLI和服务器端表面的一致性分析。
- 原贴提到:We’ve made three improvements to the Copilot usage metrics API that make
- 来源:github.blog
试看内容
成为会员查看完整内容
你已经看到了这篇内容的前置整理,剩余深度部分仅对会员开放。
详细解读
信息差价值
参考来源
成为会员查看完整内容