azure-monitor-opentelemetry-exporter-py
Installation
SKILL.md
Azure Monitor OpenTelemetry Exporter for Python
Low-level exporter for sending OpenTelemetry traces, metrics, and logs to Application Insights.
Installation
pip install azure-monitor-opentelemetry-exporter
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: These exporters take a connection string by design, but for AAD-authenticated ingestion (where supported) prefer
DefaultAzureCredentialvia thecredential=parameter — see the Azure AD Authentication section. Any Azure SDK clients you create alongside the exporter should be wrapped inwith/async withblocks (and async credentials fromazure.identity.aiolikewise).