# Azure monitor opentelemetry exporter py

> Azure monitor opentelemetry exporter py is an open-source agent skill for cloud and infrastructure. Sends OpenTelemetry traces, metrics and logs from Python apps to Application Insights. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/microsoft/skills/tree/main/.github/plugins/azure-sdk-python/skills/azure-monitor-opentelemetry-exporter-py
- **Repository:** https://github.com/microsoft/skills
- **GitHub stars:** 3,223
- **License:** MIT
- **Skill name:** azure-monitor-opentelemetry-exporter-py
- **Collection:** https://github.com/microsoft/skills
- **Categories:** [cloud and infrastructure](https://ai-powered.com/categories/cloud-and-infrastructure), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-18

## About

This skill guides an agent through the low-level Azure Monitor exporter package for Python, which ships trace, metric and log exporters that push OpenTelemetry data into Application Insights. It covers installation, the connection string environment variable, and wiring each exporter into a tracer provider, meter provider or Python logging handler with batch processing and periodic reading.

The material also covers authentication and lifecycle choices: it prefers Microsoft Entra credentials via DefaultAzureCredential, explains how AZURE_TOKEN_CREDENTIALS constrains the credential chain in production, and reminds the agent to flush and shut down providers explicitly at process exit. It adds configuration for an Application Insights sampler, offline storage for retries, and sovereign cloud endpoints such as Azure Government.

The skill expects a Python project and the azure-monitor-opentelemetry-exporter package, with an Application Insights resource and its connection string available. It points to the separate azure-monitor-opentelemetry distro for quick auto-instrumentation setups.

## When your agent uses it

> Azure Monitor OpenTelemetry Exporter for Python. Use for low-level OpenTelemetry export to Application Insights. Triggers: "azure-monitor-opentelemetry-exporter", "AzureMonitorTraceExporter", "AzureMonitorMetricExporter", "AzureMonitorLogExporter".

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/microsoft/skills/tree/HEAD/.github/plugins/azure-sdk-python/skills/azure-monitor-opentelemetry-exporter-py)
- [License: MIT](https://github.com/microsoft/skills/tree/HEAD/.github/plugins/azure-sdk-python/skills/azure-monitor-opentelemetry-exporter-py)

## Features

- **Trace exporter setup:** Shows how to attach AzureMonitorTraceExporter to a tracer provider through a batch span processor.
- **Metric exporter setup:** Covers wiring AzureMonitorMetricExporter into a meter provider with a periodic metric reader.
- **Log exporter setup:** Explains connecting AzureMonitorLogExporter to Python logging through an OpenTelemetry logging handler.
- **Entra ID authentication:** Describes credential options for ingestion, including production constraints on the credential chain.
- **Sampling and offline storage:** Covers the Application Insights sampler, retry storage location and disabling offline storage.
- **Sovereign cloud endpoints:** Shows how to point the exporter at Azure Government authority and ingestion endpoints.

## Good for

- Export custom OpenTelemetry spans from a Python service to Application Insights
- Send application request counters and metrics to Application Insights from Python
- Forward Python logging output to Application Insights as telemetry
- Configure consistent trace sampling for a Python service sending to Application Insights
- Set up Entra ID authenticated telemetry ingestion for a production Python app

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/azure-monitor-opentelemetry-exporter-py` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/microsoft/skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/azure-monitor-opentelemetry-exporter-py &&
cp -R "$tmp/.github/plugins/azure-sdk-python/skills/azure-monitor-opentelemetry-exporter-py" ~/.claude/skills/azure-monitor-opentelemetry-exporter-py &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/azure-monitor-opentelemetry-exporter-py` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/azure-monitor-opentelemetry-exporter-py` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/microsoft/skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/azure-monitor-opentelemetry-exporter-py &&
cp -R "$tmp/.github/plugins/azure-sdk-python/skills/azure-monitor-opentelemetry-exporter-py" ~/.agents/skills/azure-monitor-opentelemetry-exporter-py &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/azure-monitor-opentelemetry-exporter-py` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/azure-monitor-opentelemetry-exporter-py` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/microsoft/skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/azure-monitor-opentelemetry-exporter-py &&
cp -R "$tmp/.github/plugins/azure-sdk-python/skills/azure-monitor-opentelemetry-exporter-py" ~/.cursor/skills/azure-monitor-opentelemetry-exporter-py &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/azure-monitor-opentelemetry-exporter-py` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/microsoft/skills.git --path .github/plugins/azure-sdk-python/skills/azure-monitor-opentelemetry-exporter-py
```

Or copy the folder to `~/.gemini/skills/azure-monitor-opentelemetry-exporter-py` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/azure-monitor-opentelemetry-exporter-py`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/microsoft/skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/azure-monitor-opentelemetry-exporter-py &&
cp -R "$tmp/.github/plugins/azure-sdk-python/skills/azure-monitor-opentelemetry-exporter-py" ~/.copilot/skills/azure-monitor-opentelemetry-exporter-py &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/azure-monitor-opentelemetry-exporter-py` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/microsoft/skills.git
```

Then copy `skills/.github/plugins/azure-sdk-python/skills/azure-monitor-opentelemetry-exporter-py` into your agent's skills folder as `azure-monitor-opentelemetry-exporter-py`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What do I need to install before using this skill?

The skill uses the azure-monitor-opentelemetry-exporter package, installed with pip, plus an Application Insights connection string set in APPLICATIONINSIGHTS_CONNECTION_STRING.

### Which telemetry types can the exporters send?

Trace exporter covers spans, metric exporter covers metrics and log exporter covers logs, each mapping to specific Application Insights tables.

### When should I use the distro instead of this exporter?

The skill recommends the azure-monitor-opentelemetry distro for quick setup with auto-instrumentation, and reserves this exporter for custom pipelines or fine-grained control.

### Does the skill include scripts?

No, the skill has no scripts; it consists of instructions and reference documents.

### How do I install Azure monitor opentelemetry exporter py in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/azure-monitor-opentelemetry-exporter-py to use it in all your projects, or to .claude/skills/azure-monitor-opentelemetry-exporter-py in one project.

### Does Azure monitor opentelemetry exporter py run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Azure monitor opentelemetry exporter py?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Azure monitor opentelemetry exporter py?

The closest alternatives to Azure monitor opentelemetry exporter py are Azure monitor opentelemetry py, Azure monitor opentelemetry ts, Connect observability, Azure monitor opentelemetry exporter java and Azure monitor ingestion py.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Azure monitor opentelemetry py](https://ai-powered.com/skills/azure-monitor-opentelemetry-py): Azure monitor opentelemetry py is an open-source agent skill for cloud and infrastructure.
- [Azure monitor opentelemetry ts](https://ai-powered.com/skills/azure-monitor-opentelemetry-ts): Azure monitor opentelemetry ts is an open-source agent skill for cloud and infrastructure.
- [Connect observability](https://ai-powered.com/skills/connect-observability): Connect observability is an open-source agent skill for cloud and infrastructure.
- [Azure monitor opentelemetry exporter java](https://ai-powered.com/skills/azure-monitor-opentelemetry-exporter-java): Azure monitor opentelemetry exporter java is an open-source agent skill for cloud and infrastructure.
- [Azure monitor ingestion py](https://ai-powered.com/skills/azure-monitor-ingestion-py): Azure monitor ingestion py is an open-source agent skill for cloud and infrastructure.
- [Azure identity py](https://ai-powered.com/skills/azure-identity-py): Azure identity py is an open-source agent skill for cloud and infrastructure.
- [Azure monitor query py](https://ai-powered.com/skills/azure-monitor-query-py): Azure monitor query py is an open-source agent skill for cloud and infrastructure.
- [Azure appconfiguration py](https://ai-powered.com/skills/azure-appconfiguration-py): Azure appconfiguration py is an open-source agent skill for cloud and infrastructure.

---
Source: https://ai-powered.com/skills/azure-monitor-opentelemetry-exporter-py
