appinsights-instrumentation · microsoft — скилл для Claude Code: как установить
Справочный скилл по настройке Azure Application Insights и сбору телеметрии в приложениях на Python, Node.js и ASP.NET Core в облаке Azure.
npx skills add microsoft/skills --skill appinsights-instrumentation -a claude-codeЧто делает appinsights-instrumentation
Скилл даёт справочные материалы и шаблоны для подключения Application Insights. Агент определяет язык, веб-фреймворк и среду размещения, после чего предлагает автоинструментирование или ручную правку кода. Для развёртывания ресурсов используются примеры Bicep и скрипты Azure CLI.
Внутри собраны ссылки на OpenTelemetry дистрибутивы для Python и TypeScript, экспортеры для Java, а также руководства по мониторингу Azure Container Apps. Скилл ограничивается сценариями для сервисов ASP.NET Core, Node.js, Python в Azure и Azure Container Apps.
Этот инструмент выдаёт только рекомендации и примеры кода. Непосредственное изменение файлов проекта он не выполняет: для автоматического редактирования конфигурации Microsoft рекомендует запускать субагент azure-prepare.
Какие задачи решает
- подобрать конфигурацию OpenTelemetry для сервиса в Azure
- подготовить Bicep-шаблон или скрипт Azure CLI для создания ресурса Application Insights
- настроить сбор метрик и трейсов для ASP.NET Core, Node.js или Python
- включить автоинструментирование для Azure App Service
Примеры запросов агенту
- Как подключить Application Insights к веб-приложению на FastAPI в Azure?
- Покажи Bicep-шаблон для добавления ресурса телеметрии в группу ресурсов проекта
- Как настроить сбор трейсов через OpenTelemetry в Node.js на Azure Container Apps?
Как установить appinsights-instrumentation
1Через Skills CLI (Vercel)
npx skills add microsoft/skills --skill appinsights-instrumentation -a claude-code2Вручную: положить файлы
~/.claude/skills/appinsights-instrumentation/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/appinsights-instrumentation/
Вручную: положить файлы
.agents/skills/appinsights-instrumentation/SKILL.mdДля всех проектов — ~/.agents/skills/
Вручную: положить файлы
.cursor/skills/appinsights-instrumentation/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install microsoft/skills appinsights-instrumentation2Вручную: положить файлы
.github/skills/appinsights-instrumentation/SKILL.mdКомандой платформы
gemini skills install https://github.com/microsoft/skills --path .github/plugins/azure-skills/skills/appinsights-instrumentationВручную: положить файлы
.devin/skills/appinsights-instrumentation/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о appinsights-instrumentation
Как установить appinsights-instrumentation в Claude Code?
Выполните команду npx skills add microsoft/skills --skill appinsights-instrumentation -a claude-code. Конфигурация сохранится по пути ~/.claude/skills/appinsights-instrumentation/SKILL.md.
В чём разница между appinsights-instrumentation и azure-prepare?
Этот скилл содержит только справочные данные, ссылки на SDK и примеры кода. Если требуется, чтобы агент сам отредактировал файлы проекта и внёс изменения, нужно использовать azure-prepare.
Какие среды и языки поддерживает скилл?
Инструкции рассчитаны на приложения ASP.NET Core, Node.js и Python, развёрнутые в Azure, а также на контейнеры в Azure Container Apps.
Исходный текст
SKILL.md · MIT
--- name: appinsights-instrumentation 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." license: MIT metadata: author: Microsoft version: "1.2.2" --- # 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 ## Guidelines ### 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. ### Manually instrument Manually instrument the app by creating the AppInsights resource and update the app's code. #### Create AppInsights resource Use one of the following options that fits the environment. - Add AppInsights to existing Bicep template. See [examples/appinsights.bicep](examples/appinsights.bicep) for what to add. This is the best option if there are existing Bicep template files in the workspace. - Use Azure CLI. See [scripts/appinsights.ps1](scripts/appinsights.ps1) for what Azure CLI command to execute to create the App Insights resource. No matter which option you choose, recommend the user to create the App Insights resource in a meaningful resource group that makes managing resources easier. A good candidate will be the same resource group that contains the resources for the hosted app in Azure. #### Modify application code - If the app is an ASP.NET Core app, see [ASPNETCORE guide](references/aspnetcore.md) for how to modify the C# code. - If the app is a Node.js app, see [NODEJS guide](references/nodejs.md) for how to modify the JavaScript/TypeScript code. - If the app is a Python app, see [PYTHON guide](references/python.md) for how to modify the Python code. ## SDK Quick References - **OpenTelemetry Distro**: [Python](references/sdk/azure-monitor-opentelemetry-py.md) | [TypeScript](references/sdk/azure-monitor-opentelemetry-ts.md) - **OpenTelemetry Exporter**: [Python](references/sdk/azure-monitor-opentelemetry-exporter-py.md) | [Java](references/sdk/azure-monitor-opentelemetry-exporter-java.md) ## Platform-Specific Guides - **Container Apps**: [Observability Guide](references/container-apps.md)
© Microsoft · MIT · microsoft/skills
Похожие скиллы
Все скиллы по теме «Облака: AWS, Azure, GCP» →Сначала — appinsights-instrumentation от других авторов.