feat(open-next): create cloudflare-sentry-tail package#8842
feat(open-next): create cloudflare-sentry-tail package#8842
Conversation
Creates a `cloudflare-sentry-tail` package that enables us to add a tail worker to the open next deployment of the site. This package should be publishable as well so that we can reuse it in the release worker. Signed-off-by: flakey5 <73616808+flakey5@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PR SummaryMedium Risk Overview Updates the site’s OpenNext Cloudflare Reviewed by Cursor Bugbot for commit fc180d5. Bugbot is set up for automated code reviews on this repo. Configure here. |
👋 Codeowner Review RequestThe following codeowners have been identified for the changed files: Team reviewers: @nodejs/web-infra @nodejs/nodejs-website Please review the changes when you have a chance. Thank you! 🙏 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8842 +/- ##
==========================================
- Coverage 73.87% 73.24% -0.63%
==========================================
Files 105 102 -3
Lines 8883 8623 -260
Branches 326 313 -13
==========================================
- Hits 6562 6316 -246
+ Misses 2320 2306 -14
Partials 1 1 ☔ View full report in Codecov by Sentry. |
| @@ -0,0 +1,31 @@ | |||
| { | |||
| "name": "@node-core/cloudflare-sentry-tail", | |||
There was a problem hiding this comment.
Can you open an issue in admin for this package?
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit fc180d5. Configure here.
|
|
||
| const event: Event = { | ||
| level: severityLevel, | ||
| timestamp: item.eventTimestamp ?? Date.now(), |
There was a problem hiding this comment.
Timestamps passed in milliseconds instead of required seconds
High Severity
Cloudflare's TraceItem.eventTimestamp is in milliseconds since epoch, and Date.now() also returns milliseconds. However, Sentry's Event.timestamp and Breadcrumb.timestamp fields expect seconds since epoch. Passing milliseconds directly causes Sentry to interpret all event timestamps as dates far in the future (approximately year 50,000+), resulting in validation errors or completely unusable event timeline data. The values need to be divided by 1000.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit fc180d5. Configure here.


Creates a
cloudflare-sentry-tailpackage that enables us to add a tail worker to the open next deployment of the site.This package should be publishable as well so that we can reuse it in the release worker.
Description
Validation
Related Issues
Check List
pnpm formatto ensure the code follows the style guide.pnpm testto check if all tests are passing.pnpm buildto check if the website builds without errors.