ref: Use top-level trace_lifecycle and ignore_spans options in tests#6855
Merged
sentrivana merged 1 commit intoJul 21, 2026
Merged
Conversation
These options have been moved from `_experiments` to top-level SDK options. Update all test files to use the non-experimental form. Backwards-compat tests that verify `_experiments` still works are intentionally left as-is. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
sentrivana
marked this pull request as ready for review
July 21, 2026 08:44
trace_lifecycle and ignore_spans options in tests
alexander-alderman-webb
approved these changes
Jul 21, 2026
Contributor
Codecov Results 📊✅ 91914 passed | ⏭️ 6302 skipped | Total: 98216 | Pass Rate: 93.58% | Execution Time: 316m 54s 📊 Comparison with Base Branch
✨ No test changes detected All tests are passing successfully. ✅ Patch coverage is 100.00%. Project has 2476 uncovered lines. Coverage diff@@ Coverage Diff @@
## main #PR +/-##
==========================================
+ Coverage 89.69% 89.69% —%
==========================================
Files 193 193 —
Lines 24007 24007 —
Branches 8342 8342 —
==========================================
+ Hits 21530 21531 +1
- Misses 2477 2476 -1
- Partials 1386 1385 -1Generated by Codecov Action |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
_experiments={"trace_lifecycle": ...}with top-leveltrace_lifecycle=...across 77 test files_experiments={"ignore_spans": ...}with top-levelignore_spans=...test_client.pyandtest_span_streaming.pythat specifically verify_experimentsstill works and that top-level takes precedence