@coralogix/browser 1.0.105 → 1.1.2
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 +75 -4
- package/package.json +1 -1
- package/src/version.d.ts +1 -1
- package/src/version.js +1 -1
- package/src/version.js.map +1 -1
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,
|
|
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
|
-
###
|
|
74
|
-
Turn on/off specific
|
|
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,77 @@ 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
|
+
#### Recording Manually
|
|
113
|
+
You can always start/stop your session recording manually as follows:
|
|
114
|
+
```javascript
|
|
115
|
+
// To start manually the Session Recording
|
|
116
|
+
CoralogixRum.startSessionRecording();
|
|
117
|
+
|
|
118
|
+
// To stop the Session Recording
|
|
119
|
+
CoralogixRum.stopSessionRecording();
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
#### Privacy & Security
|
|
123
|
+
To protect your users’ privacy and sensitive information, elements containing certain class names are blocked or masked in recordings, as follows:
|
|
124
|
+
|
|
125
|
+
```javascript
|
|
126
|
+
CoralogixRum.init({
|
|
127
|
+
// ...
|
|
128
|
+
sessionRecordingConfig: {
|
|
129
|
+
// ..
|
|
130
|
+
blockClass: 'rr-block', // Use a string or RegExp to redact all elements that contain this class, defaults to rr-block.
|
|
131
|
+
ignoreClass: 'rr-ignore', // Use a string or RegExp to Ignore all events that contain this class, defaults to rr-ignore.
|
|
132
|
+
maskTextClass: 'rr-mask', // Use a string or RegExp to mask all elements that contain this class, defaults to rr-mask.
|
|
133
|
+
maskAllInputs: false, // Mask all input content as * (Default false), refer to Input types.
|
|
134
|
+
maskInputOptions: { password:true } // Mask some kinds of input as *, By Default the SDK masking password inputs.
|
|
135
|
+
},
|
|
136
|
+
});
|
|
137
|
+
```
|
|
138
|
+
Example:
|
|
139
|
+
```html
|
|
140
|
+
<div class="rr-block">Dont record me</div>
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
| Element | Action |
|
|
145
|
+
| --- |---------------------------------------------------------------------------------------------|
|
|
146
|
+
| .rr-block | An element with the class name .rr-block will not be recorded. Instead, it will replay as a placeholder with the same dimension. |
|
|
147
|
+
| .rr-ignore | An element with the class name .rr-ignore will not record its input events |
|
|
148
|
+
| .rr-mask | All text of elements and their children will be masked. |
|
|
149
|
+
|
|
150
|
+
#### Performance
|
|
151
|
+
Session Recording works by recording incremental DOM changes that occur in your web application.
|
|
152
|
+
To avoid performance issues, Session Recording will stop recording if it detects a large number of mutations (Default: 5,000).
|
|
153
|
+
```javascript
|
|
154
|
+
CoralogixRum.init({
|
|
155
|
+
// ...
|
|
156
|
+
sessionRecordingConfig: {
|
|
157
|
+
// ...
|
|
158
|
+
// According to MutationObserver API, A large number of DOM mutations can negatively impact performance
|
|
159
|
+
maxMutations: 5000
|
|
160
|
+
},
|
|
161
|
+
});
|
|
162
|
+
```
|
|
163
|
+
|
|
92
164
|
### Ignore Errors
|
|
93
165
|
The ignoreErrors option allows you to exclude errors that meet specific criteria.
|
|
94
166
|
This options accepts a set of strings and regular expressions to match against the event's error message.
|
|
@@ -105,7 +177,6 @@ CoralogixRum.init({
|
|
|
105
177
|
|
|
106
178
|
### Mask elements
|
|
107
179
|
User interactions with specific elements can be masked to prevent sensitive data exposure.
|
|
108
|
-
|
|
109
180
|
<br>use `maskInputTypes` to specify the types of inputs to mask. defaults to: `['password', 'email', 'tel']`
|
|
110
181
|
<br>use `maskClass` to specify the class name that will be used to mask any element, string or RegExp. default is `cx-mask`.
|
|
111
182
|
|
package/package.json
CHANGED
package/src/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.1.2";
|
package/src/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const SDK_VERSION = '1.
|
|
1
|
+
export const SDK_VERSION = '1.1.2';
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
package/src/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../../../libs/browser/src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../../../libs/browser/src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG,OAAO,CAAC"}
|