Set up Sentry observability for Next.js runtime paths#53
Open
Copilot wants to merge 6 commits into
Open
Conversation
Copilot created this pull request from a session on behalf of
justin-phxm
May 18, 2026 06:03
View session
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Agent-Logs-Url: https://github.com/UCSolarCarTeam/Solar-Car-Website-Next/sessions/0075eefd-926e-4432-8d31-9571595e9391 Co-authored-by: justin-phxm <113923596+justin-phxm@users.noreply.github.com>
Agent-Logs-Url: https://github.com/UCSolarCarTeam/Solar-Car-Website-Next/sessions/0075eefd-926e-4432-8d31-9571595e9391 Co-authored-by: justin-phxm <113923596+justin-phxm@users.noreply.github.com>
Agent-Logs-Url: https://github.com/UCSolarCarTeam/Solar-Car-Website-Next/sessions/0075eefd-926e-4432-8d31-9571595e9391 Co-authored-by: justin-phxm <113923596+justin-phxm@users.noreply.github.com>
Agent-Logs-Url: https://github.com/UCSolarCarTeam/Solar-Car-Website-Next/sessions/0075eefd-926e-4432-8d31-9571595e9391 Co-authored-by: justin-phxm <113923596+justin-phxm@users.noreply.github.com>
8ea7fff to
7d63549
Compare
5f06cf0 to
57d6adc
Compare
57d6adc to
50bd028
Compare
50bd028 to
0f8c699
Compare
0f8c699 to
ff39cc4
Compare
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 PR adds first-pass Sentry integration to the Next.js app so client navigation, server runtime, and edge runtime errors/performance signals are captured through a single configuration path. It also introduces explicit env knobs for DSN and trace sampling.
SDK + framework wiring
@sentry/nextjsdependency.withSentryConfig(...)innext.config.jsto enable Sentry build/runtime integration.Runtime initialization across execution targets
instrumentation.tsto register runtime-specific Sentry configs.sentry.server.config.tsandsentry.edge.config.tsfor server/edge initialization.instrumentation-client.tsfor browser initialization and router transition capture.Sampling + environment configuration
SENTRY_DSNandNEXT_PUBLIC_SENTRY_DSN.SENTRY_TRACES_SAMPLE_RATEandNEXT_PUBLIC_SENTRY_TRACES_SAMPLE_RATE(default0.1in example env).