Conversational AI (artificial intelligence) · 15 / 22

Telemetry Sequence Diagrams

Sequence diagrams of the telemetry flow: trace context propagation, export and privacy processing, tail sampling, business events, alerting and online evaluation.

What these show

The telemetry page lists what is collected and the queries that read it. These diagrams show how the data moves: how one trace identifier follows a turn across every component, how telemetry is cleaned and sampled on the way out, how business events become funnel numbers, and how an alert becomes a response. Solid arrows are requests or exports, dashed arrows are replies, amber arrows are blocked, dropped or failing paths and cyan arrows are agent decisions.

1 · Trace context follows the turn

Trace context propagation across one turn The edge starts the trace and the conversation service creates the root span. Every call to the AI gateway and the tool gateway carries the W3C traceparent header, so their spans join the same trace as the models and the booking system. Channel Conversation service AI gateway Model Tool gateway Booking system message start booking.turn, new trace id model call + traceparent call, child span reply and usage reply, cost in headers tool call + traceparent call, child span result result, audited end span, record metric reply One trace id from the edge to the booking system.
Trace context propagation across one turn

Without propagation a slow turn shows as a slow root span and nothing more. With it, the waterfall shows which of the model, the scan, the retrieval or the tool took the time.

2 · From the service to the stores

Telemetry export pipeline The service sends spans, metrics and logs to a collector over OTLP. A privacy processor drops or hashes sensitive attributes, a tail sampler keeps the traces that matter, and the result goes to Azure Monitor for operations and to the lakehouse for long-term analysis. Service Collector Privacy processor Tail sampler Azure Monitor Lakehouse OTLP spans, metrics, logs batch drop text, hash tail number sanitised spans wait 10 s, decide per trace kept traces kept traces, masked copy metrics, all index, ready to query Nothing sensitive leaves this step.
Telemetry export pipeline

The privacy processor runs before sampling and before export, so no downstream store ever holds a guest message, a tail number in clear or an email address.

3 · What the tail sampler keeps

Tail sampling decision The sampler holds the spans of each trace until the root span ends. A trace with an error or a guardrail block is always kept in full. Other traces are kept at a fixed percentage, and the rest are dropped. Service Collector Tail sampler Azure Monitor spans for turn A, normal hold spans for turn A no error, no block: sample 10% kept in 1 of 10 spans for turn B, airs.action = block hold spans for turn B policy keep-blocks matches keep the full trace spans for turn C, tool error hold spans for turn C policy keep-errors matches keep the full trace
Tail sampling decision

Metrics are not sampled, so rates and percentiles stay exact. Only the detailed traces are thinned, which is where the storage cost is.

4 · A business event becomes a funnel number

Business event to funnel query When a hold is placed the service writes a log record with a custom event name. It is exported through the collector into Log Analytics as an AppEvents row, and a funnel query counts sessions at each stage. Service Logging pipeline Collector Log Analytics Operator hold placed log record, event booking.hold export write AppEvents row funnel query (KQL) count sessions per stage quoted, held, confirmed, committed Same events feed the unconfirmed-commit check.
Business event to funnel query

The event carries the hashed session identifier and the airport, never the guest's words. That is enough to count stages and to follow one session through the other tables.

5 · From an alert to a response

Alert to incident response A scheduled alert query returns a commit with no confirmation. The alert rule fires an action group that pages the on-call engineer with a runbook link. The engineer acknowledges, switches the assistant to read-only mode and opens the session query from the dashboard. Log Analytics Alert rule Action group On-call engineer Safety switch Dashboard run query every 5 minutes rows returned: 1 threshold: more than 0 fire alert page with runbook link acknowledge read-only mode open session query trace for the session spans, events, outcome Runbook 1 · unconfirmed commit.
Alert to incident response

The alert carries the trace identifier and the runbook link, so the first minutes go to containing the problem, not to finding where to look.

6 · Traces become quality scores

Online evaluation from production traces A sample of production traces goes to an online evaluator, which asks a judge model to score groundedness and tool use. Scores are attached to the trace. Low scores go to a review queue, and a sustained drop raises an alert. Service Tracing tool Online evaluator Judge model Review queue Alerts trace of the turn sampled, 5% score groundedness, tools scores feedback on the trace score below threshold 7-day drop of 5 points A person reviews, adds the case to the dataset.
Online evaluation from production traces

This closes the loop with the evaluation plan: production behaviour becomes new test cases, and the release gate protects against the same failure next time.

Build this for your business

This example is a booking assistant for a ground-handling network, but the same pattern, a governed gateway, runtime security, grounded knowledge, deterministic commits and measured quality, fits any customer-facing assistant that takes actions. We can scope a pilot on your own systems.

Book a discovery call