orkes.graph.orkes_tracable#

orkes.graph.orkes_tracable(func)[source]#

A decorator that traces the input, output, and execution time of a function and records it in the current edge’s trace.

This decorator is intended to be used on functions that are part of an OrkesGraph. When a function decorated with orkes_tracable is executed during a traced graph run, its inputs, output, and execution time will be captured and added to the function_traces of the current edge trace.

If the function is executed outside of a traced graph run, it will behave as if it were not decorated.