创建

登录 ReadmeX

或

了解我们如何处理你的信息: 隐私政策

ReadmeX

陪你读懂 AI 动态

今天,想先了解什么?

选一份动态总结,或直接聊聊你的问题。

社区和关注动态总结只属于你自己。

资讯

Mastra 推出 Trace Queries 追踪查询功能

AI 总结

Mastra 在其博客发布 Trace Queries,可在 Mastra 平台和本地 Studio 中按时间、实体名称、智能体/工作流 ID、状态、评分和反馈等字段筛选、查找 trace。官方称同一套查询还能通过 CLI(需 [email protected] 及以上)、Mastra Client SDK(需 @mastra/[email protected] 及以上)和 HTTP 可观测性端点构造。每条查询时间范围最长 31 天,可组合最多 100 个条件,并可对 spans、scores、feedback 等 trace 内部信息设置最多 8 个过滤条件;功能适用于 Mastra 平台以及以 DuckDB、PostgreSQL 或 ClickHouse 作为可观测性存储的自托管项目,外部 trace 历史可通过 trace imports 导入。

深度见解

Mastra 称 Trace Queries 能触及嵌套在 trace 深处的底层信息,例如失败的工具调用、低评分或负面反馈,从而更详细地还原实际发生的情况。

You can now use trace queries to filter and find traces that match specific criteria. Mastra platform and Studio now let you filter by time range, primitive type, environment, status, score, feedback, and more. You (or your coding agent) can also construct the same queries using the CLI, Mastra Client SDK, and HTTP observability endpoints.

If your trace data lives outside of Mastra, you can bring your existing history over with trace imports.

You can also let your coding agent query for traces that errored out or failed, or slow model calls, and then fix them.

Your browser does not support the video tag.

Trace queries usually match fields on the trace itself: when it ran, which agent ran it, and whether it succeeded. The detail that explains a problem often sits deeper, in a failed tool call, a low score, or thumbs-down feedback. Trace queries can reach low-level information nested deep within a trace to provide a more detailed view of what really happened.

Query syntax looks like this:

#Mastra#Mastra Studio#Mastra Client SDK#Mastra CLI#DuckDB#PostgreSQL#ClickHouse

原文约 4 分钟读完阅读原文
群聊

还没有评论,来说说你的看法。