@coralogix/browser 3.5.1 → 3.7.0
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/CHANGELOG.md +11 -0
- package/README.md +1 -0
- package/index.esm2.js +2 -1
- package/package.json +1 -1
- package/sessionRecorder.esm.js +4 -0
- package/src/constants.d.ts +1 -0
- package/src/session/session.model.d.ts +1 -0
- package/src/version.d.ts +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -294,6 +294,7 @@ CoralogixRum.init({
|
|
|
294
294
|
autoStartSessionRecording: true, // Automatically records your session when SDK is up.
|
|
295
295
|
recordConsoleEvents: true, // Will record all console events from dev tools. Levels: log, debug, warn, error, info, table etc..
|
|
296
296
|
sessionRecordingSampleRate: 100, // Percentage of overall sessions recording being tracked, defaults to 100% and applied after the overall sessionSampleRate.
|
|
297
|
+
immediateFlush: false, // Flush recording events immediately on start to capture short-duration sessions (<10s). Defaults to false.
|
|
297
298
|
},
|
|
298
299
|
});
|
|
299
300
|
```
|
package/index.esm2.js
CHANGED
|
@@ -2695,6 +2695,7 @@ var CoralogixDomainsApiUrlMap = {
|
|
|
2695
2695
|
EU2: 'https://ingress.eu2.rum-ingress-coralogix.com',
|
|
2696
2696
|
US1: 'https://ingress.us1.rum-ingress-coralogix.com',
|
|
2697
2697
|
US2: 'https://ingress.us2.rum-ingress-coralogix.com',
|
|
2698
|
+
US3: 'https://ingress.us3.rum-ingress-coralogix.com',
|
|
2698
2699
|
AP1: 'https://ingress.ap1.rum-ingress-coralogix.com',
|
|
2699
2700
|
AP2: 'https://ingress.ap2.rum-ingress-coralogix.com',
|
|
2700
2701
|
AP3: 'https://ingress.ap3.rum-ingress-coralogix.com',
|
|
@@ -4224,7 +4225,7 @@ function resolveUrlBlueprinters(urlBlueprinters) {
|
|
|
4224
4225
|
return resolvedUrlBlueprinters;
|
|
4225
4226
|
}
|
|
4226
4227
|
|
|
4227
|
-
var SDK_VERSION = '3.
|
|
4228
|
+
var SDK_VERSION = '3.7.0';
|
|
4228
4229
|
|
|
4229
4230
|
function shouldDropEvent(cxRumEvent, options) {
|
|
4230
4231
|
if (isDocumentErrorWithoutMessage(cxRumEvent)) {
|
package/package.json
CHANGED
package/sessionRecorder.esm.js
CHANGED
|
@@ -6005,6 +6005,10 @@ var SessionRecorder = (function () {
|
|
|
6005
6005
|
}
|
|
6006
6006
|
};
|
|
6007
6007
|
SessionRecorder.prototype.startBatchingRecords = function () {
|
|
6008
|
+
var _a, _b;
|
|
6009
|
+
if ((_b = (_a = getSdkConfig()) === null || _a === void 0 ? void 0 : _a.sessionRecordingConfig) === null || _b === void 0 ? void 0 : _b.immediateFlush) {
|
|
6010
|
+
this.prepareRecordEventsBeforeSend();
|
|
6011
|
+
}
|
|
6008
6012
|
this.batchingTimeInterval = cxSetInterval(this.prepareRecordEventsBeforeSend, MAX_BATCH_TIME_MS);
|
|
6009
6013
|
};
|
|
6010
6014
|
SessionRecorder.prototype.initializeSessionWorker = function (workerUrl) {
|
package/src/constants.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export interface SessionRecordingConfig extends Omit<recordOptions<eventWithTime
|
|
|
10
10
|
excludeDOMOptions?: SlimDOMOptions;
|
|
11
11
|
sessionRecordingSampleRate?: number;
|
|
12
12
|
workerUrl?: string;
|
|
13
|
+
immediateFlush?: boolean;
|
|
13
14
|
}
|
|
14
15
|
export interface SessionWithErrorConfig {
|
|
15
16
|
enable: boolean;
|
package/src/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "3.
|
|
1
|
+
export declare const SDK_VERSION = "3.7.0";
|