Skip to content

Commit 8ef6226

Browse files
mydeashanamatthewsLuca Forstner
authored
Apply suggestions from code review
Co-authored-by: Shana Matthews <[email protected]> Co-authored-by: Luca Forstner <[email protected]>
1 parent afc3b2c commit 8ef6226

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

src/platform-includes/getting-started-config/javascript.remix.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ To use this SDK, initialize Sentry in your Remix entry points for both the clien
22

33
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.
44

5-
The two configuration types are mostly the same, except that some configuration, like the one for Session Replay, only works in `entry.client.tsx`.
5+
The two configuration types are mostly the same, except that some configuration features, like Session Replay, only work in `entry.client.tsx`.
66

77
```typescript {tabTitle:Client} {filename: entry.client.tsx}
88
import { useLocation, useMatches } from "@remix-run/react";

src/platforms/common/usage/sdk-fingerprinting.mdx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,18 @@ You can use variable substitution to fill dynamic values into the fingerprint ge
3333

3434
## Group Errors With Greater Granularity
3535

36-
Let's imagine your application queries a Remote Procedure Call Model (RPC) interface or external Application Programming Interface (API) service, so the stack trace is generally the same (even if the outgoing request is very different).
36+
In some scenarios, you'll want to group errors more granularly.
37+
38+
For example, if your application queries a Remote Procedure Call Model (RPC) interface or external Application Programming Interface (API) service, the stack trace is generally the same, even if the outgoing request is very different.
3739

3840
The following example will split up the default group Sentry would create (represented by `{{ default }}`) further, taking some attributes on the error object into account:
3941

4042
<PlatformContent includePath="set-fingerprint/rpc" />
4143

4244
## Group Errors More Aggressively
4345

44-
If a generic error, such as a database connection error, has many different stack traces and never groups them together, you can overwrite Sentry's grouping by omitting `{{ default }}` from the array:
46+
You can also overwrite Sentry's grouping entirely.
47+
48+
For example, if a generic error, such as a database connection error, has many different stack traces and never groups them together, you can overwrite Sentry's grouping by omitting `{{ default }}` from the array:
4549

4650
<PlatformContent includePath="set-fingerprint/database-connection" />

src/platforms/javascript/guides/nextjs/manual-setup.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ If you're updating your Sentry SDK to the latest version, check out our [migrati
2626

2727
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.
2828

29-
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`.
29+
Please note that there are slight differences between these files since they run in different places (browser, server, edge), so copy them carefully!
3030

3131
```javascript {tabTitle:Client} {filename:sentry.client.config.(js|ts)}
3232
import * as Sentry from "@sentry/nextjs";

0 commit comments

Comments
 (0)