←新闻详情

Mastra Blog更新于 10月14日 12:13

Mastra Observability 推出 Thread View

Introducing Thread View for Mastra Observability

AI 导读

Mastra Studio 上线 Thread View,可在 Mastra Observability 中把 agent 的对话消息与产生它们的 trace 步骤并排查看,并支持打开完整 thread 按顺序浏览整段会话。已用 memory 并通过 MastraStorageExporter 持久化 trace 的 agent 无需额外配置即可使用;从零开始则需安装 observability、memory 和 storage。

正文

当前显示原文,中文全文译文尚未就绪。

Read agent traces in the context of the conversation that produced them.

Oct 12, 2026

3 min read

You can now read agent conversations alongside their traces in Mastra Studio. Open an agent trace to see its messages next to the steps that produced them. Then open the full thread to see the whole conversation in order.

When you debug an agent's behavior, you want to follow the story of what the user asked, what the agent decided, and which tools it called. The longer the agent runs, the harder it gets to find the right step. A single session can span dozens of messages. Thread view lets you inspect the trace in the context of the whole conversation.

Agent activity is usually traced as a tree of nested steps, model calls, and timestamps. Even though a tree view is precise, it's difficult to interpret. You have to reconstruct the conversation to understand what happened. With the thread view, it's the other way around.

You start from the messages and when something looks wrong, you dig into the steps behind it. It's easier to read, follow and navigate. Thread view also helps subject-matter experts who need to review an agent's behavior but didn't build the agent.

If your agent already uses memory and persists traces with MastraStorageExporter, no additional setup is required. Thread view works with its existing stored traces.

If you start from scratch, install Mastra observability, memory, and storage:

Thread view appears for agent traces that belong to a thread. Give your agent memory and persist traces with the MastraStorageExporter:

Call the agent with a thread and resource. Each call becomes one turn in the thread, and one trace in Studio:

Run mastra dev, open Traces in Studio, and select an agent run. The conversation for that turn appears beside the span tree.

Hover over any message and select Highlight spans to see the steps behind it with the rest of the tree faded.

Select Open full thread to see the whole conversation.

For more information and full configuration options, see:

Studio observability; Tracing overview; Memory overview

Patrycja Jenkner-Sar is a product marketer and content engineer at Mastra. Previously, she was a product marketer at neptune.ai, an experiment tracker for machine learning teams, and is focused on translating complex functionality into clear value for developers and technical audiences.

On this page

来源

Mastra Blog