QuestionQ64

VerifiedSecure, monitor, troubleshoot Azure solutions

A Python API running in ACA must send distributed traces to Azure Monitor. The API creates spans, but no traces appear in Azure Monitor. Configure the OpenTelemetry SDK pipeline so that traces are exported to Azure Monitor.

Each action may be used once, more than once, or not at all.

Drag & Drop
Register a global tracer provider.
Export traces to Azure Monitor.
Connect the exporter to the provider.
Generate spans in the application code.
Explanation

The Python Azure Monitor OpenTelemetry trace setup creates and registers a TracerProvider, creates an AzureMonitorTraceExporter, wraps it in a span processor that is added to the provider, and creates application spans through tracer.start_as_current_span(). Log sampling does not connect or export trace spans.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!