genkit
genkit copied to clipboard
[py] openai: add debug traces
Doing a pass over older issues. This is covered, though implicitly rather than via plugin-specific code. The openai model handler is a normal Genkit Action, and every Action is auto-wrapped in a span by the core framework (run_in_new_span in py/packages/genkit/src/genkit/_core/_action.py:618), which records genkit:input/genkit:output and trace/span IDs to the Dev UI, same as every other plugin. So openai calls show up in traces out of the box. Happy to reopen if you were after openai-specific span attributes beyond the standard input/output. Closing as fixed.