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-py.md

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

Azure Monitor OpenTelemetry — Python SDK Quick Reference

Condensed from azure-monitor-opentelemetry-py. Full patterns (Flask/Django/FastAPI, custom metrics, sampling, live metrics) in the azure-monitor-opentelemetry-py plugin skill if installed.

Install

pip install azure-monitor-opentelemetry

Quick Start

from azure.monitor.opentelemetry import configure_azure_monitor
configure_azure_monitor()

Best Practices

  • Call configure_azure_monitor() early — before importing instrumented libraries
  • Use environment variables for connection string in production
  • Set cloud role name for multi-service Application Map
  • Enable sampling in high-traffic applications
  • Use structured logging for better log analytics queries
  • Add custom attributes to spans for better debugging
  • Use AAD authentication for production workloads

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