All skills
microsoft avatar

/appinsights-instrumentation

@b3c238e
by microsoftmicrosoft/skills3.1k stars
351

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.

Use this Skill: https://skilld.dev/gh/microsoft/skills/appinsights-instrumentation

This session only. Nothing lands on disk.

referencessdkazure-monitor-opentelemetry-ts.md

≈247 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Azure Monitor OpenTelemetry — TypeScript SDK Quick Reference

Condensed from azure-monitor-opentelemetry-ts. Full patterns (ESM loader, custom span processors, manual exporters, live metrics) in the azure-monitor-opentelemetry-ts plugin skill if installed.

Install

npm install @azure/monitor-opentelemetry

Quick Start

import { useAzureMonitor } from "@azure/monitor-opentelemetry";
useAzureMonitor({
  azureMonitorExporterOptions: {
    connectionString: process.env.APPLICATIONINSIGHTS_CONNECTION_STRING
  }
});

Best Practices

  • Call useAzureMonitor() first — before importing other modules
  • Use ESM loader for ESM projects — --import @azure/monitor-opentelemetry/loader
  • Enable offline storage for reliable telemetry in disconnected scenarios
  • Set sampling ratio for high-traffic applications
  • Add custom dimensions — use span processors for enrichment
  • Graceful shutdown — call shutdownAzureMonitor() to flush telemetry

Source: SKILL.md on GitHub

1 warning15d4 checks · Risk SAFE
  • Gen Agent Trust Hub15d

    This skill provides guidance and technical reference for instrumenting applications with Azure Application Insights. It follows industry best practices for configuration management, including secret handling, and uses official Microsoft libraries and tools. No security issues were detected.

  • Socket15d

    No alerts

  • Snyk15d

    Risk: LOW · No issues

  • Runlayer7mo

    12/12 files flagged

Signed by skilld at b3c238e. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 2 months ago
metadata
{
  "author": "Microsoft",
  "version": "1.2.1"
}

README badge

README badge for microsoft/skills/appinsights-instrumentation