Mastra 平台上线 Trace 导入功能
Mastra 发布 Trace 导入功能,用户可将第三方可观测性平台中已有的 trace 导入 Mastra 平台,首批支持 Langfuse,官方称后续将增加更多来源。导入的 trace 会与 Mastra 自身生成的 trace 并列显示在平台及已部署的 Studio 中,便于调试、筛选和对比。Mastra 表示导入会保留 span 类型(如 agent_run、model_generation、tool_call)、父子结构、时间戳、输入输出、用量与成本,但评分、反馈、数据集、附件和日志不在导入范围内。该功能需要 [email protected] 与 @mastra/[email protected] 及以上版本,并支持试运行预览、按时间窗口导入和断点续传。
Mastra 称,使用 trace 导入后,团队在切换到 Mastra 时可以把原有 trace 历史一并带过来,而不必把数据留在原服务商处。
You can now import existing traces from third-party observability providers using trace imports.
Imported traces show up alongside your Mastra-generated traces in Mastra platform (and deployed Studio), letting you debug, filter and compare across your trace history without switching between tools.
We're starting today with Langfuse support, with more providers to follow.
Switching observability providers often means losing valuable trace history, with existing data left behind on the previous provider. By using trace imports, you can switch to Mastra and bring your trace history with you.
Your browser does not support the video tag.
Before trace imports, Mastra observability data could only be exported to third-party providers. Now you can pull it back with the details preserved: span types like agent_run, model_generation and tool_call stay intact, along with parent-child structure, timestamps, inputs, outputs, usage and cost. Only trace observations are imported; scores, feedback, datasets, attachments and logs are omitted.