azure-monitor-opentelemetry-exporter-py
Skill by lingxling
Guides Python developers in sending OpenTelemetry traces, metrics, and logs to Application Insights with the low-level Azure Monitor exporter. Covers exporters, connection strings, Azure AD auth, sampling, and offline storage.
Install azure-monitor-opentelemetry-exporter-py
Built from the published package, never by AI.
git clone --depth 1 https://github.com/lingxling/awesome-skills-cn /tmp/awesome-skills-cn && mkdir -p ~/.claude/skills && cp -r /tmp/awesome-skills-cn/antigravity-awesome-skills/skills/azure-monitor-opentelemetry-exporter-py ~/.claude/skills/azure-monitor-opentelemetry-exporter-pyRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install azure-monitor-opentelemetry-exporter-py in Claude Code
git clone --depth 1 https://github.com/lingxling/awesome-skills-cn /tmp/awesome-skills-cn && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/awesome-skills-cn/antigravity-awesome-skills/skills/azure-monitor-opentelemetry-exporter-py ~/.gemini/antigravity-cli/skills/azure-monitor-opentelemetry-exporter-pyAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install azure-monitor-opentelemetry-exporter-py in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill gives an AI assistant guidance for the Azure Monitor OpenTelemetry Exporter for Python. The exporter sends OpenTelemetry traces, metrics, and logs to Application Insights. It covers installing the azure-monitor-opentelemetry-exporter package, creating trace, metric, and log exporters, and reading the connection string from the APPLICATIONINSIGHTS_CONNECTION_STRING environment variable.
The source also covers Azure AD authentication through a credential object, ApplicationInsightsSampler for sampling, offline storage with retry, disabling offline storage, and sovereign clouds such as Azure Government. It is aimed at developers who build a custom OpenTelemetry pipeline or need fine-grained control over telemetry. The source recommends the azure-monitor-opentelemetry distro for quick setup with auto-instrumentation.
Written from the project's SKILL.md and checked against it.
What it can do
- Trace exporterSends OpenTelemetry spans to Application Insights using AzureMonitorTraceExporter with a BatchSpanProcessor.
- Metric exporterSends metrics through AzureMonitorMetricExporter with a PeriodicExportingMetricReader.
- Log exporterForwards Python logging records to Application Insights using AzureMonitorLogExporter.
- Azure AD authenticationPasses a DefaultAzureCredential object to the exporter instead of an instrumentation key.
- SamplingUses ApplicationInsightsSampler to apply consistent sampling, for example a 10% sampling ratio.
- Offline storageConfigures storage_directory and disable_offline_storage to control retry behaviour on failure.
- Sovereign cloud setupShows how to target Azure Government with AzureAuthorityHosts and a US ingestion endpoint.
What you need
- Python
- pip install of azure-monitor-opentelemetry-exporter
- An Application Insights connection string
Try asking
- Set up an Azure Monitor trace exporter in my Python app
- Send custom request counter metrics from Python to Application Insights
- Add Application Insights log export to my Python logging setup
Good to know
- The source describes a low-level exporter; for quick setup it points to the azure-monitor-opentelemetry distro.
- Offline storage retries are enabled by default; disabling it means no retry on failure.
- The source says output is not a substitute for environment-specific validation or expert review.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: antigravity-awesome-skills/skills/azure-monitor-opentelemetry-exporter-py/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md6 KB -
SKILL_CN.md6 KB
Alternatives to azure-monitor-opentelemetry-exporter-py
All alternatives →Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.
Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.
Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.
Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.
Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.
Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.
Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli
azure-monitor-opentelemetry-exporter-py: common questions
Should I use this exporter or the distro?
The source says the distro suits quick setup with auto-instrumentation, while this exporter suits custom OpenTelemetry pipelines and fine-grained control.
Where does the connection string come from?
The exporters read APPLICATIONINSIGHTS_CONNECTION_STRING automatically when no connection_string is passed, according to the source.
Does it support Azure AD authentication?
Yes. The source shows passing a DefaultAzureCredential object as the credential parameter to the exporter.
How do I install azure-monitor-opentelemetry-exporter-py?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is azure-monitor-opentelemetry-exporter-py free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is azure-monitor-opentelemetry-exporter-py safe to use?
It scores 75 of 100. Grades: maintenance B, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to azure-monitor-opentelemetry-exporter-py?
Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.
