AI觉醒星球
Awakening is here
Knowledge File / AI小生意项目库
2026-07-09 0 浏览 会员

面向VS Code和CLI的企业托管OpenTelemetry导出

企业现在可以强制指定GitHub Copilot的OpenTelemetry数据流向,通过企业托管设置统一配置,无需开发者单独设置环境变量。

SOURCE / AI小生意项目库 MIN / 9 ACCESS / 会员 POST / 2026-07-09 04:50:07

原贴

查看原文
作者:Allison 来源站点:github.blog 原贴时间:

原文

Organizations can now mandate where GitHub Copilot sends OpenTelemetry (OTel) data, so telemetry flows to an approved collector without each developer setting OTEL_* environment variables. The configuration is delivered through the telemetry block in enterprise-managed settings and applies to both the Copilot Chat extension in VS Code and the agent host process that powers Copilot CLI. The OTLP export endpoint and transport protocol ( otlp-http or otlp-grpc ). The OTel service name and resource attributes. Exporter headers, such as an authentication token for the collector. Whether prompt, response, and tool content is captured, and whether developers can change that. A managed value always wins, taking precedence over environment variables and user settings. Deliver these settings through any of the supported channels: native MDM (Windows Registry or macOS managed preferences), server-managed settings resolved from the signed-in GitHub account, or a file-based managed-settings.json . For security, managed exporter headers are applied only to the Copilot Chat extension’s OTLP exporter and are never passed through environment variables, so a value such as an authentication token can’t leak into the tool subprocesses that the agent host spawns. This builds on enterprise managed settings and joins the growing set of Copilot governance controls available across VS Code and Copilot CLI. To learn more, see Configure telemetry export with OpenTelemetry and Monitor agent usage with OpenTelemetry . Join the discussion within GitHub Community .

中文翻译

组织现在可以强制指定 GitHub Copilot 将 OpenTelemetry (OTel) 数据发送到哪里,从而让遥测数据流向一个经批准的收集器,无需每个开发者设置 OTEL_* 环境变量。该配置通过企业托管设置中的 telemetry 块下发,适用于 VS Code 中的 Copilot Chat 扩展以及驱动 Copilot CLI 的代理主机进程。可配置项包括:OTLP 导出端点及传输协议(otlp-http 或 otlp-grpc)、OTel 服务名称和资源属性、导出器标头(例如收集器的身份验证令牌)、是否捕获提示、响应和工具内容以及开发者是否可以更改此设置。托管值始终优先,覆盖环境变量和用户设置。可通过任意支持的渠道下发这些设置:原生 MDM(Windows 注册表或 macOS 托管偏好设置)、基于已登录 GitHub 账号解析的服务器管理设置,或基于文件的 managed-settings.json。出于安全考虑,管理的导出器标头仅应用于 Copilot Chat 扩展的 OTLP 导出器,绝不会通过环境变量传递,因此诸如身份验证令牌的值不会泄露到代理主机产生的工具子进程中。此功能基于企业托管设置构建,并加入了 VS Code 和 Copilot CLI 上日益增长的 Copilot 治理控制套件。要了解更多,请参阅“使用 OpenTelemetry 配置遥测导出”和“使用 OpenTelemetry 监控代理使用情况”。加入 GitHub 社区讨论。

核心信息

企业现在可以强制指定GitHub Copilot的OpenTelemetry数据流向,通过企业托管设置统一配置,无需开发者单独设置环境变量。

  • 企业现在可以强制指定GitHub Copilot的OpenTelemetry数据流向,通过企业托管设置统一配置,无需开发者单独设置环境变量。
  • 原贴提到:Organizations can now mandate where GitHub Copilot sends OpenTelemetry (
  • 来源:github.blog
试看内容

成为会员查看完整内容

你已经看到了这篇内容的前置整理,剩余深度部分仅对会员开放。

详细解读 信息差价值 参考来源
成为会员查看完整内容
上一篇 使用 GitHub Agentic Workflows 自动化跨仓库文档 下一篇 通过MDM在VS Code和CLI中部署受管的Copilot设置