Skip to content
Skill

Azure monitor opentelemetry exporter py

Sends OpenTelemetry traces, metrics and logs from Python apps to Application Insights

Install
Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
3.2K
Last commit
1 day ago
License
MIT
Listing updated
1 day ago

Similar skills

About Azure monitor opentelemetry exporter py

Azure monitor opentelemetry exporter py is an open-source agent skill for cloud and infrastructure. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

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".

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 3 files (14 KB) on GitHub on 19 November 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

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

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.

Claude Code docs on skills

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

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.

Codex docs on skills

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

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.

Cursor docs on skills

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

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.

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

Azure monitor opentelemetry exporter py 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.

More from microsoft/skills

  1. Finds AKS scheduling, bin-packing, node scaling and storage cost inefficiencies

    • Open source
    • 3.2K GitHub stars
    • Cloud and infrastructure
  2. Diagnoses AKS GPU and KAITO incidents using read-only cluster evidence

    • Open source
    • 3.2K GitHub stars
    • Cloud and infrastructure
  3. Matches exact AKS error signatures to documented fixes, with citations and read-only

    • Open source
    • 3.2K GitHub stars
    • Cloud and infrastructure
  4. Guides bounded packet captures on AKS nodes and Azure network evidence collection

    • Open source
    • 3.2K GitHub stars
    • Cloud and infrastructure
  5. Investigates live AKS incidents read-only, tracing pod, node, network and quota failures

    • Open source
    • 3.2K GitHub stars
    • Cloud and infrastructure
  6. Builds Azure portal deep links to the blade that performs a given operation

    • Open source
    • 3.2K GitHub stars
    • Cloud and infrastructure