Repository navigation
feat(tracing): export TRACING_CHANNELS with published channel names - #864
RihanArfan wants to merge 1 commit into
Conversation
|
@RihanArfan is attempting to deploy a commit to the unjs Team on Vercel. A member of the Team first needs to authorize it. |
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Channel contract and routing src/tracing.ts |
TRACING_CHANNELS defines the channel names and supports derived operation types. Tracing builds its channel map from prefixed names and routes channel-backed operations through it. |
Channel validation and guide test/tracing.test.ts, docs/1.guide/2.utils.md |
The test checks that operations publish the listed channels without duplicates. The guide shows how to subscribe to the channels and documents that metadata operations publish on their underlying operation’s channel with meta: true. |
Priority:
Estimated code review effort: 3 (Moderate) | ~20 minutes
Change: Feature
Suggested reviewers: pi0, logaretm
Merge Risk: 
Minimal · up to d4e56
-
The documented tracing behavior matches the implementation; no merge-blocking risk was found.
Pre-merge checks: 
5
-
Full details: Docstring Coverage
-
Explanation
Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 2 functions across 2 files. (1 skipped: 1 unsupported.)
-
Finishing Touches: 💡 1
-
🛠️ Fix failing CI checks: 💡
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #864 +/- ##
=======================================
Coverage 76.07% 76.08%
=======================================
Files 46 46
Lines 2688 2689 +1
Branches 654 655 +1
=======================================
+ Hits 2045 2046 +1
Misses 578 578
Partials 65 65 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
unstorage/tracingpublishesunstorage.<operation>tracing channels, but only exported the operation names as a type (TracedOperation). Subscribers had to hardcode the channel names at runtime.This adds
TRACING_CHANNELS, the list of channels that are published, and aTracingChannelNametype.withTracingcreates its channels from it, and a test checks that the list matches what storage operations publish.Nitro uses it to check its own channel list (nitrojs/nitro#4904).
Summary by CodeRabbit