appinsights-instrumentation

Instrument ASP.NET Core and Node.js apps to send telemetry to Azure Application Insights.

242|189|Updated Oct 28, 2024
One-click install
npx skills add https://github.com/microsoft/GitHub-Copilot-for-Azure --skill appinsights-instrumentation-microsoft
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: appinsights-instrumentation
Source: https://github.com/microsoft/GitHub-Copilot-for-Azure/tree/main/plugin/skills/appinsights-instrumentation
Command: npx skills add https://github.com/microsoft/GitHub-Copilot-for-Azure --skill appinsights-instrumentation-microsoft

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps developers instrument web applications to send telemetry data to Azure Application Insights, enabling observability and monitoring of application health and performance.

Core Features & Use Cases

  • Auto-instrumentation for ASP.NET Core and Node.js apps hosted in Azure App Service.
  • Manual instrumentation using the Azure OpenTelemetry libraries for ASP.NET Core, Node.js, and Python.
  • Configuration & deployment: configure the App Insights connection string via environment variables or IaC templates.
  • Use Case: monitor application performance, detect errors, and trace requests across microservices to improve reliability.

Quick Start

Use the platform-specific guides in references (aspnetcore.md, nodejs.md, python.md) to install the client libraries, configure the App Insights connection string via environment variables, and deploy the instrumented application.

Frequently Asked Questions about appinsights-instrumentation

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

FAQPage Schema
How do I instrument an ASP.NET Core app to send telemetry to Azure Application Insights?

To instrument ASP.NET Core apps for Azure Application Insights telemetry, install the appropriate client libraries and configure the APPINSIGHTS_CONNECTION_STRING via environment variables or IaC templates to enable auto-instrumentation or manual workflows.

Can I use OpenTelemetry libraries for manual Application Insights instrumentation in Node.js?

Yes, manual Application Insights instrumentation in Node.js uses Azure OpenTelemetry libraries, requiring you to install the client libraries and configure the connection string to send telemetry data for observability.

Does Azure App Service support auto-instrumentation for Node.js and ASP.NET Core apps?

Azure App Service supports auto-instrumentation for both Node.js and ASP.NET Core apps, automatically sending telemetry to Azure Application Insights once the connection string is configured.

What's the best way to configure the App Insights connection string for web app deployment?

The best way to configure the App Insights connection string is by setting the APPINSIGHTS_CONNECTION_STRING environment variable or using IaC templates during deployment to ensure telemetry data routes correctly.

Why do I need observability and telemetry instrumentation for microservices?

Telemetry instrumentation provides observability for microservices by monitoring application performance, detecting errors, and tracing requests across services to improve reliability and application health.

Does Application Insights instrumentation work with Python apps?

Application Insights instrumentation works with Python apps through manual instrumentation using Azure OpenTelemetry libraries, allowing you to send telemetry data for observability and monitoring.