@coralogix/browser 1.0.105 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -29,7 +29,7 @@ CoralogixRum.init({
29
29
  payment: 'visa',
30
30
  },
31
31
  ignoreErrors: ['some error message to ignore'],
32
- sessionSampleRate: 100 // Percentage of overall sessions being tracked, defaults to 100%
32
+ sessionSampleRate: 100 // Percentage of overall sessions being tracked, Default to 100%
33
33
  });
34
34
  ```
35
35
 
@@ -70,8 +70,9 @@ CoralogixRum.log(CoralogixLogSeverity.Error, 'this is a log', { key: 'value' })
70
70
  CoralogixRum.error('this is a log with error severity', { key: 'value' })
71
71
  ```
72
72
 
73
- ### instrumentations
74
- Turn on/off specific instrumentations, defaults to all true.
73
+ ### Instrumentation's
74
+ Turn on/off specific instrumentation, default to all trues.
75
+ Each instrumentation is responsible for which data the SDK will track and collect for you.
75
76
 
76
77
  ```javascript
77
78
  CoralogixRum.init({
@@ -89,6 +90,73 @@ CoralogixRum.init({
89
90
  });
90
91
  ````
91
92
 
93
+ ### Session Recording
94
+ Session Recording enhances your user experience monitoring by enabling you to record and visually replay the web browsing activities of your users.
95
+
96
+ ```javascript
97
+ CoralogixRum.init({
98
+ // ...
99
+ sessionRecordingConfig: {
100
+ enable: true, // Must declare.
101
+ /**
102
+ * If autoStartSessionRecording is false, you can manually start & stop your session recording.
103
+ * Refer to Recording Manually Section.
104
+ **/
105
+ autoStartSessionRecording: true, // Automatically records your session when SDK is up.
106
+ recordConsoleEvents: true, // Will record all console events from dev tools. Levels: log, debug, warn, error, info, table etc..
107
+ sessionRecordingSampleRate: 100, // Percentage of overall sessions recording being tracked, defaults to 100% and applied after the overall sessionSampleRate.
108
+ },
109
+ });
110
+ ```
111
+
112
+ #### Privacy & Security
113
+ To protect your users’ privacy and sensitive information, elements containing certain class names are blocked or masked in recordings, as follows:
114
+
115
+ ```javascript
116
+ CoralogixRum.init({
117
+ // ...
118
+ sessionRecordingConfig: {
119
+ // ..
120
+ blockClass: 'rr-block', // Use a string or RegExp to configure which elements should be blocked.
121
+ ignoreClass: 'rr-ignore', // Use a string or RegExp to configure which elements should be ignored.
122
+ maskTextClass: 'rr-mask', // Use a string or RegExp to configure which elements should be masked.
123
+ maskAllInputs: false, // Mask all input content as * (Default false), refer to Input types.
124
+ maskInputOptions: { password:true } // Mask some kinds of input as *, By Default the SDK masking password inputs.
125
+ },
126
+ });
127
+ ```
128
+
129
+
130
+ | Element | Action |
131
+ | --- |---------------------------------------------------------------------------------------------|
132
+ | .rr-block | The element will not be recorded. It will replay as a placeholder with the same dimension. |
133
+ | .rr-ignore | The element will not recorded. |
134
+ | .rr-mask | All text of elements and their children will be masked. |
135
+
136
+ #### Performance
137
+ Session Recording works by recording incremental DOM changes that occur in your web application.
138
+ To avoid performance issues, Session Recording will stop recording if it detects a large number of mutations (Default: 5,000).
139
+ ```javascript
140
+ CoralogixRum.init({
141
+ // ...
142
+ sessionRecordingConfig: {
143
+ // ...
144
+ // According to MutationObserver API, A large number of DOM mutations can negatively impact performance
145
+ maxMutations: 5000
146
+ },
147
+ });
148
+ ```
149
+
150
+ #### Recording Manually
151
+ You can always start/stop your session recording manually as follows:
152
+ ```javascript
153
+ // To stop the Session Recording
154
+ CoralogixRum.stopSessionRecording();
155
+
156
+ // To start manually the Session Recording
157
+ CoralogixRum.startSessionRecording();
158
+ ```
159
+
92
160
  ### Ignore Errors
93
161
  The ignoreErrors option allows you to exclude errors that meet specific criteria.
94
162
  This options accepts a set of strings and regular expressions to match against the event's error message.
@@ -105,7 +173,6 @@ CoralogixRum.init({
105
173
 
106
174
  ### Mask elements
107
175
  User interactions with specific elements can be masked to prevent sensitive data exposure.
108
-
109
176
  <br>use `maskInputTypes` to specify the types of inputs to mask. defaults to: `['password', 'email', 'tel']`
110
177
  <br>use `maskClass` to specify the class name that will be used to mask any element, string or RegExp. default is `cx-mask`.
111
178
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coralogix/browser",
3
- "version": "1.0.105",
3
+ "version": "1.1.1",
4
4
  "description": "Official Coralogix SDK for browsers",
5
5
  "license": "MIT",
6
6
  "dependencies": {
package/src/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.0.105";
1
+ export declare const SDK_VERSION = "1.1.1";
package/src/version.js CHANGED
@@ -1,2 +1,2 @@
1
- export const SDK_VERSION = '1.0.105';
1
+ export const SDK_VERSION = '1.1.1';
2
2
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../../../../libs/browser/src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG,SAAS,CAAC"}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../../../libs/browser/src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG,OAAO,CAAC"}