appinsights-instrumentation

Instrument ASP.NET Core and Node.js apps to emit telemetry to Azure App Insights.

3|Updated Jul 25, 2025
One-click install
npx skills add https://github.com/tfsugjp/csharptemplate --skill appinsights-instrumentation-tfsugjp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: appinsights-instrumentation
Source: https://github.com/tfsugjp/csharptemplate/tree/main/.github/skills/appinsights-instrumentation
Command: npx skills add https://github.com/tfsugjp/csharptemplate --skill appinsights-instrumentation-tfsugjp

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Instrumenting a web application to collect telemetry and health data for visibility, troubleshooting, and performance optimization.

Core Features & Use Cases

  • Auto-instrumentation path for ASP.NET Core or Node.js apps hosted in Azure App Service.
  • Manual instrumentation guidance to add App Insights connection strings, configure OpenTelemetry, and deploy telemetry-enabled code.
  • Use case: you want to monitor request rates, latency, and exceptions across a web app to detect outages earlier.

Quick Start

Configure your app to send telemetry to your App Insights resource by enabling the appropriate instrumentation path for your hosting stack.

Frequently Asked Questions about appinsights-instrumentation

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

FAQPage Schema
How do I instrument a Node.js app to send telemetry to Azure App Insights?

To instrument an ASP.NET Core app for Azure App Insights, you can use auto-instrumentation if hosted in Azure App Service or manually add the OpenTelemetry library and connection string environment variable. This enables performance monitoring and outage detection.

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

To instrument an ASP.NET Core app for Azure App Insights, you can use auto-instrumentation if hosted in Azure App Service or manually add the OpenTelemetry library and connection string environment variable. This enables performance monitoring and outage detection.

Does Azure App Insights auto-instrumentation work for containerized web apps?

Azure App Insights auto-instrumentation applies to ASP.NET Core and Node.js apps hosted in Azure App Service. For containerized apps, manual instrumentation is needed to configure OpenTelemetry and set the connection string environment variable for telemetry emission.

What's the best way to monitor request rates and latency in Azure web apps?

The best way to monitor request rates and latency in Azure web apps is by instrumenting them to emit telemetry data to Azure App Insights. This enables visibility into performance metrics to detect outages earlier and diagnose issues efficiently.

Do I need OpenTelemetry to configure App Insights telemetry for my web app?

You need OpenTelemetry for manual instrumentation to send telemetry to Azure App Insights. The process involves adding the OpenTelemetry library to your code and setting the App Insights connection string as an environment variable for your hosting stack.

Why is my App Insights telemetry not collecting data from my Azure App Service?

App Insights telemetry may not collect data if the OpenTelemetry library is not properly added or the App Insights connection string environment variable is not set. Ensure your ASP.NET Core or Node.js app is correctly configured for your hosting stack.