Skip to content

Allow immediate gc of ContextStorageNodes after ::detach()#1585

Merged
brettmc merged 1 commit intoopen-telemetry:mainfrom
Nevay:fix/context-storage-gc-cycles
May 7, 2025
Merged

Allow immediate gc of ContextStorageNodes after ::detach()#1585
brettmc merged 1 commit intoopen-telemetry:mainfrom
Nevay:fix/context-storage-gc-cycles

Conversation

@Nevay
Copy link
Copy Markdown
Contributor

@Nevay Nevay commented May 7, 2025

Use dummy object instead of self references as detached-marker to avoid relying on gc cycle collection.

Resolves #1584.

Use dummy object instead of self references as detached-marker to avoid relying on gc cycle collection.

Resolves open-telemetry#1584.
@Nevay Nevay requested a review from a team as a code owner May 7, 2025 16:16
@codecov
Copy link
Copy Markdown

codecov Bot commented May 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.89%. Comparing base (4851a4e) to head (9843720).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##               main    #1585      +/-   ##
============================================
+ Coverage     70.80%   70.89%   +0.09%     
  Complexity     2768     2768              
============================================
  Files           407      407              
  Lines          8357     8359       +2     
============================================
+ Hits           5917     5926       +9     
+ Misses         2440     2433       -7     
Flag Coverage Δ
8.1 70.54% <100.00%> (+0.04%) ⬆️
8.2 70.74% <100.00%> (-0.02%) ⬇️
8.3 70.79% <100.00%> (+0.04%) ⬆️
8.4 70.81% <100.00%> (+0.09%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/Context/ContextStorageNode.php 91.42% <100.00%> (+0.51%) ⬆️

... and 7 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4851a4e...9843720. Read the comment docs.

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

@brettmc brettmc merged commit b5a5ac7 into open-telemetry:main May 7, 2025
11 checks passed
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.

Circular reference in ContextStorageNode

2 participants