Skip to content

Local observability and metrics

Genkit Dart automatically integrates with OpenTelemetry for tracing. When you run your application using the Genkit CLI tools or configured Dev UI, traces are automatically captured and displayed.

The Genkit Dart SDK uses the log package for standard logging. Logs are automatically correlated with the current trace context when using Zone-based execution from Genkit Actions.

To view traces locally:

  1. Start the Genkit Developer UI:
Terminal window
genkit start -- dart run
  1. Run your flow or action.
  2. Open the Developer UI (typically at http://localhost:4000) to view traces and metrics.

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.

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.