azure-monitor-opentelemetry-py

Installation
SKILL.md

Azure Monitor OpenTelemetry Distro for Python

One-line setup for Application Insights with OpenTelemetry auto-instrumentation.

Installation

pip install azure-monitor-opentelemetry

Environment Variables

APPLICATIONINSIGHTS_CONNECTION_STRING=InstrumentationKey=xxx;IngestionEndpoint=https://xxx.in.applicationinsights.azure.com/  # Required for all auth methods
AZURE_TOKEN_CREDENTIALS=prod # Required only if DefaultAzureCredential is used in production

🔑 Auth & lifecycle: This distro is configured with a connection string by design, but for AAD-authenticated ingestion (where supported) prefer DefaultAzureCredential via the credential= parameter — see the Azure AD Authentication section. Any Azure SDK clients you create alongside the exporter should be wrapped in with/async with blocks (and async credentials from azure.identity.aio likewise).

Installs
1
GitHub Stars
2.6K
First Seen
Feb 4, 2026
azure-monitor-opentelemetry-py — microsoft/skills