feat(openai): Set gen_ai.tool.definitions attribute for the Responses API - #6951
Conversation
gen_ai.tool.definitions attribute for the Responses API
Codecov Results 📊✅ 99632 passed | ❌ 2 failed | ⏭️ 6757 skipped | Total: 106391 | Pass Rate: 93.65% | Execution Time: 357m 50s 📊 Comparison with Base Branch
➕ New Tests (2)View new tests
➖ Removed Tests (1)View removed tests
❌ Failed Tests
|
| File | Patch % | Lines |
|---|---|---|
| sentry_sdk/ai/_openai_responses_api.py | 90.00% |
Coverage diff
@@ Coverage Diff @@
## main #PR +/-##
==========================================
+ Coverage 89.88% 89.88% —%
==========================================
Files 193 193 —
Lines 24686 24749 +63
Branches 8814 8860 +46
==========================================
+ Hits 22188 22245 +57
- Misses 2498 2504 +6
- Partials 1400 1415 +15Generated by Codecov Action
…ebb/openai-responses-gen-ai-tool-definitions
…ebb/openai-responses-gen-ai-tool-definitions
…ebb/openai-responses-gen-ai-tool-definitions
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 53ae691. Configure here.

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
uv run ruff.feat:,fix:,ref:,meta:)