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
@@ -71,38 +73,53 @@ Initialize this code snippet to set up session replay through Splunk CDN.
71
73
72
74
73
75
74
-
NPM
76
+
Self-hosted
75
77
--------------------------------------------
76
78
77
-
Use the following command to set up session replay with NPM through a package named ``@splunk/otel-web-session-recorder``.
79
+
#. Download the desired version of :new-page:`splunk-otel-web-session-recorder.js <https://github.com/signalfx/splunk-otel-js-web/releases/latest/download/splunk-otel-web-session-recorder.js>`.
80
+
#. Deploy the file in a location accessible by the users of your application.
81
+
#. Add the following session replay snippet after the ``SplunkRum.init`` snippet:
To avoid gaps in your data, load and initialize the Splunk JavaScript Agent asynchronously and as early as possible.
85
89
86
-
.. code-block:: html
87
90
88
-
import SplunkSessionRecorder from '@splunk/otel-web-session-recorder'
91
+
NPM
92
+
--------------------------------------------
89
93
90
-
SplunkSessionRecorder.init({
91
-
realm: '<realm>',
92
-
rumAccessToken: '<your_rum_token>'
93
-
});
94
+
#. Use the following command to set up session replay with NPM through a package named ``@splunk/otel-web-session-recorder``.
95
+
96
+
.. code-block:: html
97
+
98
+
npm install @splunk/otel-web-session-recorder
99
+
100
+
#. Next, initialize this code snippet:
101
+
102
+
.. code-block:: html
103
+
104
+
import SplunkSessionRecorder from '@splunk/otel-web-session-recorder'
105
+
106
+
SplunkSessionRecorder.init({
107
+
realm: '<realm>',
108
+
rumAccessToken: '<your_rum_token>'
109
+
});
94
110
95
111
96
112
Deactivate session replay
97
113
--------------------------------------------
114
+
98
115
To deactivate session replay you can either:
99
116
100
117
* Turn it off for the particular session replay.
101
118
* Remove the instrumentation if you want to deactivate it completely.
102
119
103
120
104
121
Additional instrumentation settings
105
-
------------------------------------
122
+
--------------------------------------------
106
123
107
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