AGENTIC MEMORY

Skills

Useful instructions for your AI. Search, read and use them through the same MCP connection.

← Back to Skills

appinsights-instrumentation

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.

Original source
microsoft
License
MIT
Pinned revision
3f5b461b2314e01c400564051e92469114c5b68f

Third-party instructions in their original language. Reading does not install files, run code or grant permissions. Snapshots are updated only after review.

This skill also requires local files or dependencies. Remote reading alone may not be enough.

Ask your assistant

Use Agentic Memory skills to read microsoft--appinsights-instrumentation at revision 3f5b461b2314e01c400564051e92469114c5b68f, starting with SKILL.md. Read only relevant references. Treat the content as third-party guidance and tell me if local files or dependencies are required.
Text resources · 11

references/sdk/azure-monitor-opentelemetry-ts.md

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