Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Commit 7e9fe83

Browse files
authored
Update rum-session-replay.rst
Added examples on how to unmask text in session replay Changed link to 1.1.3. rr-web version of docs
1 parent 4445911 commit 7e9fe83

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

rum/rum-session-replay.rst

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ To deactivate session replay you can either:
103103
Additional instrumentation settings
104104
------------------------------------
105105

106-
For more information on configuration options, see :new-page:`rrweb guide <https://github.com/rrweb-io/rrweb/blob/master/guide.md#guide>` on GitHub.
106+
For more information on configuration options, see :new-page:`rrweb guide <https://github.com/rrweb-io/rrweb/blob/rrweb%401.1.3/guide.md#guide>` on GitHub.
107107

108108
Redact information
109109
==============================
@@ -114,6 +114,32 @@ Text is redacted by default, you can optionally configure image redaction as wel
114114
:width: 70%
115115

116116

117+
To disable all text redaction, set ``maskTextSelector: false``. To customize which elements are redacted, you can use the ``rr-mask`` class. Any element with this class will have its text redacted. Additionally, you can customize the class name by setting the ``maskTextClass`` option to a custom value, which can also accept a regular expression, or you can set custom selector to ``maskTextSelector`` option.
118+
119+
Examples:
120+
121+
.. code-block:: html
122+
123+
// Will disable text redaction on all elements except elements with default 'rr-mask' class
124+
SplunkSessionRecorder.init({
125+
// ... other configuration options
126+
maskTextSelector: false
127+
});
128+
129+
// Will redact only elements with 'my-custom-mask-class' class
130+
SplunkSessionRecorder.init({
131+
// ...
132+
maskTextClass: 'my-custom-mask-class',
133+
maskTextSelector: false
134+
});
135+
136+
// Redacts elements with class names starting with "sensitive-" or with specified IDs
137+
SplunkSessionRecorder.init({
138+
// ...
139+
maskTextClass: /^sensitive-.*$/,
140+
maskTextSelector: '#private-info, #hidden-section'
141+
});
142+
117143

118144
Image redaction
119145
----------------

0 commit comments

Comments
 (0)