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!: update Sentry SDK from v6 to v7 #461

Merged
merged 23 commits into from
Dec 18, 2022

Conversation

LukasHirt
Copy link
Contributor

@LukasHirt LukasHirt commented Dec 1, 2022

Summary

  • update all sentry packages
  • drop sentry/browser
  • add sentry/vue
  • drop Vue from integrations
  • get types from sentry/core instead of deprecated sentry/minimal

Related issues

@LukasHirt
Copy link
Contributor Author

@rchl could you pls look into reviewing this PR? It's quite important for our project to get sentry to v7. I'm happy to take care of any changes necessary...

I run the tests locally and they passed and also tried to link it to our project and reported mock errors from there. I went through the docs and tried to spot any reference that needs to be updated.

@LukasHirt
Copy link
Contributor Author

Hmm, I missed some parts in the options.js file still using sentry/browser - will fix that

@LukasHirt LukasHirt marked this pull request as draft December 1, 2022 18:30
@LukasHirt
Copy link
Contributor Author

@rchl ok, now it should be ready for review

@LukasHirt LukasHirt marked this pull request as ready for review December 2, 2022 14:23
@rchl
Copy link
Member

rchl commented Dec 2, 2022

I suppose this requires new major version of the module and adding migration guide (like https://i18n.nuxtjs.org/migrating).

Also there is a question of whether this should have its own major version and then #456 should trigger yet another major version or whether those two changes should be sharing same, new major version (thus requiring nuxt/kit and potentially causing extra issues for Nuxt 2 users...).

@codecov
Copy link

codecov bot commented Dec 2, 2022

Codecov Report

Merging #461 (130163a) into main (08d7e6c) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #461   +/-   ##
=======================================
  Coverage   69.23%   69.23%           
=======================================
  Files           1        1           
  Lines          52       52           
  Branches       21       21           
=======================================
  Hits           36       36           
  Misses         13       13           
  Partials        3        3           
Impacted Files Coverage Δ
lib/module.js 69.23% <ø> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

lib/core/options.js Outdated Show resolved Hide resolved
@darthf1
Copy link

darthf1 commented Dec 7, 2022

Also there is a question of whether this should have its own major version and then #456 should trigger yet another major version or whether those two changes should be sharing same, new major version (thus requiring nuxt/kit and potentially causing extra issues for Nuxt 2 users...).

Does #456 for Nuxt 2 require a dependency on nuxt/bridge? If so:

If possible, and if they can be done seperately, I would prefer two seperate majors with the upgrade to Sentry 7 before the #456. This means existing users can upgrade, without having to move to either nuxt/bridge or nuxt 3.

nuxt/bridge still requires a dependency on nuxt-edge, and migration to Nuxt 3 is proving to be quite painful (for me, because of missing decorators support). So it would be great if the upgrade to Sentry 7 would be possible without having to touch anything else.

@rchl
Copy link
Member

rchl commented Dec 7, 2022

Yes, i agree with that given that migration to bridge can prove problematic

lib/plugin.client.js Outdated Show resolved Hide resolved
* main:
  chore: release 6.0.2
  fix(tracing): merge user's tracing configuration (nuxt-community#463)
@LukasHirt
Copy link
Contributor Author

@rchl thanks for your review and your commits! I'll try to get this week the time to look into this again.

@rchl
Copy link
Member

rchl commented Dec 12, 2022

I've picked up some work on this module and created various commits on master that can conflict with this task. I can help with merging and resolving conflicts.

rchl and others added 3 commits December 13, 2022 09:15
* main:
  fix(tracing): autoSessionTracking not working on the server-side (nuxt-community#466)
  fix: incorrect option name in the warning message (nuxt-community#467)
  chore(deps): don't update node version
  chore(deps): enable lock file maintenance for docs
  chore(docs): add .nvmrc for netlify and local dev
  chore(docs): update all sub-dependencies
  chore(docs): always build
  fix(deps): update devdependency @sentry/webpack-plugin to ^1.20.0 (nuxt-community#451)
  chore(deps): update all non-major dependencies (nuxt-community#449)
  chore(docs): fix documentation deploying, maybe
types/sentry.d.ts Outdated Show resolved Hide resolved
types/sentry.d.ts Outdated Show resolved Hide resolved
lib/core/options.js Outdated Show resolved Hide resolved
@rchl
Copy link
Member

rchl commented Dec 17, 2022

Apart from tweaking the docs, I'm pretty happy with the changes and ready to merge when you are.

I will still likely do some follow up changes to enable router integration and support tracing in lazy mode but that's for another PR.

@rchl rchl changed the title feat: migrate to sentry v7 feat!: update Sentry SDK from v6 to v7 Dec 18, 2022
@rchl rchl merged commit 53bbeec into nuxt-community:main Dec 18, 2022
@rchl
Copy link
Member

rchl commented Dec 18, 2022

Thanks!

rchl added a commit that referenced this pull request Dec 21, 2022
* fix/tree-shake:
  feat: enable tree shaking of Sentry SDK debug code
  chore(lint): enable linting for more files within the repo
  chore(deps): update lock file
  fix(deps): update sentry dependencies to ^7.28.0 (#478)
  docs: minor updates about dependencies and lazy+tracing
  feat: support plugin path for clientConfig and serverConfig (#477)
  feat(tracing): enable Vue Router instrumentation by default (#476)
  Revert "feat(tracing): enable Vue Router instrumentation by default"
  feat(tracing): enable Vue Router instrumentation by default
  chore(lint): tweak eslint ignore directives for generated plugin files
  chore(deps): update devdependency sentry-testkit to v5
  chore(deps): update devdependency @nuxtjs/eslint-config-typescript to v12
  chore(deps): update sentry dependencies to ^7.27.0 (#474)
  feat!: update Sentry SDK from v6 to v7 (#461)
  docs: add information about enriching events (#473)
  fix: gracefully handle Nuxt versions without Runtime Config (#472)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade to Sentry packages v7 Use @sentry/vue instead of browser with vue integration
3 participants