diagnostics_channel: add WindowChannel and scopes#61680
diagnostics_channel: add WindowChannel and scopes#61680Qard wants to merge 2 commits intonodejs:mainfrom
Conversation
Adds support for using scope = storage.withScope(data) to do the equivalent of a storage.run(data, fn) with using syntax. This enables avoiding unnecessary closures.
|
Review requested:
|
Failed to start CI⚠ No approving reviews found ✘ Refusing to run CI on potentially unsafe PRhttps://github.com/nodejs/node/actions/runs/21678728231 |
c764f06 to
1018c57
Compare
RafaelGSS
left a comment
There was a problem hiding this comment.
Could you please expand on PR description on why this is needed? We have channels, tracingChannels and now windowChannel, it would be great to know for which kind of situations we need each one of them.
| added: REPLACEME | ||
| --> | ||
|
|
||
| > Stability: 1 - Experimental |
There was a problem hiding this comment.
| > Stability: 1 - Experimental | |
| > Stability: 1 - Experimental |
Perhaps 1.1 Active Development instead?
There was a problem hiding this comment.
The particular change is inherited from #61674. Do you want that made there? What about the new APIs in diagnostics_channel? Same status?
|
It's also replacing most of the internals of |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #61680 +/- ##
==========================================
- Coverage 89.74% 88.86% -0.88%
==========================================
Files 674 675 +1
Lines 204389 204604 +215
Branches 39280 39224 -56
==========================================
- Hits 183424 181827 -1597
- Misses 13264 15026 +1762
- Partials 7701 7751 +50
🚀 New features to boost your workflow:
|
This adds WindowChannel, adds using scope support to runStores, and modifies the internals to use these to avoid closures in several places.
This adds
WindowChannel, adds ausingsyntax equivalent torunStores, and modifies the internals to use these to avoid closures in several places.Depends on #61674
cc @nodejs/diagnostics