Skip to content

Conversation

lforst
Copy link

@lforst lforst commented Mar 27, 2025

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

Copy link

github-actions bot commented Mar 27, 2025

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against e7b39d5

Luca Forstner added 2 commits March 27, 2025 13:02
Copy link

codecov bot commented Mar 27, 2025

Codecov Report

Attention: Patch coverage is 78.57143% with 3 lines in your changes missing coverage. Please review.

Project coverage is 52.00%. Comparing base (95af834) to head (e7b39d5).
Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
src/nextjs/templates.ts 78.57% 3 Missing ⚠️
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     
Flag Coverage Δ
e2e-tests 80.28% <ø> (ø)
unit-tests 50.86% <78.57%> (+0.22%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Luca Forstner added 2 commits March 27, 2025 13:05
@lforst lforst self-assigned this Mar 27, 2025
Luca Forstner added 3 commits March 27, 2025 16:10
@lforst lforst marked this pull request as ready for review March 27, 2025 15:30
// 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.
Copy link
Member

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?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch thank you!

// 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.
Copy link
Member

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"?

@lforst lforst merged commit d1e8e55 into master Mar 28, 2025
20 checks passed
@lforst lforst deleted the lforst-instrumentation-client branch March 28, 2025 07:13
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.

2 participants