microsoft/azure-skills

appinsights-instrumentationmicrosoft/azure-skills / skills/appinsights-instrumentation/SKILL.md

按应用语言和托管方式选对遥测接入方法

  • SKILL.md 已保存
  • 中文用法已整理
  • 安装与运行未实测
先判断是否解决你的问题

appinsights-instrumentation 是什么?

appinsights-instrumentation 提供 Web 应用接入 Azure Application Insights 的方案、SDK 与遥测模式参考。它先看语言、框架和托管方式,再决定自动埋点或手动接入;实际往项目加入组件与改代码应由 azure-prepare 编排。

中文说明由本站依据来源整理;英文原文保留在页面下方。

同名项目,请核对仓库和目录

按客户端选择安装入口

怎么接入你的 Agent?

  1. 定位完整 Skill 目录

    打开本项目来源,核对 SKILL.md 及其引用的脚本和资料。

  2. 交给你正在用的 Agent

    在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。

  3. 确认识别,再做具体任务

    让 Agent 回报安装目录和识别到的名称 appinsights-instrumentation,然后按本页使用示例提供材料。

展开并复制给 Codex 的安装指令
发送给 Codex

安装并检查 appinsights-instrumentation

请在 Codex 的当前工作环境中安装并检查 appinsights-instrumentation 这个 Skill。

项目身份:microsoft/azure-skills / appinsights-instrumentation
来源:https://github.com/microsoft/azure-skills/blob/65922d293cba61a40d5edf61a9eb4b6b0e799788/skills/appinsights-instrumentation/SKILL.md
已定位的源文件:skills/appinsights-instrumentation/SKILL.md

1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。
准备输入,再按步骤执行

装好以后,具体怎么用?

准备哪些材料

  • 提供应用源代码及语言、框架、托管位置;绑定版本覆盖 Azure 上的 ASP.NET Core、Node.js、Python 与 Container Apps。托管位置必须明确,不能仅从语言推断。

会得到什么

  • 与应用环境匹配的埋点路线、所需 SDK/配置及实际修改任务的交接范围。

实际使用顺序

  1. 回读工程确认语言和框架,并询问实际部署位置,例如本机、App Service 代码/容器或 Container Apps。
  2. ASP.NET Core 位于 Azure App Service 时优先查看 auto 参考;其余按 aspnetcore、nodejs、python 或 Container Apps 指南选择 SDK 和配置方式。
  3. 若任务进入实际创建资源和改代码,交给 azure-prepare。已有 Bicep 时优先参考随附 appinsights.bicep;新增 App Insights 资源建议与应用放在有管理意义的资源组,再按语言资料接入。
使用示例

从一个具体任务开始

本站根据源文件编写的使用示例,未在本站实际运行。示例中的文件由你提供。

安装并识别 Skill 后发送

复制一个具体任务

教学任务:使用 appinsights-instrumentation,为我的 ASP.NET Core 应用比较 Application Insights 自动埋点和代码接入。我会说明它是否部署在 Azure App Service。先核对语言、框架与托管条件,给出适合路线和来源;本轮只做方案,不创建资源或修改工程。
预期结果

预期得到与真实托管环境一致的接入建议;本站未为应用加埋点或核验遥测数据。

使用前先看这些限制

使用条件与边界

  • 源文件开头明确把“实际加入 App Insights/修改项目”的任务交给 azure-prepare;本入口以指导和参考为职责。
  • 选择 SDK 或配置连接不等于端到端遥测已经到达 Azure,实际数据还需另行验证。
针对这个 Skill 的疑问

常见问题

为什么我说“给项目加监控”会转到 azure-prepare?

因为那已经是修改应用与资源的操作任务。此 Skill 提供埋点资料,azure-prepare 负责将组件接入工程的实际编排,二者职责不同。

需要核对时再展开原文

来源原文与资料状态

源文件
已保存 SKILL.md,抓取于 2026-11-17T10:53:18.217Z
中文使用说明
已针对下方源文件版本整理用途、用法和常见问题
安装与任务测试
本站未执行安装或任务测试
来源复核
本页中文用法已对照保存版本的完整 SKILL.md 阅读整理
展开 SKILL.md 原文、章节与历史收录资料

skills/appinsights-instrumentation/SKILL.md · 抓取时间 2026-11-17T10:53:18.217Z

以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。

抓取成功不代表已完成安装或任务测试。

来源 description(原文)

Guidance for instrumenting webapps with Azure Application Insights. Provides telemetry patterns, SDK setup, and configuration references. WHEN: how to instrument app, App Insights SDK, telemetry patterns, what is App Insights, Application Insights guidance, instrumentation examples, APM best practices.

查看源文件章节 / Source sections
  • 原文:AppInsights Instrumentation Guide
  • 原文:When to Use This Skill
  • 原文:When to Use azure-prepare Instead
  • 前置条件 / Prerequisites
  • 原文:Guidelines
  • 原文:Collect context information
  • 原文:Prefer auto-instrument if possible
  • 原文:Manually instrument
  • 原文:Create AppInsights resource
  • 原文:Modify application code
  • 原文:SDK Quick References
  • 原文:Platform-Specific Guides
原文:AppInsights Instrumentation Guide

This skill provides **guidance and reference material** for instrumenting webapps with Azure Application Insights. > **⛔ ADDING COMPONENTS?** > > If the user wants to **add App Insights to their app**, invoke **azure-prepare** instead. > This skill provides reference material—azure-prepare orchestrates the actual changes.

原文:When to Use This Skill

- User asks **how** to instrument (guidance, patterns, examples) - User needs SDK setup instructions - azure-prepare invokes this skill during research phase - User wants to understand App Insights concepts

原文:When to Use azure-prepare Instead

- User says "add telemetry to my app" - User says "add App Insights" - User wants to modify their project - Any request to change/add components

前置条件 / Prerequisites

The app in the workspace must be one of these kinds - An ASP.NET Core app hosted in Azure - An Azure Container App - A Node.js app hosted in Azure - A Python app hosted in Azure

原文:Collect context information

Find out the (programming language, application framework, hosting) tuple of the application the user is trying to add telemetry support in. This determines how the application can be instrumented. Read the source code to make an educated guess. Confirm with the user on anything you don't know. You must always ask the user where the application is hosted (e.g. on a personal computer, in an Azure App Service as code, in an Azure App Service as container, in an Azure Container App, etc.).

原文:Prefer auto-instrument if possible

If the app is a C# ASP.NET Core app hosted in Azure App Service, use [AUTO guide](references/auto.md) to help user auto-instrument the app.

文件 SHA256:8865590c029e53142edc56634914625fe23869baf7828a8181aed67e096a9e31

仓库许可证记录:未提供;skill-declaration-captured-not-interpreted,查看来源。

Skills.sh收录简介 · 2026-07-28

Guidance for instrumenting webapps with Azure Application Insights. Provides telemetry patterns, SDK setup, and configuration references. WHEN: how to…

查看历史简介来源

这份历史简介在采集时已截断;完整用途和触发条件需打开来源核对。

历史收录数据

Skill标识appinsights-instrumentation
来源仓库microsoft/azure-skills
榜单快照2026-07-28
榜单口径Skills.sh累计安装量
快照名次19
快照累计安装量481951

历史资料说明

  • 所保留的来源简介在采集时已截断;完整触发条件、依赖及排除项须阅读源文件,本站不补写缺失部分。
  • 安装量用于说明当时的收录次序,不是效果、可信度或当前可用性的证明。

此页用于识别项目与来源。安装入口可在该Skill的Skills.sh页面查看;当前目录是否仍存在、附带脚本和账户依赖尚需按具体版本确认。

返回 Skills 目录,按任务继续筛选 · MCP与Skills教程与资源