appinsights-instrumentation

Guide Azure-hosted web app instrumentation with Application Insights SDK setup.

9|4|Updated Mar 21, 2022
One-click install
npx skills add https://github.com/davisdre/azure-resume --skill appinsights-instrumentation-davisdre
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: appinsights-instrumentation
Source: https://github.com/davisdre/azure-resume/tree/main/.agents/skills/appinsights-instrumentation
Command: npx skills add https://github.com/davisdre/azure-resume --skill appinsights-instrumentation-davisdre

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires azure-cli, application-insights, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This guide helps developers and operators understand how to add observability to Azure-hosted web applications by explaining telemetry patterns, SDK setup, resource creation, and configuration steps without making code changes directly.

Core Features & Use Cases

  • Auto-instrumentation guidance: When supported (ASP.NET Core or Node.js on App Service), shows how to use codeless auto-instrumentation and links to the Azure Portal blade.
  • Manual instrumentation patterns: Shows how to create an Application Insights resource (CLI or IaC), configure the APPLICATIONINSIGHTS_CONNECTION_STRING, and apply SDK changes for ASP.NET Core, Node.js, and Python.
  • SDK quick references: Condensed OpenTelemetry and exporter setup notes for TypeScript, Python, and Java, plus best practices for sampling, semantic conventions, and graceful shutdown.
  • Use case: Walk through instrumenting an ASP.NET Core or Node.js app, creating the resource in the same resource group, and configuring the connection string as an environment variable or in IaC.

Quick Start

Ask for instrumentation guidance by telling me the application's language, framework, and how it is hosted in Azure so I can recommend auto-instrumentation or the correct SDK and CLI commands.

Frequently Asked Questions about appinsights-instrumentation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure Application Insights instrumentation for an Azure-hosted web app?

To configure Application Insights, create an App Insights resource via Azure CLI, set the APPLICATIONINSIGHTS_CONNECTION_STRING environment variable, and apply the OpenTelemetry SDK setup for your ASP.NET Core, Node.js, or Python application.

When should I use auto-instrumentation instead of manual SDK setup for telemetry?

Use auto-instrumentation for ASP.NET Core or Node.js apps hosted on Azure App Service to enable codeless telemetry monitoring directly through the Azure Portal, bypassing manual SDK setup.

Does Application Insights work with OpenTelemetry SDKs for Python and Node.js?

Yes, Application Insights integrates with OpenTelemetry SDKs for Python and Node.js by configuring exporters, applying semantic conventions, and following best practices for sampling and graceful shutdown.

How do I create an Application Insights resource using Azure CLI?

Create an Application Insights resource using Azure CLI by deploying it within your application's resource group, then retrieve and configure the APPLICATIONINSIGHTS_CONNECTION_STRING as an environment variable or within your IaC templates.

What are the limitations of codeless auto-instrumentation for Azure apps?

Codeless auto-instrumentation is limited to ASP.NET Core and Node.js on Azure App Service; Python and other unsupported frameworks require manual OpenTelemetry SDK instrumentation to export telemetry.