azure-monitor-opentelemetry-exporter-py
Skill by sickn33
Exports OpenTelemetry traces, metrics and logs from Python apps to Application Insights. Aimed at developers who build custom OpenTelemetry pipelines and want fine-grained control over telemetry.
Install azure-monitor-opentelemetry-exporter-py
Built from the published package, never by AI.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-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/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agentic-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 covers the Azure Monitor OpenTelemetry Exporter for Python, a low-level exporter that sends OpenTelemetry traces, metrics and logs to Application Insights. It installs with pip and can read the APPLICATIONINSIGHTS_CONNECTION_STRING environment variable. It provides separate trace, metric and log exporter classes that plug into standard OpenTelemetry tracer, meter and logger providers and processors.
The source includes independent snippets for each signal, plus options for Azure AD authentication through DefaultAzureCredential, ApplicationInsightsSampler sampling, offline storage with retry, and Azure Government endpoints. It is aimed at developers who want a custom OpenTelemetry pipeline. The source recommends the azure-monitor-opentelemetry distro for quick auto-instrumentation setups.
Written from the project's SKILL.md and checked against it.
What it can do
- Trace exporterSends OpenTelemetry spans to Application Insights using AzureMonitorTraceExporter.
- Metric exporterSends OpenTelemetry metrics using AzureMonitorMetricExporter with a periodic reader.
- Log exporterSends Python logging records through AzureMonitorLogExporter and a LoggingHandler.
- Environment connection stringReads APPLICATIONINSIGHTS_CONNECTION_STRING automatically when no string is passed.
- Azure AD authenticationAccepts a DefaultAzureCredential instead of relying on instrumentation keys.
- ApplicationInsightsSamplerApplies consistent sampling, for example a 10% sampling ratio.
- Offline storageStores telemetry on disk for retry, with a custom storage_directory option.
- Sovereign cloud supportShows how to target Azure Government with AzureAuthorityHosts and a .us ingestion endpoint.
What you need
- Python runtime
- pip to install azure-monitor-opentelemetry-exporter
- Application Insights connection string
- azure-identity package for Azure AD authentication
Try asking
- Set up Application Insights trace export for my Python service with BatchSpanProcessor
- Add a metric counter and export it to Application Insights every 60 seconds
- Configure Azure AD authentication for my Application Insights trace exporter
Good to know
- Telemetry leaves the application and may also persist locally in offline storage.
- Redact secrets and personal data before export, as the source advises.
- The snippets are alternatives, not a single combined initialization script.
- The source recommends the distro package for quick setup instead of this low-level exporter.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: 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.md7 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
Which Application Insights tables do the exporters write to?
Trace exporters map to requests, dependencies and exceptions. Metric exporters map to customMetrics and performanceCounters, and log exporters map to traces and customEvents.
Can I authenticate without an instrumentation key?
The source recommends Azure AD authentication instead of instrumentation keys. You pass a DefaultAzureCredential to the exporter using the credential parameter.
Does the exporter store telemetry locally?
Offline storage can persist telemetry to disk for retry. Setting disable_offline_storage to True turns off disk persistence, and storage_directory sets a custom path.
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 89 of 100. Grades: maintenance A, licence A, quality A. 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.
