← Code Exchange

Analyze Workflow History with Gemini

Leverages Google Gemini to analyze Temporal Workflow Histories. Supports JSON format downloaded from the Temporal UX and protobuf format that have been exported to an external bucket.


Reads Temporal Workflow Histories looking for errors and provides guidance on how to remedy them, leveraging Google Gemini 2.0 Flash model.

Identifies these types of issues:

Failing Activities

  • Activity Retries > 5
  • Failures due to business reasons

Failing Workflow Tasks

  • Bugs in Code
  • Non-Determinism Errors
  • Potential Deadlocks Detected

Here is example output (JSON):

Analyze Workflow History with Gemini JSON screenshot

And response from the analyzer: Analyze Workflow History with Gemini result


Language

Python
💖 Community geminiaihistory

About the Author

Rick Ross Photo

Rick Ross

Solutions Architect

Temporal