Genkit provides a robust set of built-in observability features, including
tracing and metrics collection powered by
OpenTelemetry. For local observability, such as
during the development phase, the Genkit Developer UI provides detailed trace
viewing and debugging capabilities. For production observability, we provide
Genkit Monitoring in the Firebase console via the Firebase plugin.
Alternatively, you can export your OpenTelemetry data to the observability
tooling of your choice.
Tracing & Metrics
Genkit automatically collects traces and metrics without requiring explicit configuration, allowing you to observe and debug your Genkit code's behavior
in the Developer UI. Genkit stores these traces, enabling you to analyze
your Genkit flows step-by-step with detailed input/output logging and
statistics. In production, Genkit can export traces and metrics to Firebase
Genkit Monitoring for further analysis.
Log and export events
Genkit provides a centralized logging system that you can configure using
the logging module. One advantage of using the Genkit-provided logger is that
it automatically exports logs to Genkit Monitoring when the Firebase
Telemetry plugin is enabled.
import{logger}from'genkit/logging';// Set the desired log levellogger.setLogLevel('debug');
Production Observability
The
Genkit Monitoring
dashboard helps you understand the overall health of your Genkit features. It
is also useful for debugging stability and content issues that may
indicate problems with your LLM prompts and/or Genkit Flows. See the
Getting Started guide for
more details.
Was this helpful?
Recommended for you
About these recommendations
These recommendations help you find the content you are looking for. They may be based on the page you’re currently viewing and your account’s saved web and app activity.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-14 UTC."],[],[]]