Skip to content

feat(openai-agents): Add data_collection controls for invoke_agent spans - #7124

Open
ericapisani wants to merge 2 commits into
py-2588-openai-agents-execute-toolfrom
py-2588-openai-agents-invoke-agent
Open

feat(openai-agents): Add data_collection controls for invoke_agent spans#7124
ericapisani wants to merge 2 commits into
py-2588-openai-agents-execute-toolfrom
py-2588-openai-agents-invoke-agent

Conversation

@ericapisani

@ericapisani ericapisani commented Aug 6, 2026

Copy link
Copy Markdown
Member

Allow SDK users to control whether agent instructions/inputs and outputs
are recorded on invoke_agent spans via _experiments.data_collection.gen_ai.inputs
and .outputs, with send_default_pii as a fallback for backwards compatibility.

When data_collection config is present, it takes precedence over send_default_pii,
giving users granular control over AI telemetry collection.

Refs PY-2588

Allow SDK users to control whether agent instructions/inputs and outputs
are recorded on invoke_agent spans via `_experiments.data_collection.gen_ai.inputs`
and `.outputs`, with `send_default_pii` as a fallback for backwards compatibility.

When data_collection config is present, it takes precedence over send_default_pii,
giving users granular control over AI telemetry collection.

Refs PY-2588
@linear-code

linear-code Bot commented Aug 6, 2026

Copy link
Copy Markdown

PY-2588

@ericapisani
ericapisani marked this pull request as ready for review August 7, 2026 14:09
@ericapisani
ericapisani requested a review from a team as a code owner August 7, 2026 14:09
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Codecov Results 📊

100399 passed | ⏭️ 6485 skipped | Total: 106884 | Pass Rate: 93.93% | Execution Time: 362m 12s

📊 Comparison with Base Branch

Metric Change
Total Tests 📈 +1140
Passed Tests 📈 +1134
Failed Tests
Skipped Tests 📈 +6

All tests are passing successfully.

✅ Patch coverage is 100.00%. Project has 2507 uncovered lines.
❌ Project coverage is 89.98%. Comparing base (base) to head (head).

Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
- Coverage    89.99%    89.98%    -0.01%
==========================================
  Files          193       193         —
  Lines        24991     25017       +26
  Branches      9012      9034       +22
==========================================
+ Hits         22490     22510       +20
- Misses        2501      2507        +6
- Partials      1437      1436        -1

Generated by Codecov Action

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