Traveler Duty of Care · 18 / 26

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 an item across every component, how telemetry is cleaned and sampled on the way out, how business events become the numbers the security team watches, and how an alert becomes a response. They cover the cloud software platform. The safety path has its own audit logging.

1 · Trace context follows the item

Trace context propagation across one report draft Intake starts the trace and the workflow creates the root span. Every call to the AI gateway and the travel gateway carries the W3C traceparent header, so their spans join the same trace as the model and the record. Intake Workflow AI gateway Model Travel gateway Compliance record incident facts start report.item, new trace id model call + traceparent call, child span draft and usage draft, cost in headers tool call + traceparent store draft, child span stored result, audited end span, record metric One trace id from intake to the record.
Trace context propagation across one report draft

Without propagation a slow item shows as a slow root span and nothing more. With it, the waterfall shows which step 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 and to the lakehouse. Service Collector Privacy processor Tail sampler Azure Monitor Lakehouse OTLP spans, metrics, logs batch drop text, names, exact locations; hash refs sanitised spans wait 10 s, decide per trace kept traces kept traces, masked copy metrics, all Nothing sensitive leaves this step.
Telemetry export pipeline

The privacy processor runs before sampling and before export, so no downstream store ever holds traveler detail or report text in clear.

3 · What the tail sampler keeps

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

Metrics are not sampled, so rates and percentiles stay exact. Only the detailed traces are thinned.

4 · A business event becomes a safety number

Business event to event-to-alert query When the first message of an incident is sent, the alert engine writes a log record with a custom event name and the elapsed time from the event. It is exported through the collector into Log Analytics as an AppEvents row, and a query summarises timing by region. Alert engine Logging pipeline Collector Log Analytics Security analyst first message sent log record, event alert.first_sent export write AppEvents row event to alert by region (KQL) summarise elapsed times by region median, p95, over target Feeds the quarterly response review.
Business event to event-to-alert query

The event carries the hashed incident identifier, the region and the elapsed time, never a traveler's name or location.

5 · From an alert to a response

Alert to incident response A scheduled alert query returns a risk feed that has been silent for twelve minutes. The alert rule fires an action group that pages the on-call engineer and the duty officer with a runbook link. They acknowledge, check the second feed and open the feed query from the dashboard. Log Analytics Alert rule Action group On-call engineer Duty officer Dashboard run query every 5 minutes rows returned: 1 threshold: more than 0 fire alert page with runbook link page duty officer acknowledge open feed query trace for the feed spans, events, last state Runbook 3 · feed failure.
Alert to incident response

The alert carries the trace identifier and the runbook link, so the first minutes go to restoring coverage.

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 fact coverage and grounding. 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 item sampled, 10% score fact coverage, grounding scores feedback on the trace score below threshold 7-day drop of 3 points A security lead 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 speculative, but the same pattern, minimal and consented data, deterministic rules for every safety duty, a governed gateway, runtime security, advisory-only AI (artificial intelligence) and accountable people, fits any service that looks after people. We can scope a pilot on your own systems.

Book a discovery call