Conversation
🦋 Changeset detectedLatest commit: d4a860d The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
2 Skipped Deployments
|
|
Thank you for following the naming conventions! 🙏 |
commit: |
|
Warning Review limit reached
Next review available in: 16 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughAdds an opt-in ChangesDiagnostics Channel
Estimated code review effort: 3 (Moderate) | ~25 minutes Sequence Diagram(s)sequenceDiagram
participant Application
participant Evlog
participant DiagnosticsChannel
participant Subscriber
Application->>Evlog: emit wide event
Evlog->>Evlog: audit, redact, and enrich
Evlog->>DiagnosticsChannel: publish { event }
DiagnosticsChannel->>Subscriber: synchronously deliver event
Evlog->>Application: continue drain processing
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
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 |
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@apps/docs/content/6.extend/11.diagnostics-channel.md`:
- Around line 52-58: Update the subscribeToWideEvents callback in the metrics.ts
example to handle events where event.path is absent, using a fallback or an API
compatible with an optional path instead of casting it directly to string.
Preserve the existing duration fallback and timing metric behavior.
- Around line 61-78: Update the typed examples in the diagnostics-channel
documentation to reference the canonical event.duration field instead of
event.durationMs, matching the formatted duration property shown in the JSON
payload. Preserve the existing WideEvent example structure and update every
affected typed usage.
In `@packages/evlog/src/shared/diagnostics-channel.node.ts`:
- Line 1: Update subscribeToChannel to obtain the diagnostics channel instance
with channel(name) and call its subscribe and unsubscribe methods with
onMessage, removing reliance on the top-level subscribe/unsubscribe imports.
Preserve the existing behavior used by subscribeToWideEvents and its tests
across all supported Node 18 versions.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 880b206b-13a6-49c2-ab7d-d61f3986a365
⛔ Files ignored due to path filters (1)
packages/evlog/test/toolkit/__snapshots__/api-surface.test.ts.snapis excluded by!**/*.snap
📒 Files selected for processing (13)
.changeset/diagnostics-channel.mdapps/docs/content/6.extend/0.overview.mdapps/docs/content/6.extend/11.diagnostics-channel.mdpackages/evlog/bench/core/logger.bench.tspackages/evlog/package.jsonpackages/evlog/src/diagnostics.tspackages/evlog/src/logger.tspackages/evlog/src/shared/diagnostics-channel.node.tspackages/evlog/src/shared/middleware.tspackages/evlog/src/shared/wideEventChannel.tspackages/evlog/test/build/node-imports.test.tspackages/evlog/test/shared/diagnostics-channel.test.tspackages/evlog/tsdown.config.ts
🔗 Linked issue
📚 Description
📝 Checklist
Summary by CodeRabbit
New Features
evlog/diagnosticsentry point.Documentation