Merged
Conversation
Collaborator
Author
|
To test the Sentry monitoring, check the localhost:3000/app/sentry-example-page page |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This pull request introduces Sentry error monitoring and tracing throughout the Next.js client application. The integration includes configuration for client, server, and edge environments, as well as example error routes and pages to test Sentry functionality. Additional improvements were made to error handling and the browsing experience. The most important changes are grouped below:
Sentry Integration and Configuration
@sentry/nextjs) and related packages inpackage.json, and updated.env.exampleto include the Sentry DSN environment variable. [1] [2]src/instrumentation-client.ts), server (sentry.server.config.ts), and edge environments (sentry.edge.config.ts), enabling tracing, logging, replay, and PII support. [1] [2] [3]next.config.tsto wrap the Next.js config with Sentry's configuration, including source map uploading, tunnel routing, and bundle size optimizations. [1] [2].vscode/mcp.json,.cursor/mcp.json). [1] [2]Error Handling and Monitoring
src/app/global-error.tsx, ensuring all uncaught errors in the app are reported.src/app/api/sentry-example-api/route.ts) and frontend page (src/app/sentry-example-page/page.tsx) to demonstrate and test Sentry error monitoring. [1] [2]UI Improvements