Skip to content

feat(openai): Gate Responses API inputs behind data collection - #6964

Merged
ericapisani merged 7 commits into
masterfrom
py-2588-openai-responses-input-data
Jul 31, 2026
Merged

feat(openai): Gate Responses API inputs behind data collection#6964
ericapisani merged 7 commits into
masterfrom
py-2588-openai-responses-input-data

Conversation

@ericapisani

Copy link
Copy Markdown
Member

Respect data_collection.gen_ai.inputs when recording Responses API messages,
system instructions, and tool definitions, while preserving legacy
send_default_pii behavior.

Add coverage for enabled, disabled, default, and instruction-only inputs.

Refs PY-2588

Respect `data_collection.gen_ai.inputs` when recording Responses API messages,
system instructions, and tool definitions, while preserving legacy
`send_default_pii` behavior.

Add coverage for enabled, disabled, default, and instruction-only inputs.

Refs PY-2588
@linear-code

linear-code Bot commented Jul 30, 2026

Copy link
Copy Markdown

PY-2588

@github-actions

github-actions Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Codecov Results 📊

100026 passed | ⏭️ 6925 skipped | Total: 106951 | Pass Rate: 93.53% | Execution Time: 350m 52s

📊 Comparison with Base Branch

Metric Change
Total Tests 📈 +560
Passed Tests 📈 +393
Failed Tests 📉 -1
Skipped Tests 📈 +168

➖ Removed Tests (1)

View removed tests
  • test_continuous_profiler_auto_start_and_stop_sampled_span_streaming[experiment-thread]
    • File: tests.profiler.test_continuous_profiler

All tests are passing successfully.

✅ Patch coverage is 100.00%. Project has 2498 uncovered lines.
✅ Project coverage is 89.91%. Comparing base (base) to head (head).

Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
+ Coverage    89.88%    89.91%    +0.03%
==========================================
  Files          193       193         —
  Lines        24754     24754         —
  Branches      8860      8870       +10
==========================================
+ Hits         22249     22256        +7
- Misses        2505      2498        -7
- Partials      1416      1412        -4

Generated by Codecov Action

@ericapisani
ericapisani marked this pull request as ready for review July 30, 2026 18:11
@ericapisani
ericapisani requested a review from a team as a code owner July 30, 2026 18:11
Comment thread sentry_sdk/integrations/openai.py

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 3 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 5b8ea4d. Configure here.

Comment thread sentry_sdk/integrations/openai.py
Comment thread sentry_sdk/integrations/openai.py
Comment thread tests/integrations/openai/test_openai.py Outdated
@ericapisani
ericapisani merged commit 934bbd7 into master Jul 31, 2026
271 of 273 checks passed
@ericapisani
ericapisani deleted the py-2588-openai-responses-input-data branch July 31, 2026 12:44
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.

2 participants