Skip to content

Use t.Cleanup instead of defer in sdk/trace#7208

Merged
pellared merged 4 commits intoopen-telemetry:mainfrom
MrAlias:cleanup-sdk-trace-self-obs
Aug 18, 2025
Merged

Use t.Cleanup instead of defer in sdk/trace#7208
pellared merged 4 commits intoopen-telemetry:mainfrom
MrAlias:cleanup-sdk-trace-self-obs

Conversation

@MrAlias
Copy link
Copy Markdown
Contributor

@MrAlias MrAlias commented Aug 15, 2025

Let the testing system ensure proper cleanup ordering and execution. Do not wait to function return to run all the defers from the loops.

@codecov
Copy link
Copy Markdown

codecov Bot commented Aug 15, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.9%. Comparing base (3ca7996) to head (048aded).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##            main   #7208     +/-   ##
=======================================
- Coverage   83.0%   82.9%   -0.1%     
=======================================
  Files        265     265             
  Lines      24638   24638             
=======================================
- Hits       20450   20449      -1     
- Misses      3810    3811      +1     
  Partials     378     378             

see 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@MrAlias MrAlias added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Aug 15, 2025
@MrAlias MrAlias marked this pull request as ready for review August 15, 2025 19:09
@pellared pellared merged commit bb5b0a8 into open-telemetry:main Aug 18, 2025
37 checks passed
@MrAlias MrAlias added this to the v1.38.0 milestone Aug 20, 2025
@MrAlias MrAlias mentioned this pull request Aug 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Skip Changelog PRs that do not require a CHANGELOG.md entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants