genkit icon indicating copy to clipboard operation
genkit copied to clipboard

[py] openai: add debug traces

Open timere-nemo opened this issue 1 year ago • 1 comments

timere-nemo avatar Mar 27 '25 23:03 timere-nemo

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.

cabljac avatar Jul 20 '26 20:07 cabljac