Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolves #20
What is the feature
Introduce a new Sentry SDK specifically designed for Nuxt.js applications. This SDK will provide seamless integration with Nuxt's architecture, enabling comprehensive error tracking and performance monitoring on both the client (Vue.js) and server (Nitro) sides. It will include instrumentation for Nuxt-specific libraries and features, such as Nitro, crossws, db0, and unstorage.
Why we need the feature
Nuxt.js is a powerful framework for building Vue.js applications with server-side rendering, static site generation, and other advanced features. Currently, integrating Sentry into Nuxt projects requires manual setup and may not cover all nuances of Nuxt's ecosystem. By providing an official Nuxt SDK, we can:
How to implement and why
Step 1: Client-Side Instrumentation
@sentry/vue
package to handle error tracking and performance monitoring within Vue components.Step 2: Server-Side Instrumentation with Nitro
Step 3: Instrument Nuxt-Specific Libraries
Step 4: Create
sentryNuxtPlugin
for Error HandlingStep 5: Source Map Support
Step 6: Add E2E Tests
Step 7: Create Nuxt Platform in Sentry
Step 8: Documentation and Setup Wizard
Step 9: Ensure Deployment Compatibility
Step 10: Plan for Nuxt 4 Support
Step-by-Step Reasoning
sentryNuxtPlugin
and a setup wizard improves developer experience by simplifying the integration process.About backward compatibility
By focusing on backward compatibility, we respect the existing user base and promote broader adoption of the new SDK across different versions of Nuxt.
Test these changes locally