← ClaudeAtlas

azure-monitor-opentelemetry-exporter-pylisted

Azure Monitor OpenTelemetry Exporter for Python. Use for low-level OpenTelemetry export to Application Insights. Triggers: "azure-monitor-opentelemetry-exporter", "AzureMonitorTraceExporter", "AzureMonitorMetricExporter", "AzureMonitorLogExporter".
aiskillstore/marketplace · ★ 329 · DevOps & Infrastructure · score 82
Install: claude install-skill aiskillstore/marketplace
# Azure Monitor OpenTelemetry Exporter for Python Low-level exporter for sending OpenTelemetry traces, metrics, and logs to Application Insights. ## Installation ```bash pip install azure-monitor-opentelemetry-exporter ``` ## Environment Variables ```bash APPLICATIONINSIGHTS_CONNECTION_STRING=InstrumentationKey=xxx;IngestionEndpoint=https://xxx.in.applicationinsights.azure.com/ ``` ## When to Use | Scenario | Use | |----------|-----| | Quick setup, auto-instrumentation | `azure-monitor-opentelemetry` (distro) | | Custom OpenTelemetry pipeline | `azure-monitor-opentelemetry-exporter` (this) | | Fine-grained control over telemetry | `azure-monitor-opentelemetry-exporter` (this) | ## Trace Exporter ```python from opentelemetry import trace from opentelemetry.sdk.trace import TracerProvider from opentelemetry.sdk.trace.export import BatchSpanProcessor from azure.monitor.opentelemetry.exporter import AzureMonitorTraceExporter # Create exporter exporter = AzureMonitorTraceExporter( connection_string="InstrumentationKey=xxx;..." ) # Configure tracer provider trace.set_tracer_provider(TracerProvider()) trace.get_tracer_provider().add_span_processor( BatchSpanProcessor(exporter) ) # Use tracer tracer = trace.get_tracer(__name__) with tracer.start_as_current_span("my-span"): print("Hello, World!") ``` ## Metric Exporter ```python from opentelemetry import metrics from opentelemetry.sdk.metrics import MeterProvider from opentelemetry.sdk.metrics.export import P