Sign in
Explore
Skills · SkillDevOps & CloudCloud platformsMonitoring & observabilityReviewed

azure-monitor-opentelemetry-py

Azure Monitor OpenTelemetry distro for Python: one-line Application Insights setup with auto-instrumentation.

Kind
Skill
Works with
Claude Code
Languages
Python
Source
microsoft/skills @ 2130750147de
Path
.github/plugins/azure-sdk-python/skills/azure-monitor-opentelemetry-py/SKILL.md
Jobs
Implementation
Topics
Cloud platforms, Monitoring & observability

Credit

Made by
microsoft
Original
github.com/microsoft/skills/blob/2130750147dee0311215099ddf36…
License
MIT

Listed by Skill Manifest; not made by us.

InstallCopy it from the source repository, or sign in and let the assistant adapt it for your project.
Install factsScanned 3 Nov 2026
Adds
  • .claude/skills/azure-monitor-opentelemetry-py/ (the skill folder)
  • 2 file(s) the skill refers to
  • 2 other files in the folder: references/capabilities.md, references/non-hero-scenarios.md
Runs scripts
Yes
  • shell block in the text
Uses the network
Yes
  • downloads Python packages
  • HTTP client calls (references/non-hero-scenarios.md)
Needs secrets
Yes
  • AZURE_TOKEN_CREDENTIALS
Reads environment variables
  • APPLICATIONINSIGHTS_CONNECTION_STRING
  • AZURE_TOKEN_CREDENTIALS
Source revision
2130750147de
Licence
MIT
Last activity
26 Nov 2026
Source changed after the scan
Yes
  • Last push 26 Nov 2026, scanned 3 Nov 2026; read it again before you rely on this scan
Review
Reviewed

Found by a static scan of the stored text; nothing is run. “None found” is not a guarantee, so read what you install before you run it.

# Azure Monitor OpenTelemetry Distro for Python

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

## Installation

```bash
pip install azure-monitor-opentelemetry
```

## Environment Variables

```bash
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
```

## Authentication & Lifecycle

> **🔑 Two rules apply to every code sample below:**
>
> 1. **Prefer `DefaultAzureCredential` for ingestion auth when supported.** `APPLICATIONINSIGHTS_CONNECTION_STRING` identifies the target Application Insights resource, and `credential=DefaultAzureCredential(...)` provides Microsoft Entra authentication.
>    - Local dev: `DefaultAzureCredential` works as-is.
>    - Production: set `AZURE_TOKEN_CREDENTIALS=prod` (or `AZURE_TOKEN_CREDENTIALS=<specific_credential>`) to constrain the credential chain to production-safe credentials.
…