azure-monitor-opentelemetry-exporter-py

Publish OpenTelemetry traces, metrics, and logs to Azure Monitor from Python apps.

2.9k|323|Updated Jan 16, 2026
One-click install
npx skills add https://github.com/microsoft/skills --skill azure-monitor-opentelemetry-exporter-py-microsoft
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: azure-monitor-opentelemetry-exporter-py
Source: https://github.com/microsoft/skills/tree/main/.github/plugins/azure-sdk-python/skills/azure-monitor-opentelemetry-exporter-py
Command: npx skills add https://github.com/microsoft/skills --skill azure-monitor-opentelemetry-exporter-py-microsoft

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Azure Monitor OpenTelemetry Exporter for Python enables Python applications to publish traces, metrics, and logs to Azure Monitor (Application Insights) using standard OpenTelemetry export pipelines, reducing integration effort and improving observability.

Core Features & Use Cases

  • Trace export via AzureMonitorTraceExporter for end-to-end tracing
  • Metric export via AzureMonitorMetricExporter to capture performance data
  • Log export via AzureMonitorLogExporter for structured logging
  • Environment-variable configuration using APPLICATIONINSIGHTS_CONNECTION_STRING or Azure credentials for secure access
  • Flexible deployment in quick-start, custom pipelines, and production telemetry scenarios

Quick Start

Install the package with pip and wire the exporters into your OpenTelemetry SDK to start sending telemetry to Application Insights.

Frequently Asked Questions about azure-monitor-opentelemetry-exporter-py

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I export OpenTelemetry traces from Python to Azure Monitor?

To export OpenTelemetry traces from Python to Azure Monitor, wire the AzureMonitorTraceExporter into your OpenTelemetry SDK pipeline. This sends end-to-end trace data directly to Application Insights for observability.

What is the Azure Monitor OpenTelemetry exporter used for in Python applications?

The Azure Monitor OpenTelemetry exporter is used to publish traces, metrics, and logs from Python applications to Azure Monitor. It integrates standard OpenTelemetry pipelines with Application Insights to improve application observability.

Can I configure Azure Monitor telemetry export using environment variables in Python?

Yes, you can configure Azure Monitor telemetry export using environment variables in Python. Set the APPLICATIONINSIGHTS_CONNECTION_STRING environment variable or use Azure credentials for secure access to Application Insights.

Does the Azure Monitor OpenTelemetry exporter support metrics and logs in Python?

Yes, the Azure Monitor OpenTelemetry exporter supports metrics and logs in Python. Use AzureMonitorMetricExporter for performance data and AzureMonitorLogExporter for structured logging alongside trace export.

What is the best way to send Python application logs to Application Insights?

The best way to send Python application logs to Application Insights is using the AzureMonitorLogExporter within an OpenTelemetry pipeline. This provides structured logging capabilities and reduces integration effort for production telemetry.

Do I need Azure credentials to use the OpenTelemetry exporter for Application Insights?

Azure credentials are optional for using the OpenTelemetry exporter for Application Insights. You can authenticate securely using Azure credentials or configure access via the APPLICATIONINSIGHTS_CONNECTION_STRING environment variable.