Skip to content

Conversation

@a-hariti
Copy link
Collaborator

@a-hariti a-hariti commented Mar 10, 2025

related #12918

todo:

  • update deps on the tutorial: PR
  • Edit these docs further to follow the instrument.js file convention from the React guide

@vercel
Copy link

vercel bot commented Mar 10, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sentry-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 18, 2025 4:05pm
2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
changelog ⬜️ Ignored (Inspect) Visit Preview Mar 18, 2025 4:05pm
develop-docs ⬜️ Ignored (Inspect) Visit Preview Mar 18, 2025 4:05pm

@codecov
Copy link

codecov bot commented Mar 10, 2025

Bundle Report

Changes will decrease total bundle size by 15 bytes (-0.0%) ⬇️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
sentry-docs-server-cjs 10.53MB -9 bytes (-0.0%) ⬇️
sentry-docs-client-array-push 9.39MB -6 bytes (-0.0%) ⬇️

Affected Assets, Files, and Routes:

view changes for bundle: sentry-docs-client-array-push

Assets Changed:

Asset Name Size Change Total Size Change (%)
static/chunks/pages/_app-*.js -3 bytes 868.16kB -0.0%
static/chunks/3319-*.js -3 bytes 393.41kB -0.0%
server/middleware-*.js -5.55kB 1.0kB -84.74%
server/middleware-*.js 5.55kB 6.55kB 555.3% ⚠️
static/pZ2VAlV-*.js (New) 578 bytes 578 bytes 100.0% 🚀
static/pZ2VAlV-*.js (New) 77 bytes 77 bytes 100.0% 🚀
static/B0l4g2zUTFzmbjyW4Lz7u/_buildManifest.js (Deleted) -578 bytes 0 bytes -100.0% 🗑️
static/B0l4g2zUTFzmbjyW4Lz7u/_ssgManifest.js (Deleted) -77 bytes 0 bytes -100.0% 🗑️
view changes for bundle: sentry-docs-server-cjs

Assets Changed:

Asset Name Size Change Total Size Change (%)
1729.js -3 bytes 1.57MB -0.0%
../instrumentation.js -3 bytes 904.32kB -0.0%
9523.js -3 bytes 880.37kB -0.0%

Copy link
Contributor

@coolguyzone coolguyzone left a comment

Choose a reason for hiding this comment

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

Thanks for updating! 🤙🛳️

a-hariti and others added 2 commits March 17, 2025 16:22
…y-sdk.mdx

Co-authored-by: Alex Krawiec <alex.krawiec@sentry.io>
…y-sdk.mdx

Co-authored-by: Alex Krawiec <alex.krawiec@sentry.io>
@a-hariti a-hariti requested a review from coolguyzone March 18, 2025 15:51
@a-hariti
Copy link
Collaborator Author

@coolguyzone plz take a look again and please approve this PR

Copy link
Contributor

@coolguyzone coolguyzone left a comment

Choose a reason for hiding this comment

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

I wasn't able to successfully code along with the updates, it seems like the sample repo would need to be updated to support this, lmk what you think!

1. Install the Sentry React SDK using NPM.

Make sure you're in the `frontend-tutorial` project folder.
Open src/index.js where you will find the 'Sentry.init()' call after the last import statement. Paste the DSN key value you copied from the project created in the [previous section](https://github.com/product/sentry-basics/integrate-frontend/create-new-project/) into the call and save this file:
Copy link
Contributor

Choose a reason for hiding this comment

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

The file to open here should be src/instrument.js, correct?

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.

3 participants