Agent skill · software engineering · aiskillstore
azure-monitor-opentelemetry-py
Azure Monitor OpenTelemetry Distro for Python. Use for one-line Application Insights setup with auto-instrumentation.
Why this skill is useful
Provides specific commands and configurations for integrating Azure Monitor with Python applications using OpenTelemetry, which the AI wouldn't reliably generate on its own.
What it needs
Requires azure-monitor-opentelemetry installed locally. About 2k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.
What this skill does
Azure Monitor OpenTelemetry Distro for Python One-line setup for Application Insights with OpenTelemetry auto-instrumentation. Installation Environment Variables Quick Start Explicit Configuration With Flask With Django With FastAPI Custom Traces Custom Metrics Custom Logs Sampling Cloud Role Name Set cloud role name for Application Map: Disable Specific Instrumentations Enable Live Metrics Azure AD Authentication Auto-Instrumentations Included Library Telemetry Type --------- --------------- Flask Traces Django Traces FastAPI Traces Requests Traces urllib3 Traces httpx Traces aiohttp Traces psycopg2 Traces pymysql Traces pymongo Traces redis Traces Configuration Options Parameter Description Default ----------- ------------- --------- connectionstring Application Insights connection string From env var credential Azure credential for AAD auth None samplingratio Sampling rate (0.0 to 1.0) 1.0 resource OpenTelemetry Resource Auto-detected instrumentations List of instrumentations to enable All enablelivemetrics Enable Live Metrics stream False Best Practices 1. Call configureazuremonitor() early — Before importing instrumented libraries 2. Use environment variables for connection string in production 3. Set cloud role name for multi-service applications 4. Enable sampling in high-traffic applications 5. Use structured logging for better log analytics queries 6. Add custom attributes to spans for better debugging 7. Use AAD authentication for production workloads When to Use This skill is applicable to execute the workflow or actions described in the overview. Limitations Use this skill only when the task clearly matches the scope described above. Do not treat the output as a substitute for environment-specific validation, testing, or expert review. Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills aiskillstore/azure-monitor-opentelemetry-py