帮你配置 Copilot 的 OTel 指标采集与可视化
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "copilot-otel-metrics" 技能: 1. 下载 https://raw.githubusercontent.com/microsoft/hve-core/main/.github/skills/experimental/copilot-otel-metrics/SKILL.md 2. 保存为 ~/.claude/skills/copilot-otel-metrics/SKILL.md 3. 装好后重载技能,告诉我可以用了
请帮我为当前机器开启 GitHub Copilot 的 OpenTelemetry 导出,先给出需要修改的 VS Code 设置差异,确认后再生成可写入的配置内容。
输出将修改哪些设置,以及可直接写入的配置差异。
请为 Copilot telemetry 生成一个本地 Grafana 收集栈和仪表盘,并给出需要我手动运行的命令,不要替我执行。
生成本地后端、仪表盘文件和手动运行命令。
请为组织内 Copilot telemetry 生成 Azure collector、基础设施和仪表盘模板,并说明部署前需要确认的事项。
输出可部署的 Azure 模板与部署前说明。
开发者想先在自己电脑上验证 Copilot 的 OTel 导出是否开启,适合用本地设置模式。它会先展示设置差异,再在确认后写入配置。
当你已经开启导出,希望有一个本地后端接收并查询数据时,可以生成本地 Grafana 栈和仪表盘。该流程会写文件,但不会替你运行服务。
运维或平台团队需要把一组开发者的 Copilot 指标汇聚到 Azure 并做图表时,可生成 collector、基础设施和仪表盘模板。部署前会提示需要确认的内容。
该文档说明了 Copilot OpenTelemetry 指标的目标、工作模式和执行流程:可开启 VS Code 导出、本地生成 Grafana 栈与仪表盘、为组织生成分发配置,或为 Azure 采集生成模板。它强调先确认模式,再阅读对应参考,所有自动化都要先征得同意,并且要通过查询存储端验证数据是否真正落地。
Take the user from "I want Copilot telemetry" to telemetry they can query. Do the work for them where doing it is safe and reversible, and walk them through it where it is not.
Done means export is enabled in the settings file that actually resolves, a backend is receiving data, a dashboard exists for that backend, and the user has confirmed data landed by querying the store rather than by trusting an HTTP 200.
Modes are independent. A user may run one, several, or all. Local capture and organization capture are separate journeys, not stages of the same one.
| Mode | Use when the user wants to | Consent gate | Reference |
|---|---|---|---|
local-setup | Turn on Copilot's OTel export on this machine | Show the exact settings diff and write only after approval | references/local-setup.md |
local-stack | Get a backend on this machine to receive it | Write the files, then hand over the command; never run it | references/local-stack.md |
org-distribution | Push OTel settings to a fleet of developers | Nothing is applied; draft the configuration and explain it | references/org-distribution.md |
azure-capture | Collect a fleet's telemetry into Azure and chart it | Write the templates, then hand over the deploy commands | references/azure-capture.md |
references/verification.md is shared by every mode. Read it before telling anyone their telemetry works.
When the request names a goal rather than a mode, pick the mode that reaches the goal and say which one was picked. "Set up Copilot metrics" with no other context means local-setup followed by local-stack. Confirm before assuming the organization path, because it spends money and places a shared write credential on every workstation.
Raise this before anyone enables export, in every mode.
github.copilot.chat.otel.captureContent defaults to false and is documented as controlling whether input and output messages, system instructions, and tool definitions reach span attributes. A false value does not mean the store holds no prompt text. With that setting disabled, this stack observed six attributes populated in plaintext on spans:
…
它帮助你把 GitHub Copilot 的 OpenTelemetry 指标从“想采集”变成“能查询”。可覆盖本机导出、本地 Grafana 栈,以及组织级 Azure 采集方案。
不会。文档要求它写文件、生成模板,并把需要手动执行的命令交给你;本地栈也不会替你运行。
需要通过查询存储端来确认数据已落地,而不是只看 HTTP 200。共享的验证步骤在文档中单独说明。
为设计思维教练提供身份、流程与状态基线
帮助你写出更规范、可维护的 Python 代码
将设计思维成果整理为可交接的 RPI 输入与上下文
将回复压缩为极简风格,同时保留技术准确性
通过 Python CLI 自动读写 Mural 内容并管理小组件
从多视角审查代码变更,输出结构化问题与风险。
帮助开发者为 Copilot Chat 代理链路添加和维护 OpenTelemetry 监控埋点。
可用自然语言查询 Copilot Studio 监控与治理数据。
连接 AI 编码助手与 OpenTelemetry 生态,实时获取文档、示例与观测埋点建议。
用自然语言查询与分析 Azure DevOps 缺陷,并生成看板和报告导出。
用自然语言查询分析遥测数据,快速定位性能问题与系统根因。
提供社区共建的提示、代理与配置,帮助你更高效使用 GitHub Copilot。