feat: experimental tracing channels support#707
Merged
Conversation
pi0
reviewed
Nov 6, 2025
f6d665f to
f39e20b
Compare
b3622f3 to
b59a383
Compare
Contributor
Author
|
@pi0 I refactored the logic here to use |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #707 +/- ##
==========================================
+ Coverage 91.77% 92.60% +0.83%
==========================================
Files 5 6 +1
Lines 401 446 +45
Branches 126 143 +17
==========================================
+ Hits 368 413 +45
Misses 33 33 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
pi0
approved these changes
Feb 25, 2026
1 task
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.
Adds Node.js tracing channels for all storage operations, enabling observability and performance monitoring.
Channel Naming Convention
All channels use the
unstorage.${operation}convention which when coupled with tracing channels produce the following diagnostic channels:tracing:unstorage.${operation}:starttracing:unstorage.${operation}:endtracing:unstorage.${operation}:asyncStarttracing:unstorage.${operation}:asyncEndtracing:unstorage.${operation}:errorWhich matches nicely with
fastifybut there isn't a lot of convention for them other than the Node.js recommendation.Traced operations
hasItem,getItem,setItem,setItems,removeItemgetItemRaw,setItemRawgetMeta(usesgetItemchannel withmeta: true)getItems,setItemsgetKeys,clearTracing context includes
keys[]- keys involved in the operationbase- mount point handling the operationdriver- driver name and options (single-key operations only)meta- flag for metadata operationsWe can probably add more, in the Nuxt unstorage instrumentation we only use those.
Example
All operations emit standard tracing events:
start,end,asyncStart,asyncEnd, anderror.