Skills Azure Monitor OpenTelemetry Exporter for Python
📊

Azure Monitor OpenTelemetry Exporter for Python

Safe

Export OpenTelemetry Data to Azure Application Insights

This skill provides Claude Code with knowledge about the Azure Monitor OpenTelemetry Exporter for Python, enabling developers to send custom telemetry pipelines directly to Application Insights for monitoring and analysis.

Supports: Claude Codex Code(CC)
📊 70 Adequate
1

Download the skill ZIP

2

Upload in Claude

Go to Settings → Capabilities → Skills → Upload skill

3

Toggle on and start using

Test it

Using "Azure Monitor OpenTelemetry Exporter for Python". How do I export traces to Application Insights?

Expected outcome:

To export traces to Application Insights, create an AzureMonitorTraceExporter and add it to a BatchSpanProcessor. Set up the tracer provider with your exporter, then use the tracer to create spans that will be automatically sent to Azure.

Using "Azure Monitor OpenTelemetry Exporter for Python". What is the difference between this exporter and the distro?

Expected outcome:

The azure-monitor-opentelemetry-exporter provides low-level exporter classes for custom pipelines. The azure-monitor-opentelemetry distro includes auto-instrumentation and pre-configured defaults. Use the exporter when you need fine-grained control over your telemetry pipeline.

Security Audit

Safe
v1 • 2/25/2026

This is a documentation-only skill containing only a SKILL.md file with usage examples for the azure-monitor-opentelemetry-exporter Python package. No executable code was scanned. Static analysis found 0 files, 0 lines of code, and 0 security issues. The skill provides legitimate Azure monitoring documentation with no malicious patterns.

0
Files scanned
0
Lines analyzed
0
findings
1
Total audits
No security issues found
Audited by: claude

Quality Score

38
Architecture
100
Maintainability
87
Content
32
Community
100
Security
83
Spec Compliance

What You Can Build

Custom OpenTelemetry Pipeline

Build a custom telemetry pipeline with specific processors, samplers, and exporters for advanced monitoring scenarios

Azure-Native Monitoring

Integrate Python applications with Azure Application Insights for enterprise monitoring and alerting

Multi-Service Tracing

Implement consistent distributed tracing across microservices with Application Insights sampling

Try These Prompts

Basic Trace Export
How do I set up AzureMonitorTraceExporter to send OpenTelemetry traces to Application Insights?
Custom Metrics Setup
Show me how to configure AzureMonitorMetricExporter with a custom meter provider and export interval.
Logging Integration
How do I integrate Python logging with AzureMonitorLogExporter using BatchLogRecordProcessor?
AAD Authentication
Configure AzureMonitorTraceExporter to use Azure AD authentication with DefaultAzureCredential instead of instrumentation keys.

Best Practices

  • Use BatchSpanProcessor instead of SimpleSpanProcessor in production for better performance
  • Enable ApplicationInsightsSampler for consistent sampling across distributed services
  • Use Azure AD authentication (DefaultAzureCredential) instead of instrumentation keys for better security

Avoid

  • Do not use SimpleSpanProcessor in production as it blocks on each export
  • Avoid hardcoding instrumentation keys in source code - use environment variables
  • Do not disable offline storage without understanding the impact on telemetry reliability

Frequently Asked Questions

What is the difference between azure-monitor-opentelemetry and azure-monitor-opentelemetry-exporter?
The distro package (azure-monitor-opentelemetry) provides auto-instrumentation and ready-to-use defaults. The exporter package gives you low-level control over the OpenTelemetry pipeline.
How do I authenticate without instrumentation keys?
Use Azure AD authentication by passing a credential like DefaultAzureCredential to the exporter constructor instead of a connection string.
Can I use this with sovereign clouds?
Yes, configure the credential with the appropriate authority (AzureGovernment or AzureChina) and use the sovereign cloud connection string.
What happens if Application Insights is unavailable?
With offline storage enabled (default), telemetry is stored locally and retried when connection is restored. Disable offline storage if you don't need this reliability.
How do I sample traces consistently?
Use ApplicationInsightsSampler which coordinates sampling decisions across service calls to ensure complete traces.
Does this support all telemetry types?
Yes, there are separate exporters for traces (AzureMonitorTraceExporter), metrics (AzureMonitorMetricExporter), and logs (AzureMonitorLogExporter).