-
-
Notifications
You must be signed in to change notification settings - Fork 261
Fix performance mark crash when using DEBUG=true #2884
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
|
🦋 Changeset detectedLatest commit: d5c0a1c The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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.
|
…ling Co-authored-by: mrlubos <12529395+mrlubos@users.noreply.github.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2884 +/- ##
==========================================
- Coverage 30.05% 30.01% -0.05%
==========================================
Files 488 488
Lines 40337 40423 +86
Branches 2422 2427 +5
==========================================
+ Hits 12122 12131 +9
- Misses 28181 28258 +77
Partials 34 34
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice one!
commit: |
The logger crashed with
The "createClient-0-start" performance mark has not been setwhenDEBUG=truewas enabled. This occurred whenreport()attempted to measure events that hadn't been properly ended, either due to early returns or runtime errors.Changes
endAllEvents()recursively ensures all events have end marks before measurementperformance.measure()calls in try-catch to gracefully skip reporting when marks are missingExample
Before, this would crash:
After:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.