-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
[cli] Add "x-vercel-id" response header to --debug
logs
#6508
[cli] Add "x-vercel-id" response header to --debug
logs
#6508
Conversation
This pull request has been linked to Clubhouse Story #23017: Add |
--debug
logs
Codecov Report
@@ Coverage Diff @@
## main #6508 +/- ##
==========================================
+ Coverage 12.66% 13.42% +0.76%
==========================================
Files 272 272
Lines 9815 9927 +112
Branches 1610 1565 -45
==========================================
+ Hits 1243 1333 +90
- Misses 8471 8503 +32
+ Partials 101 91 -10
Continue to review full report at Codecov.
|
Follow up to #6508. Adds a request "counter" that increments for every API request, matching how `front` does it. Also tweaks the `output.time()` output a bit by rendering the timestamp in gray, and with `[]` brackets. If the time diff is < 1000ms then the full milliseconds will be printed intstead of the seconds.
Follow up to #6508. Adds a request "counter" that increments for every API request, matching how `front` does it. Also tweaks the `output.time()` output a bit by rendering the timestamp in gray, and with `[]` brackets. If the time diff is < 1000ms then the full milliseconds will be printed intstead of the seconds. <img width="710" alt="Screen Shot 2021-07-22 at 2 45 39 PM" src="https://user-images.githubusercontent.com/71256/126713843-db70ed9c-4752-4ca9-8f54-313c4cb44914.png">
Related Issues
Add
x-vercel-id
response header to--debug
logs in Vercel CLI for the purposes of correlating issues (i.e. slow API requests) to production logs.📋 Checklist
Tests
yarn test-unit
Code Review