Skip to content
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

feat: enable sentry features #6133

Merged
merged 11 commits into from
Nov 23, 2023

Conversation

ovflowd
Copy link
Member

@ovflowd ovflowd commented Nov 21, 2023

Description

This PR attempts to tree-shake irrelevant Sentry parts and load a minimal Sentry Browser Client for our Next.js installation.

This PR should also disable support of UnhandledPromise rejection from Sentry

Notice that two unrelated changes in this PR are two tiny hot fixes (1 removing a console).timeEnd, 2 fixing a bug that if no static data is generated HomeDownloadButton crashes due to node release data being empty)

Validation

I've seen no bundle increase with this setup, which is intriguing. The expected outcome here is for all Sentry features to be working correctly.


cc @AbhiPrasad @JonasBa for review from Sentry side

cc @bmuenzenmeyer for internal review

@ovflowd ovflowd added the infrastructure Issues/PRs related to the Repository Infra label Nov 21, 2023
@ovflowd ovflowd requested review from a team as code owners November 21, 2023 22:10
Copy link

vercel bot commented Nov 21, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nodejs-org ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 23, 2023 7:17pm

Copy link

github-actions bot commented Nov 21, 2023

Lighthouse Results

URL Performance Accessibility Best Practices SEO Report
/en 🟢 100 🟢 97 🟢 92 🟢 92 🔗
/en/about 🟢 100 🟢 95 🟢 92 🟢 92 🔗
/en/about/previous-releases 🟢 98 🟢 96 🟢 92 🟢 92 🔗
/en/download 🟢 100 🟢 97 🟢 92 🟢 92 🔗
/en/blog 🟢 97 🟢 97 🟠 83 🟢 92 🔗

Copy link

github-actions bot commented Nov 21, 2023

Unit Test Coverage Report

Lines Statements Branches Functions
Coverage: 86%
82.34% (401/487) 67.93% (89/131) 68.42% (65/95)

Unit Test Report

Tests Skipped Failures Errors Time
71 0 💤 0 ❌ 0 🔥 5.525s ⏱️

@ovflowd ovflowd added the github_actions:pull-request Trigger Pull Request Checks label Nov 21, 2023
@github-actions github-actions bot removed the github_actions:pull-request Trigger Pull Request Checks label Nov 21, 2023
sentry.client.config.ts Outdated Show resolved Hide resolved
@ovflowd
Copy link
Member Author

ovflowd commented Nov 22, 2023

@AbhiPrasad I've noticed by using the Sentry Client the way we are (with BrowserClient) the client-side requests are not going through /monitoring

image

Is there something else we need to configure?

@ovflowd
Copy link
Member Author

ovflowd commented Nov 22, 2023

@AbhiPrasad I've noticed by using the Sentry Client the way we are (with BrowserClient) the client-side requests are not going through /monitoring

image

Is there something else we need to configure?

I was able to make a fix, by 👀 Sentry's source code.

@ovflowd
Copy link
Member Author

ovflowd commented Nov 22, 2023

cc @nodejs/web-infra for reviewes :)

Copy link
Collaborator

@bmuenzenmeyer bmuenzenmeyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some small comments within.

it all tracks with what we discussed on the call - but i'll admit I won't be surprised if we need to tweak things further post-deployment

app/[locale]/error.tsx Outdated Show resolved Hide resolved
app/[locale]/layout.tsx Show resolved Hide resolved
next.constants.mjs Show resolved Hide resolved
sentry.client.config.ts Show resolved Hide resolved
@ovflowd ovflowd added the github_actions:pull-request Trigger Pull Request Checks label Nov 23, 2023
@github-actions github-actions bot removed the github_actions:pull-request Trigger Pull Request Checks label Nov 23, 2023
@ovflowd ovflowd added this pull request to the merge queue Nov 23, 2023
Merged via the queue into main with commit 7fc2bca Nov 23, 2023
15 checks passed
@ovflowd ovflowd deleted the feat/enable-tree-shaking-and-specific-features branch November 23, 2023 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infrastructure Issues/PRs related to the Repository Infra
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants