-
-
Notifications
You must be signed in to change notification settings - Fork 62
feat(nextjs): Switch to injecting instrumentation-client.ts
#918
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
Conversation
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #918 +/- ##
==========================================
+ Coverage 51.79% 52.00% +0.21%
==========================================
Files 53 53
Lines 3657 3665 +8
Branches 854 867 +13
==========================================
+ Hits 1894 1906 +12
+ Misses 1762 1629 -133
- Partials 1 130 +129
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
src/nextjs/templates.ts
Outdated
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions | ||
return `${primer} | ||
return `// This file configures the initialization of Sentry on the client. | ||
// The added here will be used whenever a users loads a page in their browser. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a word missing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch thank you!
test/nextjs/templates.test.ts
Outdated
// https://docs.sentry.io/platforms/javascript/guides/nextjs/ | ||
expect(template).toMatchInlineSnapshot(` | ||
"// This file configures the initialization of Sentry on the client. | ||
// The added here will be used whenever a users loads a page in their browser. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here - is it "added config"?
The SDK now supports instrumentation-client.ts which is an experimental Next.js feature that we want to make use of for turbopack.
getsentry/sentry-javascript#15705