核心可观测性快速开始

开始使用 trace

本指南将指引你把第一个 trace 上报到 Litefuse。如果你想先了解 trace 是什么、为什么重要,请阅读 可观测性概览。如果想了解 trace 在 Litefuse 中的结构以及后台是如何工作的,参考 核心概念

获取 API Key

  1. 创建 Litefuse 账号自托管 Litefuse
  2. 在项目设置中创建新的 API 凭证。

配置你的 AI agent

在编辑器的 agent 模式下使用 Litefuse Skill 来自动为应用接入埋点。它会根据你的具体应用选择最合适的接入方式。

什么是 Skill?这是给 AI 编码 agent 使用的可复用指令包。它能让你的 agent 开箱即用地拥有 Litefuse 相关的工作流和最佳实践。

Install the Litefuse Skill in your coding tool:

Litefuse has a Cursor Plugin that includes the skill automatically.

启动一个新的 agent 会话,然后让它给你的代码库接入埋点:

"Instrument this application with Litefuse tracing following best practices."

在 Litefuse 中查看你的 trace

运行应用之后,访问 Litefuse 界面查看你刚刚创建的 trace。 (Litefuse 中的 LangGraph trace 示例)

没看到预期的结果?

    下一步

    完成第一个 trace 的上报后,你可以为 trace 添加更多功能。我们建议从以下内容开始:

    已经清楚自己想做什么?看 Features 下面的具体主题指南。

    这个页面对你有帮助吗?