You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 2, 2025. It is now read-only.
There are many reasons why you might want to replay sessions. Here are a few:
17
18
18
19
* 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:
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>`.
27
28
28
29
29
30
Set up session replay
30
-
=====================
31
-
There are two ways to set up session replay: CDN or NPM.
There are three ways to set up session replay: CDN, self-hosted, or NPM.
34
+
35
+
.. note::
35
36
Initialize Splunk Browser RUM before you initialize the session recorder package.
36
37
38
+
37
39
This example shows the order in which to initialize the scripts:
38
40
39
41
.. code-block:: html
@@ -89,35 +91,35 @@ To avoid gaps in your data, load and initialize the Splunk JavaScript Agent asyn
89
91
NPM
90
92
--------------------------------------------
91
93
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``.
93
95
96
+
.. code-block:: html
94
97
95
-
.. code-block:: html
98
+
npm install @splunk/otel-web-session-recorder
96
99
97
-
npm install @splunk/otel-web-session-recorder
100
+
#. Next, initialize this code snippet:
98
101
99
-
Next, initialize this code snippet:
102
+
.. code-block:: html
100
103
101
-
.. code-block:: html
104
+
import SplunkSessionRecorder from '@splunk/otel-web-session-recorder'
102
105
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
+
});
109
110
110
111
111
112
Deactivate session replay
112
113
--------------------------------------------
114
+
113
115
To deactivate session replay you can either:
114
116
115
117
* Turn it off for the particular session replay.
116
118
* Remove the instrumentation if you want to deactivate it completely.
117
119
118
120
119
121
Additional instrumentation settings
120
-
------------------------------------
122
+
--------------------------------------------
121
123
122
124
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.
0 commit comments