Sentry 是一个以开发者为中心的错误跟踪和性能监控平台。Sentry 提供了一个针对 Bun 的一流 SDK——Documentation Index
Fetch the complete documentation index at: https://bun.zhcndoc.com/llms.txt
Use this file to discover all available pages before exploring further.
@sentry/bun,它可以为你的 Bun 应用自动收集错误和性能数据。
还没有账号或 Sentry 项目?请前往 sentry.io,然后再返回本页。
要开始在 Bun 中使用 Sentry,首先安装 Sentry Bun SDK。
terminal
接着,在应用入口文件中使用你的 Sentry DSN 初始化 Sentry SDK。你可以在 Sentry 项目设置中找到你的 DSN。
你可以通过捕获一个测试错误来验证 Sentry 是否正常工作:
想了解更多关于 Sentry 及使用 Sentry Bun SDK 的信息,请查看 Sentry 文档。