sentry-docs icon indicating copy to clipboard operation
sentry-docs copied to clipboard

feat: Add codemods for migrating Sentry.js from v7.x to v8.x

Open akash-kumar-dev opened this issue 1 year ago • 8 comments

This PR enhances the Sentry.js v8.x migration guide by incorporating codemod integration to streamline the upgrade process for developers. The motivation behind this change is to provide a more efficient and time-saving approach for migrating from v7.x to v8.x, helping the community upgrade with ease.

Key changes include:

  1. Introducing Codemods: Added a section in the migration guide to highlight the availability of codemods for automating common migration tasks.
  2. Codemod Recipe: Provided a codemod recipe that runs the following codemods from the Sentry.js Codemod repository:
    npx codemod sentry/v8/migration-recipe
    
    • sentry/v8/removal-of-addGlobalEventProcessor
    • sentry/v8/Removal-Sentry.configureScope-method
    • sentry/v8/removal-Severity-Enum
    • sentry/v8/remove-replay-package-and-update-integration
    • sentry/v8/replace-span-status-from-http-code
    • sentry/v8/removal-of-void-from-transport-return-types

By incorporating these changes, the migration guide now provides a more comprehensive and efficient solution for upgrading to Sentry.js v8.x, helping developers save time and effort during the migration process.

akash-kumar-dev avatar Aug 29 '24 16:08 akash-kumar-dev

@akash-kumar-dev is attempting to deploy a commit to the Sentry Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Aug 29 '24 16:08 vercel[bot]

@AbhiPrasad can you help review this contribution?

vivianyentran avatar Aug 29 '24 22:08 vivianyentran

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

Name Status Preview Comments Updated (UTC)
changelog ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 29, 2024 10:24pm
sentry-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 29, 2024 10:24pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
develop-docs ⬜️ Ignored (Inspect) Visit Preview Aug 29, 2024 10:24pm

vercel[bot] avatar Aug 29 '24 22:08 vercel[bot]

I have attached all the codemod registry links and their corresponding Codemod Studio links in the documentation for your review.

Google Docs Link

Please go through the changes to see how the codemods facilitate the migration from Sentry.js v7.x to v8.x. This should help streamline the review process.

akash-kumar-dev avatar Sep 01 '24 07:09 akash-kumar-dev

This pull request has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you add the label WIP, I will leave it alone unless WIP is removed ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

getsantry[bot] avatar Sep 23 '24 07:09 getsantry[bot]

Hi @AbhiPrasad, is there anything else I should address on this PR? Looking forward to your feedback on this PR so I can proceed accordingly.

akash-kumar-dev avatar Sep 26 '24 07:09 akash-kumar-dev

Hi @akash-kumar-dev. Thanks for the PR!

We don't officially support these codemods, so I would be hesistant to add them to the top of the docs like this. This would mean the Sentry team would have to help maintain and fix issues with the codemods as the come up.

We do have a repo of codemods here: https://github.com/getsentry/sentry-migr8. Are you able to contribute some of your codemods to this repo? We would be happy to review and accept PRs!

AbhiPrasad avatar Sep 26 '24 13:09 AbhiPrasad

This pull request has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you add the label WIP, I will leave it alone unless WIP is removed ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

getsantry[bot] avatar Oct 18 '24 07:10 getsantry[bot]

This pull request has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you add the label WIP, I will leave it alone unless WIP is removed ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

getsantry[bot] avatar Nov 09 '24 08:11 getsantry[bot]

This pull request has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you add the label WIP, I will leave it alone unless WIP is removed ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

getsantry[bot] avatar Dec 02 '24 08:12 getsantry[bot]

This pull request has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you add the label WIP, I will leave it alone unless WIP is removed ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

getsantry[bot] avatar Dec 25 '24 08:12 getsantry[bot]