Skip to content

Commit 899bea9

Browse files
authored
docs(replay): Fix typos and more in Replay Hydration Error docs (#10770)
1 parent 446bf25 commit 899bea9

File tree

3 files changed

+23
-15
lines changed

3 files changed

+23
-15
lines changed

docs/platforms/javascript/common/session-replay/issue-types.mdx

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ description: "Learn about the Issue types that Session Replay can detect."
2121

2222
A _[replay issue](/product/issues/issue-details/replay-issues/)_ is an issue detected using captured Session Replay data. If your application is configured with [Session Replay](/product/session-replay/), problems will be detected on the server side during replay ingest, and grouped into issues. We group similar events into issues based on a fingerprint. For replay issues, a fingerprint is primarily based on the problem type and the url or transaction name where the problem occurred.
2323

24-
You can configure which issue types are created by visiting Project Settings > Replay and toggling detection on or off for each issue type.
24+
You can configure which issue types are created by visiting Project Settings > Replay and toggling detection on or off for each issue type. By default all issue types are enabled.
2525

2626
![Replay settings page](./img/replay-settings.png)
2727

@@ -31,16 +31,24 @@ You can configure which issue types are created by visiting Project Settings > R
3131

3232
Sometimes rage or dead clicks will be detected on elements which are not expected to mutate the DOM, like a "Print" or "Download" button. In this case, you can configure `slowClickIgnoreSelectors`, which will prevent those buttons from generating new issues.
3333

34+
<Note>
35+
You'll need to have SDK version 7.60.1 or higher in order to be able to see **rage click issues**.
36+
</Note>
37+
3438
## Configuring Hydration Errors
3539

36-
When a [hydration error](/product/issues/issue-details/replay-issues/hydration-error/) occurs in your React app, the SDK will emit an error object as well as a replay breadcrumb, both of which contain data about the hydration problem. Both of these are sent to the server for processing. When you're looking at the issue stream you'll see Hydration Error issues which could come from either data source. However you will only see the diff tools which make debugging easier if a replay is associated with the error.
40+
When a [hydration error](/product/issues/issue-details/replay-issues/hydration-error/) occurs in your React app, the SDK will emit an error object as well as a replay breadcrumb, both of which contain data about the hydration problem. Both of these are sent to the server for processing. When you're looking at the issue stream you'll see Hydration Error issues which could come from either data source. However, you will only see the diff tools which make debugging easier if a replay is associated with the error.
3741

3842
For this reason we recommend having both [Inbound Filter](/concepts/data-management/filtering/) enabled and the "Create Hydration Error Issues" Replay setting enabled as well. This is also the default!
3943

4044
You can have your preferences configured in one of four ways:
4145
| Inbound Filters | Replay Hydration Error toggle | Result |
4246
| --- | --- | --- |
43-
| enabled | enabled | (recommended) Issue created based on replay breadcrumb data. |
47+
| enabled | enabled | (recommended) Issue created based on replay data. |
4448
| enabled | disabled | No issues will be created. |
45-
| disabled | enabled | Two issues created from both replay breadcrumb, and error data. The issues are duplicates. |
49+
| disabled | enabled | Two issues created from both replay, and error data. The issues are duplicates. |
4650
| disabled | disabled | Issue created from captured error data. |
51+
52+
<Note>
53+
You'll need to have SDK version 7.87.0 or higher in order to be able to detect **hydration error issues** from replay data.
54+
</Note>
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
---
22
title: Hydration Error
33
sidebar_order: 50
4-
description: "Learn about hydration errors."
4+
description: "Learn about Session Replay hydration errors."
55
---
66

77
Hydration errors are a React-specific problem that happen when the initial client UI does not match what was rendered on the server. They can result in extra work for the browser, and a slower pageload experience for users.
88

99
## Prerequisites for Seeing Hydration Error Diff Tools
1010

11-
Hydration Errors can come into your issue stream either as regular error events, or they could be detected inside a replay session and converted into an issue by the server. Read more about
11+
Hydration Errors can come into your issue stream either as regular error events, or they could be detected inside a replay and converted into an issue by the server. Read more about
1212
[configuring hydration errors](/platforms/javascript/session-replay/issue-types/) to learn about the differences.
1313

14-
If the hydration error event instance has an associated replay session, then you will see diff tools on the issue details page to make debugging the hydration error easier.
14+
If the hydration error event instance has an associated replay, then you will see diff tools on the **Issue Details** page to make debugging the hydration error easier.
1515

1616
## Debugging Hydration Errors
1717

1818
Hydration errors represent a mismatch between the server-rendered HTML, and the client-rendered HTML. So it's beneficial to compare the before and after state of a webpage to understand what's changed, and decide how to make those two states consistent. To do this, we provide a few diff tools to see the differences -- both visually and by looking at the rendered HTML itself.
1919

20-
Generally the visual tools are a good place to start to identify the issue, but keep in mind that sometimes differences can appear below the fold, or there can be differences in hidden DOM nodes or attributes, so inspecting the HTML is important too.
20+
Generally, the visual tools are a good place to start to identify the issue, but keep in mind that sometimes differences can appear below the fold, or there can be differences in hidden DOM nodes or attributes, so inspecting the HTML is important too.
2121

2222
### Example Error
2323

@@ -31,18 +31,18 @@ The image slider tool allows for comparing the two page states by overlaying the
3131

3232
![image slider tool](./img/hydration-error-image-slider-tool.png)
3333

34-
#### Side by Side Image Tool
34+
#### Side-by-Side Image Tool
3535

36-
View images side by side to see large chunks of the page that may differ.
36+
View images side-by-side to see large chunks of the page that may differ.
3737

3838
![side by side image tool](./img/hydration-error-side-by-side-image-tool.png)
3939

4040
#### HTML Diff Tool
4141

42-
The HTML diff tool is a basic HTML comparison. It is useful if the hydration error is caused by hidden DOM nodes, different attributes on a DOM node, or mismatched content below the fold.
42+
The HTML diff tool is a basic HTML comparison. It is useful if the hydration error is caused by hidden DOM nodes, different attributes on a DOM node, or there's mismatched content below the fold.
4343

4444
![html diff tool](./img/hydration-error-html-diff-tool.png)
4545

4646
## Privacy
4747

48-
The diff tools all rely on replay data, so any PII data within the webpage will be masked or blocked before being sent to the server. Read more about [Protecting user privacy in Session Replay](/security-legal-pii/scrubbing/protecting-user-privacy/) and [how to configure Session Replay to maintain user privacy](/platforms/javascript/session-replay/privacy/).
48+
The diff tools all rely on replay data, so any PII data within the webpage will be masked or blocked before being sent to the server by default. Read more about [Protecting user privacy in Session Replay](/security-legal-pii/scrubbing/protecting-user-privacy/) and [how to configure Session Replay to maintain user privacy](/platforms/javascript/session-replay/privacy/).

docs/product/issues/issue-details/replay-issues/index.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ If you've enabled [Session Replay](/product/explore/session-replay/), you'll be
99
## Quota Consumption
1010

1111
<Note>
12-
Replay issues do not consume issue quota.
12+
Replay issues do not consume error quota.
1313
</Note>
1414

15-
When a replay is created it consumes [replay quota](/pricing/quotas/manage-replay-quota/) (not to be confused with [error quota](/pricing/quotas/manage-event-stream-guide/)). As the replay session is being processed by the server Sentry detects the replay issue types listed below and groups those into issues. These errors are created on the backend after ingest and do not comsume error quota. They will not appear on your [stats](https://sentry.io/orgredirect/organizations/:orgslug/stats/) page under the "Total Errors" or "Accepted Errors" graphs. You are not billed for their volume.
15+
When a replay is created it consumes [replay quota](/pricing/quotas/manage-replay-quota/) (not to be confused with [error quota](/pricing/quotas/manage-event-stream-guide/)). As the replay is being processed by the server Sentry detects the replay issue types listed below and groups those into issues. These errors are created on the backend after ingest and do not consume error quota. They will not appear on your [stats](https://sentry.io/orgredirect/organizations/:orgslug/stats/) page under the "Total Errors" or "Accepted Errors" graphs. You are not billed for their volume.
1616

1717
## Replay Issue Types
1818

1919
- [Rage clicks](/product/issues/issue-details/replay-issues/rage-clicks/) are a series of consecutive clicks on the same unresponsive page element. They are a strong signal of user frustration and most likely deserve your attention.
2020

21-
- [Hydration errors](/product/issues/issue-details/replay-issues/hydration-error/) are a React-specific problem that happen when the initial UI does not match what was rendered on the server. They can result in extra work for the browser, and a slower pageload experience for users.
21+
- [Hydration errors](/product/issues/issue-details/replay-issues/hydration-error/) are a React-specific problem that happen when the initial UI does not match what was rendered on the server. They can result in a slower pageload experience for users.

0 commit comments

Comments
 (0)