---
title: "Discussion on \"Designing Observability for Multi-Step AI Agent Workflows\" | Hashnode"
description: "Discussion on \"Designing Observability for Multi-Step AI Agent Workflows\". Learn how distributed tracing, OpenTelemetry, and context propagation help engineers debug multi-step AI agent workflows."
url: "https://hashnode.com/posts/designing-observability-for-multi-step-ai-agent-workflows/6b04739e2bdc5679f8c33b2a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Designing Observability for Multi-Step AI Agent Workflows](https://virginiamwegahashnodedev.hashnode.dev/designing-observability-for-multi-step-ai-agent-workflows?utm_source=hashnode&utm_medium=feed)

Learn how distributed tracing, OpenTelemetry, and context propagation help engineers debug multi-step AI agent workflows.

Nov 23 · 10 min read · virginiamwegahashnodedev.hashnode.dev  
Read the article

-   [#ai](https://hashnode.com/tag/ai)
-   [#llm](https://hashnode.com/tag/llm)
-   [#opentelemetry](https://hashnode.com/tag/opentelemetry)
-   [#observability](https://hashnode.com/tag/observability)
-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Virginia Mwega](https://hashnode.com/@veemwega)

@veemwega · Nairobi,Kenya

  
[View profile](https://hashnode.com/@veemwega)

AI Developer Experience | OpenAI SDKs, AI API Integrations & LLM Observability

I build and document AI API integrations, test failure paths, and explore LLM observability and evaluation. I write about what breaks when AI meets real applications, how I investigate it, and what makes integrations easier for developers to use and trust.

## Responses 2

Markdown supported · ⌘↵ to post

[Salman Parvez | ML Systems](https://hashnode.com/@ml-systems)

[Nov 24](https://hashnode.com/posts/designing-observability-for-multi-step-ai-agent-workflows/6b04739e2bdc5679f8c33b2a/comment/6b05701862e2e5be466ad71b)

The incorrect delivery status example makes the case well: five different places the error could have started, and the final response looks the same for all of them. Coming from construction, that's why a job keeps a daily log and not only a final inspection. When something is wrong at the end, the log tells you which trade and which day. I'd add one field to the spans: where each piece of information came from, and whether it was returned by a tool or inferred by the model. A trace tells you the order things happened in. It doesn't tell you which values anyone checked, and that's often the question the customer is really asking.

[Ahmet Özel](https://hashnode.com/@ahmetozel)

[Nov 23](https://hashnode.com/posts/designing-observability-for-multi-step-ai-agent-workflows/6b04739e2bdc5679f8c33b2a/comment/6b04bdaf5d6ca382781d807f)

Capturing tool selection, external API payloads, and handoffs inside one parent trace is the only way to answer why a customer got the wrong delivery status. When you only inspect the final LLM call, a stale response from the upstream order API looks indistinguishable from a hallucinated date.

Attaching structured span attributes for retry counts, truncated tool outputs, and context token counts also makes post-incident triage much faster: you can filter across thousands of runs for every trace where a tool errored and the agent kept going on partial state.
