You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
OpenAI chat.completions.parse and Anthropic messages.parse produce no span #7891
Call client.chat.completions.parse(model=..., messages=..., response_format=MyModel) (sync or async), or Anthropic client.messages.parse(...).
Expected Result
A gen_ai.chat span with token usage, like create().
Actual Result
No span, so structured-output calls are invisible. parse() calls self._post directly instead of create(), and only create and stream are patched (openai.py#L138-L149, anthropic.py#L245-L274). responses.parse is the same gap (#5401). Checked on openai 1.109.1 to 3.24.0 and anthropic 0.125.0 to 1.11.0.
I'd like to open a PR to fix this, with tests, if that's okay with you.
Hi! I'd be interested in working on this issue. I noticed that the parse() methods bypass the existing instrumentation, so I was considering extending span coverage for these calls and adding regression tests.
I saw the earlier comment about the team planning to address these gaps. Is this still available for an external contribution, or is it already being handled internally?
Activity
linear-code commentedon Oct 6, 2026
PY-2935
alexander-alderman-webb commentedon Oct 9, 2026
Thanks for reporting!
We'll be tackling these gaps in the coming months.
hpriyankaa commentedon Nov 18, 2026
Hi! I'd be interested in working on this issue. I noticed that the
parse()methods bypass the existing instrumentation, so I was considering extending span coverage for these calls and adding regression tests.I saw the earlier comment about the team planning to address these gaps. Is this still available for an external contribution, or is it already being handled internally?
Thanks!