-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
fix(docs): update sentry basics react tutorial #12967
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
base: master
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
2 Skipped Deployments
|
Bundle ReportChanges will decrease total bundle size by 15 bytes (-0.0%) ⬇️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: sentry-docs-client-array-pushAssets Changed:
view changes for bundle: sentry-docs-server-cjsAssets Changed:
|
docs/product/sentry-basics/integrate-frontend/initialize-sentry-sdk.mdx
Outdated
Show resolved
Hide resolved
docs/product/sentry-basics/integrate-frontend/initialize-sentry-sdk.mdx
Outdated
Show resolved
Hide resolved
coolguyzone
left a comment
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.
Thanks for updating! 🤙🛳️
…y-sdk.mdx Co-authored-by: Alex Krawiec <alex.krawiec@sentry.io>
…y-sdk.mdx Co-authored-by: Alex Krawiec <alex.krawiec@sentry.io>
|
@coolguyzone plz take a look again and please approve this PR |
coolguyzone
left a comment
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.
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: |
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.
The file to open here should be src/instrument.js, correct?
related #12918
todo:
instrument.jsfile convention from the React guide