Genkit for Node.js 1.0 is now available and production-ready!
Learn more
观察本地指标
bookmark_borderbookmark
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
Genkit 提供了一组强大的内置可观测性功能,包括由 OpenTelemetry 提供支持的跟踪和指标收集功能。对于本地可观测性(例如在开发阶段),Genkit 开发者界面提供了详细的轨迹查看和调试功能。为了实现生产环境可观测性,我们在 Firebase 控制台中通过 Firebase 插件提供 Genkit Monitoring。或者,您也可以将 OpenTelemetry 数据导出到您选择的可观测性工具。
跟踪和指标
Genkit 会自动收集轨迹和指标,而无需进行明确配置,这样您就可以在开发者界面中观察和调试 Genkit 代码的行为。Genkit 会存储这些轨迹,以便您通过详细的输入/输出日志记录和统计信息,逐步分析 Genkit 流程。在生产环境中,Genkit 可以将轨迹和指标导出到 Firebase Genkit Monitoring 以进行进一步分析。
记录和导出事件
Genkit 提供了一个集中式日志记录系统,您可以使用日志记录模块对其进行配置。使用 Genkit 提供的日志记录器的一个优势是,当 Firebase Telemetry 插件处于启用状态时,它会自动将日志导出到 Genkit Monitoring。
import { logger } from 'genkit/logging';
// Set the desired log level
logger.setLogLevel('debug');
生产环境可观测性
Genkit Monitoring 信息中心可帮助您了解 Genkit 功能的整体运行状况。它还适用于调试稳定性和内容问题,这些问题可能表明 LLM 问题和/或 Genkit 流程存在问题。如需了解详情,请参阅入门指南。
为您推荐
关于这些推荐文档页面
这些推荐文档页面可以帮助您找到要查找的内容。它们可能基于您当前正在查看的页面以及您的账号保存的页面。 网络与应用活动记录.
了解详情Firebase gives you the tools and infrastructure you need to build better mobile and web apps, improve app quality, and grow your business.
更新于 Apr 28, 2021
Firebase gives you the tools and infrastructure you need to build better mobile and web apps, improve app quality, and grow your business.
更新于 Apr 28, 2021
Code-first framework for orchestrating, deploying, and monitoring generative AI workflows.
更新于 Feb 13, 2025
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-02-14。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-02-14。"],[],[]]