Skip to content

feat(openai): Set gen_ai.tool.definitions attribute for the Completions API - #6950

Draft
alexander-alderman-webb wants to merge 10 commits into
masterfrom
webb/openai-completions-gen-ai-tool-definitions
Draft

feat(openai): Set gen_ai.tool.definitions attribute for the Completions API#6950
alexander-alderman-webb wants to merge 10 commits into
masterfrom
webb/openai-completions-gen-ai-tool-definitions

Conversation

@alexander-alderman-webb

@alexander-alderman-webb alexander-alderman-webb commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Description

Set the attribute according to the schema defined in

https://github.com/getsentry/rfcs/blob/main/text/0153-decoupling-sentrys-generative-ai-conventions-from-open-telemetry.md

Issues

Reminders

Comment thread sentry_sdk/ai/_openai_completions_api.py
Comment thread sentry_sdk/ai/_openai_completions_api.py
@github-actions

github-actions Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Codecov Results 📊

99103 passed | ⏭️ 6733 skipped | Total: 105836 | Pass Rate: 93.64% | Execution Time: 347m 9s

📊 Comparison with Base Branch

Metric Change
Total Tests 📈 +180
Passed Tests 📈 +225
Failed Tests 📉 -1
Skipped Tests 📉 -44

All tests are passing successfully.

✅ Patch coverage is 87.88%. Project has 2503 uncovered lines.
❌ Project coverage is 89.86%. Comparing base (base) to head (head).

Files with missing lines (1)
File Patch % Lines
sentry_sdk/ai/_openai_completions_api.py 86.21% ⚠️ 4 Missing and 9 partials
Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
- Coverage    89.87%    89.86%    -0.01%
==========================================
  Files          193       193         —
  Lines        24656     24686       +30
  Branches      8786      8808       +22
==========================================
+ Hits         22158     22183       +25
- Misses        2498      2503        +5
- Partials      1400      1411       +11

Generated by Codecov Action

Comment thread sentry_sdk/ai/_openai_completions_api.py
Comment thread sentry_sdk/integrations/openai.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant