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

Migrate Sentry packages to v8 #6387

Merged
merged 5 commits into from
Oct 18, 2024
Merged

Migrate Sentry packages to v8 #6387

merged 5 commits into from
Oct 18, 2024

Conversation

goplayoutside3
Copy link
Contributor

@goplayoutside3 goplayoutside3 commented Oct 15, 2024

Package

app-project
lib-classifier

Linked Issue and/or Talk Post

Includes #6372
Reverts #4387

Describe your changes

  • Migrate sentry/browser and sentry/nextjs to version 8.
  • Remove Sentry initialization in app-project's _document.js file. This was a specific tracking case for FrontDoor behavior 2 years ago and has since resolved.

How to Review

Checklist

PR Creator - Please cater the checklist to fit the review needed for your code changes.
PR Reviewer - Use the checklist during your review. Each point should be checkmarked or discussed before PR approval.

General

  • Tests are passing locally and on Github
  • Documentation is up to date and changelog has been updated if appropriate
  • You can yarn panic && yarn bootstrap or docker-compose up --build and FEM works as expected
  • FEM works in all major desktop browsers: Firefox, Chrome, Edge, Safari (Use Browserstack account as needed)

Maintenance

  • If not from dependabot, the PR creator has described the update (major, minor, or patch version, changelog)

dependabot bot and others added 4 commits October 14, 2024 20:40
Bumps [@sentry/browser](https://github.com/getsentry/sentry-javascript) from 7.109.0 to 8.34.0.
- [Release notes](https://github.com/getsentry/sentry-javascript/releases)
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/8.34.0/CHANGELOG.md)
- [Commits](getsentry/sentry-javascript@7.109.0...8.34.0)

---
updated-dependencies:
- dependency-name: "@sentry/browser"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@goplayoutside3 goplayoutside3 added the dependencies Pull requests that update a dependency file label Oct 15, 2024
@@ -27,16 +26,13 @@ const handle = app.getRequestHandler()

app.prepare().then(() => {
const server = express()

server.use(Sentry.Handlers.requestHandler())
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sentry.Handlers isn't needed anymore

@@ -0,0 +1,9 @@
export async function register() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@coveralls
Copy link

coveralls commented Oct 15, 2024

Coverage Status

coverage: 77.798% (-0.02%) from 77.822%
when pulling 14c4d4c on upgrade-sentry-v8
into 9022a32 on master.

@goplayoutside3 goplayoutside3 requested a review from a team October 15, 2024 01:59
@mcbouslog mcbouslog self-assigned this Oct 17, 2024
@mcbouslog mcbouslog requested review from mcbouslog and removed request for a team October 17, 2024 15:41
Copy link
Contributor

@mcbouslog mcbouslog left a comment

Choose a reason for hiding this comment

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

Noted sentry console logs and network activity as expected when testing https://fe-project-branch.preview.zooniverse.org/ 👍

disable: true,
},
telemetry: false,
authToken: process.env.SENTRY_AUTH_TOKEN
Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like this was not required previously, but is with these changes, it looks like per https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/#extend-your-nextjs-configuration .

@github-actions github-actions bot added the approved This PR is approved for merging label Oct 18, 2024
@mcbouslog mcbouslog removed their assignment Oct 18, 2024
@goplayoutside3 goplayoutside3 merged commit 449acac into master Oct 18, 2024
8 checks passed
@goplayoutside3 goplayoutside3 deleted the upgrade-sentry-v8 branch October 18, 2024 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved This PR is approved for merging dependencies Pull requests that update a dependency file
Projects
Development

Successfully merging this pull request may close these issues.

3 participants