-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
feat: Update setup docs for JS SDKs #6836
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
e55bfd0
to
c7d4cab
Compare
Seems like this will close #5351? |
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 so much for these cleanups @mydea !
This looks really good. Just left some small suggestions for cleanup and questions.
FYI, we are starting to add linting on the docs code snippets, so whitespace fixes should start happening automatically soon.
src/platform-includes/performance/configure-sample-rate/javascript.mdx
Outdated
Show resolved
Hide resolved
src/platforms/javascript/common/configuration/sentry-testkit/index.mdx
Outdated
Show resolved
Hide resolved
src/platform-includes/performance/enable-automatic-instrumentation/javascript.mdx
Show resolved
Hide resolved
c7d4cab
to
0dcf4b6
Compare
@@ -1,13 +1,16 @@ | |||
To use this SDK, initialize Sentry in your Remix entry points for both the client and server. | |||
|
|||
```typescript {filename: entry.client.tsx} | |||
Create two files in the root directory of your project, `entry.client.tsx` and `entry.server.tsx` (if they don't exist yet). In these files, add your initialization code for the client-side SDK and server-side SDK, respectively. |
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.
@AbhiPrasad could you sanity check this?
@@ -26,17 +26,25 @@ If you're updating your Sentry SDK to the latest version, check out our [migrati | |||
|
|||
Create three files in the root directory of your project, `sentry.client.config.js`, `sentry.server.config.js` and `sentry.edge.config.js`. In these files, add your initialization code for the client-side SDK and server-side SDK, respectively. We've included some examples below. | |||
|
|||
For each configuration: | |||
The three configuration types are mostly the same, except that some configuration, like the one for Session Replay, only works in `sentry.client.config.js`. |
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.
@lforst could you sanity check this?
src/platform-includes/getting-started-config/javascript.remix.mdx
Outdated
Show resolved
Hide resolved
|
||
```javascript {filename:sentry.(client|server|edge).js} | ||
```javascript {tabTitle:Client} {filename:sentry.client.config.(js|ts)} |
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.
TIL
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 have one slight worry but let's see what happens first: Adding replay has a giant bundle size impact but we don't tell people here. They might be shocked when looking at their graphs at first. In the Next.js wizard I added a comment in the code saying like "if you don't plan on using the replay feature you can remove the integration".
Just a thought - we don't have to do this now but we could if we get a lot of issues complaining about bundle size again.
style(lint): Auto commit lint changes style(lint): Auto commit lint changes style(lint): Auto commit lint changes style(lint): Auto commit lint changes style(lint): Auto commit lint changes style(lint): Auto commit lint changes style(lint): Auto commit lint changes style(lint): Auto commit lint changes style(lint): Auto commit lint changes style(lint): Auto commit lint changes style(lint): Auto commit lint changes style(lint): Auto commit lint changes
8ef6226
to
b1ad4db
Compare
21bf873
to
c4f1c83
Compare
--------- Co-authored-by: Shana Matthews <[email protected]>
I took a bit of time to go through the browser JS docs pages, and just cleaned them up a bit/aligned them a bit in minor ways that I noticed.
Major things I did:
<PlatformIdentifier>
, I updated those (that I found)Closes #5351