MSBA-311 · Lesson 10 of 12 · 20 min

Observability for multi-agent systems

▶ Video coming soon A video version of this lesson is on the way.

During the second week of the pilot, Dolores Ventimiglia, one of the commercial lines account executives, reported that a submission brief had taken eleven minutes to arrive instead of the usual four. She asked a reasonable question: why? Answering it took Bram, Yusra, Ngozika and Pascal most of a morning. The Copilot Studio conversation showed when the request was made; the Foundry workflow's run history showed when each step started and finished; the BrokerDesk API logs showed a burst of slow responses; Northmark's server was outside Quillfield's view entirely. Lining up the four sets of timestamps by hand, they eventually found the cause: the risk review agent had called the BrokerDesk MCP server's list inspection reports tool forty times for a client with many locations, one call per report, and each call had queued behind the others.

"We need to be able to answer that question in two minutes, not two hours," Bram said. This lesson is about observability: designing a multi-agent system so that you can see what it did, why, how long it took, what it cost and whether it was any good.

Logs, metrics and traces

Observability rests on three kinds of telemetry.

Logs are records of individual events: a tool was called, an error occurred, an approval was given. They are detailed and good for investigating a specific case.

Metrics are numbers aggregated over time: requests per minute, the share of tool calls that failed, average latency, credits consumed per day. They are good for dashboards and alerts.

Traces follow a single request through every component it touches. A trace is made of spans, each representing one unit of work (an agent turn, a model call, a tool call, an API request), with a start time, a duration, attributes and a parent span. Together the spans form a tree that shows exactly what happened, in what order, and where the time went.

For multi-agent systems, traces are the most valuable of the three, because the questions people ask (why was this slow, why was this wrong, why did this cost so much) are almost always about one request crossing many components.

A trace waterfall for one submission. Top bar: Submission Desk conversation turn. Below it: workflow run. Nested bars: intake agent with a model call; a parallel pair of bars for appetite agent (three carrier MCP calls) and risk review agent (forty short list inspection report calls stacked in sequence, highlighted); brief writer; approval wait. Time axis in minutes along the bottom.
A trace of the eleven-minute submission. The forty sequential tool calls in the risk review stand out at once.

Propagating trace context

A trace only works if every component knows which trace it belongs to. This is done by trace context propagation: when one component calls another, it passes the trace identifier and the identifier of the current span, and the receiver creates its spans as children. On HTTP, the W3C Trace Context standard defines a traceparent header for this, and OpenTelemetry, the open-source observability framework supported by Azure Monitor, Foundry and most cloud platforms, implements it.

Agent protocols are catching up. The July 2026 MCP specification allows OpenTelemetry trace context to be carried in the metadata of each request, so a trace can continue from an agent into an MCP server. For A2A and for platform-to-platform calls, check what each platform supports; where nothing automatic exists, put the trace identifier in your hand-off contract, as the Submission Desk's application record does, and log it on both sides so that traces can at least be joined by searching.

The case identifier from lesson 7 and the trace identifier do different jobs. The case identifier ties together everything that ever happened to one submission, across days and many traces. The trace identifier ties together one request's journey through the system. Good telemetry carries both.

Telemetry on Microsoft's platforms

Microsoft Foundry records traces of agent runs, including model calls and tool calls, using OpenTelemetry, and can send them to Application Insights in Azure Monitor. At Build 2026, Microsoft announced tracing and evaluation for hosted agents, to reach general availability later in June 2026. Foundry also provides evaluation: built-in and custom evaluators that score agent outputs for qualities such as task adherence, groundedness or tool call accuracy, run on test sets before release or continuously on samples of production traffic.

Copilot Studio provides analytics within the product, showing sessions, outcomes, topic and tool usage, and satisfaction, and it can send telemetry to Application Insights, which Quillfield configured for each environment earlier in the year. Conversation transcripts are available to authorized people for review, subject to the environment's settings.

Microsoft Agent 365 gives a cross-platform view: its registry lists agents with owners and usage, its map shows how agents relate to each other and to the tools and data they use, and it brings in signals from Microsoft Defender, Microsoft Entra and Microsoft Purview, so that security and compliance teams see agents alongside users and devices. Purview's audit capabilities record interactions with Copilot and agents for compliance purposes.

No single tool joins all of these automatically. Quillfield's approach was to make Application Insights the place where operational traces meet: Foundry and Copilot Studio both send telemetry there, the BrokerDesk MCP server and gateway were instrumented with OpenTelemetry by Pascal's team, and every component logs the case and trace identifiers. Agent 365 remains the place for inventory and governance, and Purview for compliance records.

Finding the eleven minutes

Once the BrokerDesk MCP server was instrumented, the slow submission's trace showed the pattern immediately. A query in Application Insights then showed how often it happened.

A KQL query over Application Insights dependency telemetry: traces in which the risk review agent called the inspection report tool more than ten times. Role and operation names are Quillfield's own conventions.
dependencies
| where timestamp > ago(7d)
| where cloud_RoleName == "submission-review-agent"
| where name == "tools/call list_inspection_reports"
| summarize calls = count(), p95_ms = percentile(duration, 95)
    by operation_Id
| where calls > 10
| order by calls desc

Twelve submissions in a week had more than ten calls. The fix had two parts: Pascal added a parameter to the tool so that one call could return all reports for a client, up to a limit, and Ngozika's team changed the agent's instructions to request all reports at once. Median time to brief for multi-location clients fell from about nine minutes to about four.

What to measure

A multi-agent system needs measures at two levels: for each component, and for the system as a whole. Quillfield's Submission Desk dashboard has five groups.

GroupExamplesWhy it matters
OutcomeSubmissions completed, share approved without edits, carrier acceptance of submissionsWhether the system achieves its business purpose
LatencyTime to brief end to end; time per agent and per tool, at the median and 95th percentileWhere time goes; whether users wait too long
ReliabilityTool error rates, fallback rates, circuit breaker openings, stalled casesWhether dependencies are healthy and failures are contained
QualityRouting accuracy, evaluation scores on sampled traffic, human edit and override ratesWhether the agents are right, not just fast
CostCredits and tokens per submission, by agent and in totalWhether the system stays within budget (lesson 11)

Two principles guided the choice. First, measure the outcome the business cares about, not just technical health: a system can have perfect uptime and still produce briefs carriers reject. Second, every measure has an owner and an action: if the fallback rate for a carrier rises above five percent in a day, an alert goes to the integration team; if the edit rate on briefs rises for two weeks running, Yusra's team reviews a sample.

Evaluating quality continuously

Testing before release catches problems you thought of. Production brings problems you did not. Continuous evaluation runs evaluators on a sample of real traffic, for example 50 submissions a week, and tracks the scores over time. For the Submission Desk, Ngozika's team set up three evaluators: whether each risk finding is supported by the cited inspection report (groundedness), whether the brief covers every location in the application record (completeness, added after the incident in lesson 7) and whether the appetite results match the carriers' live responses (accuracy).

At Build 2026, Microsoft also announced new approaches to evaluation and runtime guardrails for agents, including rubric-based evaluation and a specification for agent controls. These were new at the time of writing; check their status and fit before building on them. Whatever tools you use, the principle is the same: quality must be measured in production, not assumed from test results.

Human feedback is part of evaluation too. The approval step's edits and rejections, described in lesson 8, are labeled examples of where the agents went wrong. Quillfield feeds a sample of them into the evaluation sets every month, so that the tests keep up with the problems real users find.

Seeing decisions, not just events

Ordinary application telemetry records what happened. Agent telemetry also needs to record what was *decided*: which sub-agent the planner chose and what it passed, which tools an agent considered, which knowledge passages it retrieved, and which output the aggregation step accepted. Without that, a trace can show that the appetite agent ran for twelve seconds, but not that it chose the wrong carrier list.

Both platforms record much of this. Copilot Studio's activity view in testing, and its transcripts in production, show the plan the orchestrator followed and the inputs it gave each tool or agent. Foundry traces include model calls and tool calls with their arguments. Quillfield added one thing of its own: each workflow step writes a short decision record to the Submission Case, naming the step, the version of the agent that ran it, the inputs by reference and the output's source labels from lesson 9. Decision records are small, contain no full prompts, and are kept as long as the case. When a carrier asks two years later why a submission described a building as sprinklered, the decision record shows which agent said so, from which document, and which account executive approved it.

Service level objectives

Dashboards are only useful if people know what good looks like. A service level objective (SLO) states a target for a measure over a period, such as "95 percent of briefs arrive within eight minutes, measured weekly". Quillfield agreed four SLOs for the Submission Desk with the commercial lines manager: time to brief, the share of submissions with all carriers answered live or from a recent cache, completeness of the location list, and availability of the front door during business hours.

SLOs make trade-offs explicit. When Ngozika's team proposed a larger model for the risk review, which would add about a minute to each brief, the time-to-brief SLO showed there was room for it; a proposal that would have added five minutes would have needed the business to agree to a new target first. SLOs also tell the team when to stop optimizing: once a measure is comfortably inside its target, effort is better spent elsewhere.

Telemetry across organizations

When the Submission Desk sends a task to Northmark's agent over A2A, half of the trace is in Northmark's systems. Quillfield cannot see it, and should not expect to. What it can do is agree with Northmark which identifiers both sides log (the A2A task identifier and Quillfield's trace identifier, passed in the message metadata), and how quickly each side will help investigate a problem. The carrier schedule described in lesson 4 now includes a short telemetry clause: both sides keep task logs, both can look up a task by either identifier, and a named contact on each side handles investigations within one business day.

Telemetry and privacy

Traces of agent systems can contain sensitive content: the prompts sent to models, the documents retrieved, the answers produced. Logging everything makes debugging easy and creates a large store of confidential client data in a monitoring system that was never designed to hold it.

Wendell set three rules. Content capture (full prompts and responses) is off by default in production traces, and switched on only for a defined sample, with access limited to the people who need it. Identifiers and metadata, such as which tool was called, how long it took and whether it succeeded, are always captured. And telemetry retention follows a written schedule, shorter for content than for metadata. Foundry and Application Insights both provide settings to control what content is recorded; the design decision is to use them deliberately.

Investigating incidents

When something goes wrong, observability turns an argument into an investigation. Quillfield's runbook for a reported problem with a submission starts with the case identifier, finds every trace for that case, reads the spans in order, and checks the hand-off records at each boundary. In most cases this identifies which component behaved unexpectedly within a few minutes. The same records support security investigations: if an injected instruction were suspected, the security team could see exactly what content each agent read, what it produced and which tools it called.

Worked problem

Designing alerts for the Submission Desk

Hamish asks which three alerts would catch the problems seen so far in the pilot: the carrier outage, the slow multi-location briefs and the missing location.

Show solution
  1. Carrier outage: alert when any carrier's fallback rate exceeds five percent over an hour, or its circuit breaker opens.
  2. Slow briefs: alert when the 95th percentile of time to brief exceeds ten minutes over a day, with a link to the slowest traces.
  3. Missing location: alert when the completeness evaluator's weekly score falls below 98 percent, or when the location count check flags any mismatch.
  4. Route each alert to the owner who can act: integration team, agent owners or Ngozika's team.

Answer: Three alerts, each tied to a measure, a threshold and an owner. Together they cover a dependency failure, a performance regression and a quality regression.

Common mistakes

  • MistakeRelying on each platform's separate logs to explain multi-agent behavior.

    InsteadPropagate trace context and bring telemetry together in one place.

  • MistakeMeasuring only uptime and latency.

    InsteadMeasure outcomes, quality and cost as well.

  • MistakeCapturing full prompts and responses for every request in production.

    InsteadCapture content only for a controlled sample, with restricted access and defined retention.

  • MistakeCreating alerts with no owner.

    InsteadGive every alert an owner and an expected action.

  • MistakeEvaluating only before release.

    InsteadRun continuous evaluation on samples of production traffic and refresh test sets from real feedback.

Summary and key terms

  • Logs, metrics and traces together give observability; traces are the most valuable for multi-agent systems.
  • Trace context propagation, supported by OpenTelemetry and now by MCP request metadata, links spans across components.
  • Foundry traces and evaluates agents, Copilot Studio provides analytics and Application Insights telemetry, and Agent 365 gives a cross-platform registry and map.
  • Measure outcome, latency, reliability, quality and cost, with an owner and action for each.
  • Control content capture in telemetry to protect client data.
Trace
The record of one request's path through every component it touched.
Span
One unit of work within a trace, with timing, attributes and a parent.
Trace context propagation
Passing trace and span identifiers between components so their spans join one trace.
OpenTelemetry
An open-source framework and standard for collecting traces, metrics and logs.
Continuous evaluation
Scoring samples of production traffic with evaluators over time.
Content capture
Recording full prompts and responses in telemetry.

Practice problems

Work each problem on paper first, then reveal the answer to check.

  1. What caused the eleven-minute brief?

    Show answer

    The risk review agent called the inspection report tool forty times in sequence, once per report.

  2. How does the July 2026 MCP specification help tracing?

    Show answer

    It allows OpenTelemetry trace context in request metadata, so traces continue into MCP servers.

  3. What is the difference between a case identifier and a trace identifier?

    Show answer

    The case identifier links everything about one submission over time; the trace identifier links one request's path through the system.

Lesson quiz · 5 questions

Score 60% or more to complete this lesson.

Take the quiz