QuestionQ66

VerifiedConnect to and consume Azure services

You are reviewing the Python tracing configuration for an application that must send distributed traces to Azure Monitor.

The following code configures OpenTelemetry tracing:

Question Image

For each of the following statements, select Yes if the statement is true. Otherwise, select No.

Yes or No
StatementsYesNo
The code configures the tracer provider before any spans are created.
The configuration exports traces synchronously.
The configuration enables export to Azure Monitor.
Explanation

The global tracer provider is configured before the tracer is obtained and before any span is created. BatchSpanProcessor performs batched background export rather than synchronous export. Registering AzureMonitorTraceExporter with that processor sends OpenTelemetry tracing data to Azure Monitor.

Learn more

Community Discussion

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