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

Commit 8137cf2

Browse files
author
ada
committed
Updated + fixed formatting issue
1 parent ebfe601 commit 8137cf2

File tree

1 file changed

+20
-18
lines changed

1 file changed

+20
-18
lines changed

rum/rum-session-replay.rst

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ Replay a session to take a look at exactly what a user experienced and make info
1212

1313

1414
Use cases
15-
===================
15+
======================================================================
16+
1617
There are many reasons why you might want to replay sessions. Here are a few:
1718

1819
* Reduce the amount of time support teams take to troubleshoot a problem. By seeing errors from the perspective of an actual user, support teams can quickly identify what happened, and take action. Without session replay, support teams could spend a long time investigating a variety of possible causes based on an incomplete description of the problem.
@@ -21,19 +22,20 @@ There are many reasons why you might want to replay sessions. Here are a few:
2122

2223

2324
Prerequisite
24-
=================
25+
======================================================================
2526

2627
Session replay is available for enterprise customers only. For more information on each type of subscription, see :new-page:`Splunk RUM Pricing <https://www.splunk.com/en_us/products/pricing/faqs/observability.html#splunk-rum>`.
2728

2829

2930
Set up session replay
30-
=====================
31-
There are two ways to set up session replay: CDN or NPM.
31+
======================================================================
3232

33-
.. admonition:: Note
34-
33+
There are three ways to set up session replay: CDN, self-hosted, or NPM.
34+
35+
.. note::
3536
Initialize Splunk Browser RUM before you initialize the session recorder package.
3637

38+
3739
This example shows the order in which to initialize the scripts:
3840

3941
.. code-block:: html
@@ -89,35 +91,35 @@ To avoid gaps in your data, load and initialize the Splunk JavaScript Agent asyn
8991
NPM
9092
--------------------------------------------
9193

92-
Use the following command to set up session replay with NPM through a package named ``@splunk/otel-web-session-recorder``.
94+
#. Use the following command to set up session replay with NPM through a package named ``@splunk/otel-web-session-recorder``.
9395

96+
.. code-block:: html
9497

95-
.. code-block:: html
98+
npm install @splunk/otel-web-session-recorder
9699

97-
npm install @splunk/otel-web-session-recorder
100+
#. Next, initialize this code snippet:
98101

99-
Next, initialize this code snippet:
102+
.. code-block:: html
100103

101-
.. code-block:: html
104+
import SplunkSessionRecorder from '@splunk/otel-web-session-recorder'
102105

103-
import SplunkSessionRecorder from '@splunk/otel-web-session-recorder'
104-
105-
SplunkSessionRecorder.init({
106-
realm: '<realm>',
107-
rumAccessToken: '<your_rum_token>'
108-
});
106+
SplunkSessionRecorder.init({
107+
realm: '<realm>',
108+
rumAccessToken: '<your_rum_token>'
109+
});
109110

110111

111112
Deactivate session replay
112113
--------------------------------------------
114+
113115
To deactivate session replay you can either:
114116

115117
* Turn it off for the particular session replay.
116118
* Remove the instrumentation if you want to deactivate it completely.
117119

118120

119121
Additional instrumentation settings
120-
------------------------------------
122+
--------------------------------------------
121123

122124
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.
123125

0 commit comments

Comments
 (0)