@coralogix/browser 1.4.19 → 1.6.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 +144 -0
- package/LICENSE +201 -0
- package/README.md +10 -7
- package/coralogix-browser-sdk.esm.d.ts +1 -0
- package/coralogix-browser-sdk.esm.js +6635 -0
- package/package.json +19 -5
- package/src/types.d.ts +1 -1
- package/src/version.d.ts +1 -1
- package/src/Request.js +0 -32
- package/src/Request.js.map +0 -1
- package/src/add-timing.js +0 -9
- package/src/add-timing.js.map +0 -1
- package/src/before-send.js +0 -40
- package/src/before-send.js.map +0 -1
- package/src/configuration.js +0 -67
- package/src/configuration.js.map +0 -1
- package/src/constants.js +0 -183
- package/src/constants.js.map +0 -1
- package/src/custom-spans/custom-spans.consts.js +0 -4
- package/src/custom-spans/custom-spans.consts.js.map +0 -1
- package/src/custom-spans/custom-spans.types.js +0 -2
- package/src/custom-spans/custom-spans.types.js.map +0 -1
- package/src/custom-spans/custom-spans.utils.js +0 -40
- package/src/custom-spans/custom-spans.utils.js.map +0 -1
- package/src/custom-spans/index.js +0 -4
- package/src/custom-spans/index.js.map +0 -1
- package/src/filters/filters.js +0 -28
- package/src/filters/filters.js.map +0 -1
- package/src/helpers.js +0 -21
- package/src/helpers.js.map +0 -1
- package/src/index.js +0 -391
- package/src/index.js.map +0 -1
- package/src/instrumentations/CoralogixCustomLogInstrumentation.js +0 -35
- package/src/instrumentations/CoralogixCustomLogInstrumentation.js.map +0 -1
- package/src/instrumentations/CoralogixDOMInstrumentation.js +0 -33
- package/src/instrumentations/CoralogixDOMInstrumentation.js.map +0 -1
- package/src/instrumentations/CoralogixErrorInstrumentation.js +0 -257
- package/src/instrumentations/CoralogixErrorInstrumentation.js.map +0 -1
- package/src/instrumentations/CoralogixInternalInstrumentation.js +0 -50
- package/src/instrumentations/CoralogixInternalInstrumentation.js.map +0 -1
- package/src/instrumentations/CoralogixLongTaskInstrumentation.js +0 -47
- package/src/instrumentations/CoralogixLongTaskInstrumentation.js.map +0 -1
- package/src/instrumentations/CoralogixResourcesInstrumentation.js +0 -106
- package/src/instrumentations/CoralogixResourcesInstrumentation.js.map +0 -1
- package/src/instrumentations/CoralogixWebVitalsInstrumentation.js +0 -193
- package/src/instrumentations/CoralogixWebVitalsInstrumentation.js.map +0 -1
- package/src/instrumentations/custom-measurements/CoralogixCustomMeasurementInstrumentation.js +0 -26
- package/src/instrumentations/custom-measurements/CoralogixCustomMeasurementInstrumentation.js.map +0 -1
- package/src/instrumentations/custom-measurements/custom-measurements.types.js +0 -2
- package/src/instrumentations/custom-measurements/custom-measurements.types.js.map +0 -1
- package/src/instrumentations/custom-measurements/index.js +0 -4
- package/src/instrumentations/custom-measurements/index.js.map +0 -1
- package/src/instrumentations/custom-measurements/timeMeasurementTracker.js +0 -38
- package/src/instrumentations/custom-measurements/timeMeasurementTracker.js.map +0 -1
- package/src/instrumentations/instrumentation.consts.js +0 -61
- package/src/instrumentations/instrumentation.consts.js.map +0 -1
- package/src/instrumentations/instrumentation.helper.js +0 -4
- package/src/instrumentations/instrumentation.helper.js.map +0 -1
- package/src/instrumentations/instrumentation.model.js +0 -18
- package/src/instrumentations/instrumentation.model.js.map +0 -1
- package/src/instrumentations/memory-usage/CoralogixMemoryUsageInstrumentation.js +0 -58
- package/src/instrumentations/memory-usage/CoralogixMemoryUsageInstrumentation.js.map +0 -1
- package/src/instrumentations/memory-usage/index.js +0 -5
- package/src/instrumentations/memory-usage/index.js.map +0 -1
- package/src/instrumentations/memory-usage/memory-usage-constants.js +0 -4
- package/src/instrumentations/memory-usage/memory-usage-constants.js.map +0 -1
- package/src/instrumentations/memory-usage/memory-usage.types.js +0 -2
- package/src/instrumentations/memory-usage/memory-usage.types.js.map +0 -1
- package/src/instrumentations/memory-usage/memory-usage.utils.js +0 -33
- package/src/instrumentations/memory-usage/memory-usage.utils.js.map +0 -1
- package/src/instrumentations/network/CoralogixFetchInstrumentation.js +0 -103
- package/src/instrumentations/network/CoralogixFetchInstrumentation.js.map +0 -1
- package/src/instrumentations/network/CoralogixXhrInstrumentation.js +0 -61
- package/src/instrumentations/network/CoralogixXhrInstrumentation.js.map +0 -1
- package/src/instrumentations/network/HeadersManager.js +0 -42
- package/src/instrumentations/network/HeadersManager.js.map +0 -1
- package/src/instrumentations/network/NetworkDataManager.js +0 -87
- package/src/instrumentations/network/NetworkDataManager.js.map +0 -1
- package/src/instrumentations/network/constants.js +0 -7
- package/src/instrumentations/network/constants.js.map +0 -1
- package/src/instrumentations/network/network.utils.js +0 -11
- package/src/instrumentations/network/network.utils.js.map +0 -1
- package/src/instrumentations/screenshot/CoralogixScreenshotInstrumentation.js +0 -28
- package/src/instrumentations/screenshot/CoralogixScreenshotInstrumentation.js.map +0 -1
- package/src/instrumentations/screenshot/screenshot.utils.js +0 -3
- package/src/instrumentations/screenshot/screenshot.utils.js.map +0 -1
- package/src/instrumentations/user-interaction/CoralogixUserInteractionInstrumentation.js +0 -65
- package/src/instrumentations/user-interaction/CoralogixUserInteractionInstrumentation.js.map +0 -1
- package/src/instrumentations/user-interaction/user-interaction.utils.js +0 -73
- package/src/instrumentations/user-interaction/user-interaction.utils.js.map +0 -1
- package/src/internal-event-reporter.js +0 -7
- package/src/internal-event-reporter.js.map +0 -1
- package/src/label-providers/url-based-label-provider.js +0 -24
- package/src/label-providers/url-based-label-provider.js.map +0 -1
- package/src/labels/index.js +0 -2
- package/src/labels/index.js.map +0 -1
- package/src/labels/labels.utils.js +0 -11
- package/src/labels/labels.utils.js.map +0 -1
- package/src/mfe/mfe.types.js +0 -2
- package/src/mfe/mfe.types.js.map +0 -1
- package/src/otel/CoralogixPropgator.js +0 -9
- package/src/otel/CoralogixPropgator.js.map +0 -1
- package/src/otel/CoralogixWebTracerProvider.js +0 -4
- package/src/otel/CoralogixWebTracerProvider.js.map +0 -1
- package/src/otel/custom-sampler.js +0 -9
- package/src/otel/custom-sampler.js.map +0 -1
- package/src/otel/index.js +0 -3
- package/src/otel/index.js.map +0 -1
- package/src/otel/otel.consts.js +0 -20
- package/src/otel/otel.consts.js.map +0 -1
- package/src/otel/otel.utils.js +0 -14
- package/src/otel/otel.utils.js.map +0 -1
- package/src/otel/propagators.js +0 -67
- package/src/otel/propagators.js.map +0 -1
- package/src/processors/CoralogixExporter.js +0 -103
- package/src/processors/CoralogixExporter.js.map +0 -1
- package/src/processors/CoralogixNavigationProcessor.js +0 -25
- package/src/processors/CoralogixNavigationProcessor.js.map +0 -1
- package/src/processors/CoralogixSnapshotSpanProcessor.js +0 -83
- package/src/processors/CoralogixSnapshotSpanProcessor.js.map +0 -1
- package/src/processors/CoralogixSpanAttributesProcessor.js +0 -56
- package/src/processors/CoralogixSpanAttributesProcessor.js.map +0 -1
- package/src/processors/CoralogixSpanMapProcessor.js +0 -273
- package/src/processors/CoralogixSpanMapProcessor.js.map +0 -1
- package/src/processors/processor-base.model.js +0 -2
- package/src/processors/processor-base.model.js.map +0 -1
- package/src/processors/processor.helper.js +0 -6
- package/src/processors/processor.helper.js.map +0 -1
- package/src/session/session-idle.js +0 -41
- package/src/session/session-idle.js.map +0 -1
- package/src/session/session.consts.js +0 -24
- package/src/session/session.consts.js.map +0 -1
- package/src/session/session.helper.js +0 -77
- package/src/session/session.helper.js.map +0 -1
- package/src/session/session.model.js +0 -11
- package/src/session/session.model.js.map +0 -1
- package/src/session/sessionManager.js +0 -175
- package/src/session/sessionManager.js.map +0 -1
- package/src/session/sessionRecorder.js +0 -336
- package/src/session/sessionRecorder.js.map +0 -1
- package/src/session/sessionWithError.consts.js +0 -15
- package/src/session/sessionWithError.consts.js.map +0 -1
- package/src/session/workerManager.js +0 -45
- package/src/session/workerManager.js.map +0 -1
- package/src/snapshot/snapshot.consts.js +0 -9
- package/src/snapshot/snapshot.consts.js.map +0 -1
- package/src/snapshot/snapshot.model.js +0 -2
- package/src/snapshot/snapshot.model.js.map +0 -1
- package/src/snapshot/snapshotManager.js +0 -29
- package/src/snapshot/snapshotManager.js.map +0 -1
- package/src/tools/addEventListener.js +0 -30
- package/src/tools/addEventListener.js.map +0 -1
- package/src/tools/getGlobalObject.js +0 -36
- package/src/tools/getGlobalObject.js.map +0 -1
- package/src/tools/getZoneJsOriginalDom.js +0 -17
- package/src/tools/getZoneJsOriginalDom.js.map +0 -1
- package/src/tti-polyfill/tti-polyfill.d.ts +0 -4
- package/src/tti-polyfill/tti-polyfill.js +0 -267
- package/src/tti-polyfill/tti-polyfill.js.map +0 -1
- package/src/types-external.js +0 -10
- package/src/types-external.js.map +0 -1
- package/src/types.js +0 -39
- package/src/types.js.map +0 -1
- package/src/utils/all.js +0 -195
- package/src/utils/all.js.map +0 -1
- package/src/utils/array.js +0 -18
- package/src/utils/array.js.map +0 -1
- package/src/utils/general.js +0 -10
- package/src/utils/general.js.map +0 -1
- package/src/utils/index.js +0 -4
- package/src/utils/index.js.map +0 -1
- package/src/utils/internal-rum-data.js +0 -12
- package/src/utils/internal-rum-data.js.map +0 -1
- package/src/utils/object.js +0 -86
- package/src/utils/object.js.map +0 -1
- package/src/utils/regex.js +0 -16
- package/src/utils/regex.js.map +0 -1
- package/src/utils/string.js +0 -33
- package/src/utils/string.js.map +0 -1
- package/src/utils/time.js +0 -7
- package/src/utils/time.js.map +0 -1
- package/src/version.js +0 -2
- package/src/version.js.map +0 -1
- package/src/workers/session-recording-worker.js +0 -77
- package/src/workers/session-recording-worker.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,8 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coralogix/browser",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "Official Coralogix SDK for browsers",
|
|
5
|
-
"license": "
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"author": "Coralogix",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"access": "public"
|
|
9
|
+
},
|
|
10
|
+
"keywords": [
|
|
11
|
+
"official",
|
|
12
|
+
"coralogix",
|
|
13
|
+
"sdk",
|
|
14
|
+
"browser",
|
|
15
|
+
"javascript",
|
|
16
|
+
"typescript",
|
|
17
|
+
"monitoring",
|
|
18
|
+
"frontend"
|
|
19
|
+
],
|
|
6
20
|
"dependencies": {
|
|
7
21
|
"@opentelemetry/api": "1.9.0",
|
|
8
22
|
"@opentelemetry/exporter-trace-otlp-http": "0.52.1",
|
|
@@ -22,8 +36,8 @@
|
|
|
22
36
|
"peerDependencies": {
|
|
23
37
|
"typescript": ">=4.4.2"
|
|
24
38
|
},
|
|
25
|
-
"
|
|
26
|
-
"module": "./src/index.js",
|
|
39
|
+
"module": "./coralogix-browser-sdk.esm.js",
|
|
27
40
|
"type": "module",
|
|
28
|
-
"main": "./
|
|
41
|
+
"main": "./coralogix-browser-sdk.esm.js",
|
|
42
|
+
"types": "./coralogix-browser-sdk.esm.d.ts"
|
|
29
43
|
}
|
package/src/types.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ import { CoralogixWebVitalsInstrumentationConfig } from './instrumentations/inst
|
|
|
12
12
|
import { SessionConfig, SessionRecordingConfig } from './session/session.model';
|
|
13
13
|
import { CoralogixInternalEvent } from './instrumentations/CoralogixInternalInstrumentation';
|
|
14
14
|
import { SnapshotContext } from './snapshot/snapshot.model';
|
|
15
|
-
import { MetricWithAttribution } from 'web-vitals
|
|
15
|
+
import { MetricWithAttribution } from 'web-vitals';
|
|
16
16
|
import { MemoryUsageContext } from './instrumentations/memory-usage';
|
|
17
17
|
import { MFEMetadata } from './mfe/mfe.types';
|
|
18
18
|
import { UrlBasedLabelProvider } from './label-providers/url-based-label-provider';
|
package/src/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.6.0";
|
package/src/Request.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { getSdkConfig } from './helpers';
|
|
2
|
-
import { CoralogixDomainsApiUrlMap, PROXY_CX_FORWARD_PARAMETER, } from './constants';
|
|
3
|
-
export class Request {
|
|
4
|
-
constructor(requestConfig) {
|
|
5
|
-
this.requestConfig = requestConfig;
|
|
6
|
-
this.resolvedUrl = '';
|
|
7
|
-
this.resolvedHeaders = {};
|
|
8
|
-
this.init();
|
|
9
|
-
}
|
|
10
|
-
init() {
|
|
11
|
-
const { proxyUrl, coralogixDomain, public_key } = getSdkConfig();
|
|
12
|
-
const { suffix, headers } = this.requestConfig;
|
|
13
|
-
const cxEndpoint = `${CoralogixDomainsApiUrlMap[coralogixDomain]}${suffix}`;
|
|
14
|
-
this.resolvedUrl = proxyUrl
|
|
15
|
-
? `${proxyUrl}?${PROXY_CX_FORWARD_PARAMETER}=${encodeURIComponent(cxEndpoint)}`
|
|
16
|
-
: cxEndpoint;
|
|
17
|
-
if (public_key) {
|
|
18
|
-
headers['Authorization'] = `Bearer ${public_key}`;
|
|
19
|
-
}
|
|
20
|
-
this.resolvedHeaders = headers;
|
|
21
|
-
}
|
|
22
|
-
send(body) {
|
|
23
|
-
return fetch(this.resolvedUrl, {
|
|
24
|
-
method: 'POST',
|
|
25
|
-
headers: this.resolvedHeaders,
|
|
26
|
-
body,
|
|
27
|
-
}).catch((e) => {
|
|
28
|
-
return e;
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
//# sourceMappingURL=Request.js.map
|
package/src/Request.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../libs/browser/src/Request.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EACL,yBAAyB,EACzB,0BAA0B,GAC3B,MAAM,aAAa,CAAC;AAOrB,MAAM,OAAO,OAAO;IAGlB,YAAoB,aAA4B;QAA5B,kBAAa,GAAb,aAAa,CAAe;QAFxC,gBAAW,GAAW,EAAE,CAAC;QACzB,oBAAe,GAAgB,EAAE,CAAC;QAExC,IAAI,CAAC,IAAI,EAAE,CAAC;IACd,CAAC;IAEO,IAAI;QACV,MAAM,EAAE,QAAQ,EAAE,eAAe,EAAE,UAAU,EAAE,GAAG,YAAY,EAAE,CAAC;QACjE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,aAAa,CAAC;QAE/C,MAAM,UAAU,GAAG,GAAG,yBAAyB,CAAC,eAAe,CAAC,GAAG,MAAM,EAAE,CAAC;QAE5E,IAAI,CAAC,WAAW,GAAG,QAAQ;YACzB,CAAC,CAAC,GAAG,QAAQ,IAAI,0BAA0B,IAAI,kBAAkB,CAC7D,UAAU,CACX,EAAE;YACL,CAAC,CAAC,UAAU,CAAC;QAEf,IAAI,UAAU,EAAE,CAAC;YACf,OAAO,CAAC,eAAe,CAAC,GAAG,UAAU,UAAU,EAAE,CAAC;QACpD,CAAC;QAED,IAAI,CAAC,eAAe,GAAG,OAAO,CAAC;IACjC,CAAC;IAEM,IAAI,CAAC,IAAc;QACxB,OAAO,KAAK,CAAC,IAAI,CAAC,WAAW,EAAE;YAC7B,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,IAAI,CAAC,eAAe;YAC7B,IAAI;SACL,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE;YACb,OAAO,CAAC,CAAC;QACX,CAAC,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/src/add-timing.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { getNowTime } from './utils/time';
|
|
2
|
-
import { getSessionManager } from './helpers';
|
|
3
|
-
export function getTiming(duration) {
|
|
4
|
-
if (typeof duration === 'number') {
|
|
5
|
-
return duration;
|
|
6
|
-
}
|
|
7
|
-
return getNowTime() - getSessionManager().currentPageTimestamp;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=add-timing.js.map
|
package/src/add-timing.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"add-timing.js","sourceRoot":"","sources":["../../../../libs/browser/src/add-timing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAE9C,MAAM,UAAU,SAAS,CAAC,QAAiB;IACzC,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE,CAAC;QACjC,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,UAAU,EAAE,GAAG,iBAAiB,EAAE,CAAC,oBAAqB,CAAC;AAClE,CAAC"}
|
package/src/before-send.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { __rest } from "tslib";
|
|
2
|
-
import { isObject } from './utils/object';
|
|
3
|
-
export function processBeforeSend(cxSpan, options) {
|
|
4
|
-
if (!(options === null || options === void 0 ? void 0 : options.beforeSend)) {
|
|
5
|
-
return cxSpan;
|
|
6
|
-
}
|
|
7
|
-
const cxRumEvent = cxSpan.text.cx_rum;
|
|
8
|
-
const editableCxRumEvent = cxRumEventToEditable(cxRumEvent);
|
|
9
|
-
const beforeSendResult = options.beforeSend(editableCxRumEvent);
|
|
10
|
-
if (!validateBeforeSendResult(beforeSendResult)) {
|
|
11
|
-
return null;
|
|
12
|
-
}
|
|
13
|
-
const { version_metadata: { app_name: applicationName }, event_context: { severity }, } = beforeSendResult;
|
|
14
|
-
return Object.assign(Object.assign({}, cxSpan), { applicationName,
|
|
15
|
-
severity, text: { cx_rum: editableToCxRumEvent(beforeSendResult, cxRumEvent) } });
|
|
16
|
-
}
|
|
17
|
-
function validateBeforeSendResult(beforeSendResult) {
|
|
18
|
-
if (beforeSendResult == null)
|
|
19
|
-
return null;
|
|
20
|
-
const requiredKeys = [
|
|
21
|
-
'version_metadata',
|
|
22
|
-
'session_context',
|
|
23
|
-
'page_context',
|
|
24
|
-
'event_context',
|
|
25
|
-
];
|
|
26
|
-
const isMissingRequiredKey = () => requiredKeys.some((key) => !(beforeSendResult === null || beforeSendResult === void 0 ? void 0 : beforeSendResult[key]));
|
|
27
|
-
if (!isObject(beforeSendResult) || isMissingRequiredKey()) {
|
|
28
|
-
console.warn('CoralogixRum: beforeSend must return null, undefined or a valid event.');
|
|
29
|
-
return null;
|
|
30
|
-
}
|
|
31
|
-
return beforeSendResult;
|
|
32
|
-
}
|
|
33
|
-
function cxRumEventToEditable(cxRumEvent) {
|
|
34
|
-
const { session_context: { user_id, user_name, user_email, user_metadata }, browser_sdk, timestamp } = cxRumEvent, rest = __rest(cxRumEvent, ["session_context", "browser_sdk", "timestamp"]);
|
|
35
|
-
return Object.assign(Object.assign({}, rest), { session_context: { user_id, user_email, user_name, user_metadata } });
|
|
36
|
-
}
|
|
37
|
-
function editableToCxRumEvent(editable, cxRumEvent) {
|
|
38
|
-
return Object.assign(Object.assign(Object.assign({}, cxRumEvent), editable), { session_context: Object.assign(Object.assign({}, cxRumEvent.session_context), editable.session_context) });
|
|
39
|
-
}
|
|
40
|
-
//# sourceMappingURL=before-send.js.map
|
package/src/before-send.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"before-send.js","sourceRoot":"","sources":["../../../../libs/browser/src/before-send.ts"],"names":[],"mappings":";AAOA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,MAAM,UAAU,iBAAiB,CAC/B,MAAc,EACd,OAAkC;IAElC,IAAI,CAAC,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,CAAA,EAAE,CAAC;QACzB,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC;IACtC,MAAM,kBAAkB,GAAG,oBAAoB,CAAC,UAAU,CAAC,CAAC;IAC5D,MAAM,gBAAgB,GAAG,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC,CAAC;IAEhE,IAAI,CAAC,wBAAwB,CAAC,gBAAgB,CAAC,EAAE,CAAC;QAChD,OAAO,IAAI,CAAC;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AAQ,KACX,eAAe,kCACV,UAAU,CAAC,eAAe,GAC1B,QAAQ,CAAC,eAAe,KAE7B;AACJ,CAAC"}
|
package/src/configuration.js
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { MASK_CLASS_DEFAULT, MASK_INPUT_TYPES_DEFAULT, OPTIONS_DEFAULTS, REQUIRED_CONFIG_KEYS, } from './constants';
|
|
2
|
-
import { isNil } from './utils/general';
|
|
3
|
-
import { resolveSessionConfig, resolveSessionRecordingConfig, } from './session/session.helper';
|
|
4
|
-
import { MEMORY_USAGE_DEFAULT_INTERVAL } from './instrumentations/memory-usage';
|
|
5
|
-
function isInitialConfigValid(initConfig) {
|
|
6
|
-
if (!initConfig) {
|
|
7
|
-
console.warn('CoralogixRum: Initialization configuration missing');
|
|
8
|
-
return;
|
|
9
|
-
}
|
|
10
|
-
// Ensure public key is provided when no proxy URL is set
|
|
11
|
-
if (!initConfig.proxyUrl && !initConfig.public_key) {
|
|
12
|
-
console.warn('CoralogixRum: Public key is missing');
|
|
13
|
-
return;
|
|
14
|
-
}
|
|
15
|
-
for (const requiredProp of REQUIRED_CONFIG_KEYS) {
|
|
16
|
-
if (isNil(initConfig[requiredProp])) {
|
|
17
|
-
console.error(`CoralogixRum: Initialization aborted. Please provide the required property "${requiredProp}".`);
|
|
18
|
-
return;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
return true;
|
|
22
|
-
}
|
|
23
|
-
export function validateAndResolveInitConfig(config) {
|
|
24
|
-
var _a, _b, _c;
|
|
25
|
-
if (!isInitialConfigValid(config)) {
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
28
|
-
const { ignoreUrls, urlBlueprinters, proxyUrl } = config;
|
|
29
|
-
const resolvedIgnoreUrls = [];
|
|
30
|
-
ignoreUrls && resolvedIgnoreUrls.push(...ignoreUrls);
|
|
31
|
-
if (proxyUrl)
|
|
32
|
-
resolvedIgnoreUrls.push(new RegExp(proxyUrl));
|
|
33
|
-
OPTIONS_DEFAULTS.ignoreUrls &&
|
|
34
|
-
resolvedIgnoreUrls.push(...OPTIONS_DEFAULTS.ignoreUrls);
|
|
35
|
-
return Object.assign(Object.assign(Object.assign({}, OPTIONS_DEFAULTS), config), { maskInputTypes: (_a = config.maskInputTypes) !== null && _a !== void 0 ? _a : MASK_INPUT_TYPES_DEFAULT, maskClass: (_b = config.maskClass) !== null && _b !== void 0 ? _b : MASK_CLASS_DEFAULT, ignoreUrls: resolvedIgnoreUrls, urlBlueprinters: resolveUrlBlueprinters(urlBlueprinters), sessionSampleRate: (_c = config.sessionSampleRate) !== null && _c !== void 0 ? _c : 100, sessionConfig: resolveSessionConfig(config.sessionConfig), sessionRecordingConfig: resolveSessionRecordingConfig(config.sessionRecordingConfig), memoryUsageConfig: resolveMemoryUsageConfig(config.memoryUsageConfig), trackSoftNavigations: !!config.trackSoftNavigations, supportMfe: !!config.supportMfe });
|
|
36
|
-
}
|
|
37
|
-
function resolveMemoryUsageConfig(memoryUsageConfig) {
|
|
38
|
-
var _a;
|
|
39
|
-
if (!memoryUsageConfig) {
|
|
40
|
-
return { enabled: false };
|
|
41
|
-
}
|
|
42
|
-
return Object.assign(Object.assign({}, memoryUsageConfig), { interval: (_a = memoryUsageConfig.interval) !== null && _a !== void 0 ? _a : MEMORY_USAGE_DEFAULT_INTERVAL });
|
|
43
|
-
}
|
|
44
|
-
function resolveUrlBlueprinters(urlBlueprinters) {
|
|
45
|
-
if (!urlBlueprinters) {
|
|
46
|
-
return OPTIONS_DEFAULTS.urlBlueprinters;
|
|
47
|
-
}
|
|
48
|
-
const resolvedUrlBlueprinters = {
|
|
49
|
-
pageUrlBlueprinters: [],
|
|
50
|
-
networkUrlBlueprinters: [],
|
|
51
|
-
};
|
|
52
|
-
const concatBlueprinters = (urlBlueprinters) => {
|
|
53
|
-
const { pageUrlBlueprinters, networkUrlBlueprinters } = urlBlueprinters || {};
|
|
54
|
-
if (pageUrlBlueprinters) {
|
|
55
|
-
resolvedUrlBlueprinters.pageUrlBlueprinters.push(...pageUrlBlueprinters);
|
|
56
|
-
}
|
|
57
|
-
if (networkUrlBlueprinters) {
|
|
58
|
-
resolvedUrlBlueprinters.networkUrlBlueprinters.push(...networkUrlBlueprinters);
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
concatBlueprinters(urlBlueprinters);
|
|
62
|
-
if (OPTIONS_DEFAULTS.urlBlueprinters) {
|
|
63
|
-
concatBlueprinters(OPTIONS_DEFAULTS.urlBlueprinters);
|
|
64
|
-
}
|
|
65
|
-
return resolvedUrlBlueprinters;
|
|
66
|
-
}
|
|
67
|
-
//# sourceMappingURL=configuration.js.map
|
package/src/configuration.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../../../libs/browser/src/configuration.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,kBAAkB,EAClB,wBAAwB,EACxB,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACxC,OAAO,EACL,oBAAoB,EACpB,6BAA6B,GAC9B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAEhF,SAAS,oBAAoB,CAC3B,UAAqC;IAErC,IAAI,CAAC,UAAU,EAAE,CAAC;QAChB,OAAO,CAAC,IAAI,CAAC,oDAAoD,CAAC,CAAC;QACnE,OAAO;IACT,CAAC;IAED,yDAAyD;IACzD,IAAI,CAAC,UAAU,CAAC,QAAQ,IAAI,CAAC,UAAU,CAAC,UAAU,EAAE,CAAC;QACnD,OAAO,CAAC,IAAI,CAAC,qCAAqC,CAAC,CAAC;QACpD,OAAO;IACT,CAAC;IAED,KAAK,MAAM,YAAY,IAAI,oBAAoB,EAAE,CAAC;QAChD,IAAI,KAAK,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC;YACpC,OAAO,CAA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IAAI,CAAC,iBAAiB,EAAE,CAAC;QACvB,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAC5B,CAAC;IAED,uCACK,iBAAiB,KACpB,QAAQ,EAAE,MAAA,iBAAiB,CAAC,QAAQ,mCAAI,6BAA6B,IACrE;AACJ,CAAC;AAED,SAAS,sBAAsB,CAC7B,eAA4C;IAE5C,IAAI,CAAC,eAAe,EAAE,CAAC;QACrB,OAAO,gBAAgB,CAAC,eAAgB,CAAC;IAC3C,CAAC;IAED,MAAM,uBAAuB,GAAoB;QAC/C,mBAAmB,EAAE,EAAE;QACvB,sBAAsB,EAAE,EAAE;KAC3B,CAAC;IAEF,MAAM,kBAAkB,GAAG,CAAC,eAAgC,EAAE,EAAE;QAC9D,MAAM,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,GACnD,eAAe,IAAI,EAAE,CAAC;QAExB,IAAI,mBAAmB,EAAE,CAAC;YACxB,uBAAuB,CAAC,mBAAoB,CAAC,IAAI,CAAC,GAAG,mBAAmB,CAAC,CAAC;QAC5E,CAAC;QAED,IAAI,sBAAsB,EAAE,CAAC;YAC3B,uBAAuB,CAAC,sBAAuB,CAAC,IAAI,CAClD,GAAG,sBAAsB,CAC1B,CAAC;QACJ,CAAC;IACH,CAAC,CAAC;IAEF,kBAAkB,CAAC,eAAe,CAAC,CAAC;IAEpC,IAAI,gBAAgB,CAAC,eAAe,EAAE,CAAC;QACrC,kBAAkB,CAAC,gBAAgB,CAAC,eAAe,CAAC,CAAC;IACvD,CAAC;IAED,OAAO,uBAAuB,CAAC;AACjC,CAAC"}
|
package/src/constants.js
DELETED
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
import { CoralogixErrorInstrumentation, ERROR_INSTRUMENTATION_NAME, ErrorAttributes, } from './instrumentations/CoralogixErrorInstrumentation';
|
|
2
|
-
import { CoralogixFetchInstrumentation } from './instrumentations/network/CoralogixFetchInstrumentation';
|
|
3
|
-
import { CoralogixXhrInstrumentation } from './instrumentations/network/CoralogixXhrInstrumentation';
|
|
4
|
-
import { CoralogixCustomLogInstrumentation } from './instrumentations/CoralogixCustomLogInstrumentation';
|
|
5
|
-
import { CoralogixWebVitalsInstrumentation } from './instrumentations/CoralogixWebVitalsInstrumentation';
|
|
6
|
-
import { CUSTOM_MEASUREMENT_INSTRUMENTATION_NAME, DOM_INSTRUMENTATION_NAME, INTERNAL_INSTRUMENTATION_NAME, LONG_TASKS_INSTRUMENTATION_NAME, RESOURCES_INSTRUMENTATION_NAME, WEB_VITALS_INSTRUMENTATION_NAME, } from './instrumentations/instrumentation.consts';
|
|
7
|
-
import { CoralogixLongTaskInstrumentation } from './instrumentations/CoralogixLongTaskInstrumentation';
|
|
8
|
-
import { CoralogixResourcesInstrumentation } from './instrumentations/CoralogixResourcesInstrumentation';
|
|
9
|
-
import { replacePatternsInUrl } from './utils';
|
|
10
|
-
import { millisecondsPerSecond } from './utils/time';
|
|
11
|
-
import { CoralogixUserInteractionInstrumentation } from './instrumentations/user-interaction/CoralogixUserInteractionInstrumentation';
|
|
12
|
-
import { CoralogixMemoryUsageInstrumentation, MEMORY_USAGE_INSTRUMENTATION_NAME, } from './instrumentations/memory-usage';
|
|
13
|
-
import { CoralogixScreenshotInstrumentation } from './instrumentations/screenshot/CoralogixScreenshotInstrumentation';
|
|
14
|
-
import { SCREENSHOT_INSTRUMENTATION_NAME } from './instrumentations/screenshot/screenshot.utils';
|
|
15
|
-
import { CoralogixCustomMeasurementInstrumentation } from './instrumentations/custom-measurements';
|
|
16
|
-
import { CoralogixInternalInstrumentation } from './instrumentations/CoralogixInternalInstrumentation';
|
|
17
|
-
import { CoralogixDOMInstrumentation } from './instrumentations/CoralogixDOMInstrumentation';
|
|
18
|
-
export const CORALOGIX_LOGS_URL_SUFFIX = '/browser/v1beta/logs';
|
|
19
|
-
export const CORALOGIX_RECORDING_URL_SUFFIX = '/sessionrecording';
|
|
20
|
-
export const MAX_EXPORT_BATCH_SIZE = 50;
|
|
21
|
-
export const MAX_INTERACTION_ELEMENT_SIZE = 1024;
|
|
22
|
-
export const MAX_CHARACTERS = 1024;
|
|
23
|
-
export const SCHEDULE_DELAY_MILLIS = 2 * millisecondsPerSecond;
|
|
24
|
-
export const REQUIRED_CONFIG_KEYS = [
|
|
25
|
-
'application',
|
|
26
|
-
'version',
|
|
27
|
-
'coralogixDomain',
|
|
28
|
-
];
|
|
29
|
-
export const SDK_CONFIG_KEY = 'sdkConfig';
|
|
30
|
-
export const ID_MASK_KEY = '{id}';
|
|
31
|
-
export const UUID_REGEX = /[0-9a-fA-F-]{36}/g;
|
|
32
|
-
export const NANOID_REGEX = /^[a-zA-Z0-9-_]{21}$/;
|
|
33
|
-
export const PAGE_URL_LABEL_PROVIDERS_KEY = 'PAGE_URL_LABEL_PROVIDERS';
|
|
34
|
-
export const NETWORK_URL_LABEL_PROVIDERS_KEY = 'NETWORK_URL_LABEL_PROVIDERS';
|
|
35
|
-
export const RUM_INTERNAL_DATA_KEY = 'rumInternalData';
|
|
36
|
-
export const MASKED_TEXT = '***';
|
|
37
|
-
export const MASK_CLASS_DEFAULT = 'cx-mask';
|
|
38
|
-
export const MASK_INPUT_TYPES_DEFAULT = [
|
|
39
|
-
'password',
|
|
40
|
-
'email',
|
|
41
|
-
'tel',
|
|
42
|
-
];
|
|
43
|
-
const idPatterns = [
|
|
44
|
-
{
|
|
45
|
-
pattern: new RegExp(UUID_REGEX),
|
|
46
|
-
replacement: ID_MASK_KEY,
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
pattern: new RegExp(NANOID_REGEX),
|
|
50
|
-
replacement: ID_MASK_KEY,
|
|
51
|
-
},
|
|
52
|
-
];
|
|
53
|
-
const defaultUrlBlueprinters = {
|
|
54
|
-
pageUrlBlueprinters: [
|
|
55
|
-
(url) => replacePatternsInUrl({ patterns: idPatterns, url }),
|
|
56
|
-
],
|
|
57
|
-
};
|
|
58
|
-
export const OPTIONS_DEFAULTS = {
|
|
59
|
-
ignoreUrls: [
|
|
60
|
-
new RegExp(CORALOGIX_LOGS_URL_SUFFIX),
|
|
61
|
-
new RegExp(CORALOGIX_RECORDING_URL_SUFFIX),
|
|
62
|
-
],
|
|
63
|
-
user_context: {
|
|
64
|
-
user_id: '',
|
|
65
|
-
user_name: '',
|
|
66
|
-
},
|
|
67
|
-
labels: {},
|
|
68
|
-
urlBlueprinters: defaultUrlBlueprinters,
|
|
69
|
-
collectIPData: true,
|
|
70
|
-
};
|
|
71
|
-
export const INSTRUMENTATIONS = [
|
|
72
|
-
{
|
|
73
|
-
Instrument: CoralogixErrorInstrumentation,
|
|
74
|
-
confKey: ERROR_INSTRUMENTATION_NAME,
|
|
75
|
-
disable: false,
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
Instrument: CoralogixFetchInstrumentation,
|
|
79
|
-
confKey: 'fetch',
|
|
80
|
-
disable: false,
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
Instrument: CoralogixXhrInstrumentation,
|
|
84
|
-
confKey: 'xhr',
|
|
85
|
-
disable: false,
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
Instrument: CoralogixCustomLogInstrumentation,
|
|
89
|
-
confKey: 'custom',
|
|
90
|
-
disable: false,
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
Instrument: CoralogixUserInteractionInstrumentation,
|
|
94
|
-
confKey: 'interactions',
|
|
95
|
-
disable: false,
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
Instrument: CoralogixWebVitalsInstrumentation,
|
|
99
|
-
confKey: WEB_VITALS_INSTRUMENTATION_NAME,
|
|
100
|
-
disable: false,
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
Instrument: CoralogixLongTaskInstrumentation,
|
|
104
|
-
confKey: LONG_TASKS_INSTRUMENTATION_NAME,
|
|
105
|
-
disable: false,
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
Instrument: CoralogixResourcesInstrumentation,
|
|
109
|
-
confKey: RESOURCES_INSTRUMENTATION_NAME,
|
|
110
|
-
disable: false,
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
Instrument: CoralogixInternalInstrumentation,
|
|
114
|
-
confKey: INTERNAL_INSTRUMENTATION_NAME,
|
|
115
|
-
disable: false,
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
Instrument: CoralogixDOMInstrumentation,
|
|
119
|
-
confKey: DOM_INSTRUMENTATION_NAME,
|
|
120
|
-
disable: false,
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
Instrument: CoralogixCustomMeasurementInstrumentation,
|
|
124
|
-
confKey: CUSTOM_MEASUREMENT_INSTRUMENTATION_NAME,
|
|
125
|
-
disable: false,
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
Instrument: CoralogixMemoryUsageInstrumentation,
|
|
129
|
-
confKey: MEMORY_USAGE_INSTRUMENTATION_NAME,
|
|
130
|
-
disable: false,
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
Instrument: CoralogixScreenshotInstrumentation,
|
|
134
|
-
confKey: SCREENSHOT_INSTRUMENTATION_NAME,
|
|
135
|
-
disable: false,
|
|
136
|
-
},
|
|
137
|
-
];
|
|
138
|
-
export const CoralogixAttributes = {
|
|
139
|
-
USER_AGENT: 'user_agent',
|
|
140
|
-
LOCATION_HREF: 'location_href',
|
|
141
|
-
EVENT_TYPE: 'event_type',
|
|
142
|
-
SEVERITY: 'severity',
|
|
143
|
-
APPLICATION_CONTEXT: 'application_context',
|
|
144
|
-
USER_CONTEXT: 'user_context',
|
|
145
|
-
CUSTOM_MEASUREMENT_CONTEXT: 'custom_measurement_context',
|
|
146
|
-
MEMORY_USAGE_CONTEXT: 'memory_usage_context',
|
|
147
|
-
COUNTRY: 'country',
|
|
148
|
-
SOURCE: 'source',
|
|
149
|
-
ERROR: ErrorAttributes,
|
|
150
|
-
LOG: 'cx_log',
|
|
151
|
-
CUSTOM_LABELS: 'custom_labels',
|
|
152
|
-
ENVIRONMENT: 'environment',
|
|
153
|
-
INTERACTION_EVENT_NAME: 'interaction_event_name',
|
|
154
|
-
ELEMENT_INNER_TEXT: 'element_inner_text',
|
|
155
|
-
ELEMENT_INNER_HTML: 'element_inner_html',
|
|
156
|
-
ELEMENT_ID: 'element_id',
|
|
157
|
-
ELEMENT_CLASSES: 'element_classes',
|
|
158
|
-
TARGET_XPATH: 'target_xpath',
|
|
159
|
-
TARGET_ELEMENT: 'target_element',
|
|
160
|
-
TARGET_ELEMENT_TYPE: 'target_element_type',
|
|
161
|
-
TIMESTAMP: 'timestamp',
|
|
162
|
-
INTERNAL: 'internal',
|
|
163
|
-
PAGE_CONTEXT: 'page_context',
|
|
164
|
-
IS_NAVIGATION_EVENT: 'is_navigation_event',
|
|
165
|
-
SCREENSHOT_CONTEXT: 'screenshot_context',
|
|
166
|
-
};
|
|
167
|
-
export const CoralogixDomainsApiUrlMap = {
|
|
168
|
-
EU1: 'https://ingress.eu1.rum-ingress-coralogix.com', // eu-west-1 (Ireland)
|
|
169
|
-
EU2: 'https://ingress.eu2.rum-ingress-coralogix.com', // eu-north-1 (Stockholm)
|
|
170
|
-
US1: 'https://ingress.us1.rum-ingress-coralogix.com', // us-east-2 (Ohio)
|
|
171
|
-
US2: 'https://ingress.us2.rum-ingress-coralogix.com', // us-west-2 (Oregon)
|
|
172
|
-
AP1: 'https://ingress.ap1.rum-ingress-coralogix.com', // ap-south-1 (Mumbai)
|
|
173
|
-
AP2: 'https://ingress.ap2.rum-ingress-coralogix.com', // ap-southeast-1 (Singapore)
|
|
174
|
-
AP3: 'https://ingress.ap3.rum-ingress-coralogix.com', // ap-southeast-3 (Jakarta)
|
|
175
|
-
STAGING: 'https://ingress.staging.rum-ingress-coralogix.com',
|
|
176
|
-
};
|
|
177
|
-
export const PROXY_CX_FORWARD_PARAMETER = 'cxforward';
|
|
178
|
-
export const CX_MAPPED_SPAN = 'cx_mapped_span';
|
|
179
|
-
export const BASE_PATH = '/';
|
|
180
|
-
export const HASH_SEPARATOR = '#';
|
|
181
|
-
export const PARAMS_SEPARATOR = '?';
|
|
182
|
-
export const PROTOCOL_SEPARATOR = '://';
|
|
183
|
-
//# sourceMappingURL=constants.js.map
|
package/src/constants.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../libs/browser/src/constants.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,6BAA6B,EAC7B,0BAA0B,EAC1B,eAAe,GAChB,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EAAE,6BAA6B,EAAE,MAAM,0DAA0D,CAAC;AACzG,OAAO,EAAE,2BAA2B,EAAE,MAAM,wDAAwD,CAAC;AACrG,OAAO,EAAE,iCAAiC,EAAE,MAAM,sDAAsD,CAAC;AACzG,OAAO,EAAE,iCAAiC,EAAE,MAAM,sDAAsD,CAAC;AACzG,OAAO,EACL,uCAAuC,EACvC,wBAAwB,EACxB,6BAA6B,EAC7B,+BAA+B,EAC/B,8BAA8B,EAC9B,+BAA+B,GAChC,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,gCAAgC,EAAE,MAAM,qDAAqD,CAAC;AACvG,OAAO,EAAE,iCAAiC,EAAE,MAAM,sDAAsD,CAAC;AACzG,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,uCAAuC,EAAE,MAAM,6EAA6E,CAAC;AACtI,OAAO,EACL,mCAAmC,EACnC,iCAAiC,GAClC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,kCAAkC,EAAE,MAAM,kEAAkE,CAAC;AACtH,OAAO,EAAE,+BAA+B,EAAE,MAAM,gDAAgD,CAAC;AACjG,OAAO,EAAE,yCAAyC,EAAE,MAAM,wCAAwC,CAAC;AACnG,OAAO,EAAE,gCAAgC,EAAE,MAAM,qDAAqD,CAAC;AACvG,OAAO,EAAE,2BAA2B,EA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E,GAAG,EAAE,+CAA+C,EAAE,mBAAmB;IACzE,GAAG,EAAE,+CAA+C,EAAE,qBAAqB;IAC3E,GAAG,EAAE,+CAA+C,EAAE,sBAAsB;IAC5E,GAAG,EAAE,+CAA+C,EAAE,6BAA6B;IACnF,GAAG,EAAE,+CAA+C,EAAE,2BAA2B;IACjF,OAAO,EAAE,mDAAmD;CAC7D,CAAC;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAG,WAAW,CAAC;AAEtD,MAAM,CAAC,MAAM,cAAc,GAAG,gBAAgB,CAAC;AAE/C,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAAC;AAC7B,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,CAAC;AAClC,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CAAC;AACpC,MAAM,CAAC,MAAM,kBAAkB,GAAG,KAAK,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"custom-spans.consts.js","sourceRoot":"","sources":["../../../../../libs/browser/src/custom-spans/custom-spans.consts.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG,gBAAgB,CAAC;AAChD,MAAM,CAAC,MAAM,iBAAiB,GAAG,kBAAkB,CAAC;AACpD,MAAM,CAAC,MAAM,iCAAiC,GAC5C,oCAAoC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"custom-spans.types.js","sourceRoot":"","sources":["../../../../../libs/browser/src/custom-spans/custom-spans.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { CUSTOM_TRACER_IGNORED_INSTRUMENTS, CUSTOM_TRACER_KEY, GLOBAL_SPAN_KEY, } from './custom-spans.consts';
|
|
2
|
-
export function setGlobalSpan(globalSpan) {
|
|
3
|
-
window[GLOBAL_SPAN_KEY] = globalSpan;
|
|
4
|
-
}
|
|
5
|
-
export function getGlobalSpan() {
|
|
6
|
-
return window[GLOBAL_SPAN_KEY];
|
|
7
|
-
}
|
|
8
|
-
export function clearGlobalSpan() {
|
|
9
|
-
delete window[GLOBAL_SPAN_KEY];
|
|
10
|
-
}
|
|
11
|
-
export function setCustomTracer(customTracer) {
|
|
12
|
-
window[CUSTOM_TRACER_KEY] = customTracer;
|
|
13
|
-
}
|
|
14
|
-
export function getCustomTracer() {
|
|
15
|
-
return window[CUSTOM_TRACER_KEY];
|
|
16
|
-
}
|
|
17
|
-
export function clearCustomTracer() {
|
|
18
|
-
delete window[CUSTOM_TRACER_KEY];
|
|
19
|
-
}
|
|
20
|
-
export function setCustomTracerIgnoredInstruments(ignoredInstruments) {
|
|
21
|
-
window[CUSTOM_TRACER_IGNORED_INSTRUMENTS] = ignoredInstruments;
|
|
22
|
-
}
|
|
23
|
-
export function getCustomTracerIgnoredInstruments() {
|
|
24
|
-
return window[CUSTOM_TRACER_IGNORED_INSTRUMENTS];
|
|
25
|
-
}
|
|
26
|
-
export function shouldAttachSpanToGlobalSpan(instrumentationType) {
|
|
27
|
-
var _a;
|
|
28
|
-
return (getGlobalSpan() &&
|
|
29
|
-
!((_a = getCustomTracerIgnoredInstruments()) === null || _a === void 0 ? void 0 : _a.includes(instrumentationType)));
|
|
30
|
-
}
|
|
31
|
-
export function attachChildSpanToGlobalSpan(name) {
|
|
32
|
-
let span;
|
|
33
|
-
const globalSpan = getGlobalSpan();
|
|
34
|
-
globalSpan.withContext(() => {
|
|
35
|
-
const childSpan = globalSpan.startCustomSpan(name);
|
|
36
|
-
span = childSpan.span;
|
|
37
|
-
});
|
|
38
|
-
return span;
|
|
39
|
-
}
|
|
40
|
-
//# sourceMappingURL=custom-spans.utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"custom-spans.utils.js","sourceRoot":"","sources":["../../../../../libs/browser/src/custom-spans/custom-spans.utils.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,iCAAiC,EACjC,iBAAiB,EACjB,eAAe,GAChB,MAAM,u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 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/browser/src/custom-spans/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC"}
|
package/src/filters/filters.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { CoralogixEventType, } from '../types';
|
|
2
|
-
import { stringMatchesSomePattern } from '../utils';
|
|
3
|
-
import { ErrorSource } from '../instrumentations/CoralogixErrorInstrumentation';
|
|
4
|
-
export function shouldDropEvent(cxRumEvent, options) {
|
|
5
|
-
if (isDocumentErrorWithoutMessage(cxRumEvent)) {
|
|
6
|
-
options.debug && console.warn('Document error without message dropped.');
|
|
7
|
-
return true;
|
|
8
|
-
}
|
|
9
|
-
if (isIgnoredError(cxRumEvent, options.ignoreErrors)) {
|
|
10
|
-
options.debug && console.warn('Ignored error dropped.');
|
|
11
|
-
return true;
|
|
12
|
-
}
|
|
13
|
-
return false;
|
|
14
|
-
}
|
|
15
|
-
function isDocumentErrorWithoutMessage(cxRumEvent) {
|
|
16
|
-
const { event_context, error_context } = cxRumEvent || {};
|
|
17
|
-
return (event_context.type === CoralogixEventType.ERROR &&
|
|
18
|
-
event_context.source === ErrorSource.DOCUMENT &&
|
|
19
|
-
!(error_context === null || error_context === void 0 ? void 0 : error_context.error_message));
|
|
20
|
-
}
|
|
21
|
-
function isIgnoredError(cxRumEvent, ignoreErrors) {
|
|
22
|
-
if (!cxRumEvent.error_context || !(ignoreErrors === null || ignoreErrors === void 0 ? void 0 : ignoreErrors.length)) {
|
|
23
|
-
return false;
|
|
24
|
-
}
|
|
25
|
-
const errorMessage = cxRumEvent.error_context.error_message || '';
|
|
26
|
-
return stringMatchesSomePattern(errorMessage, ignoreErrors);
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=filters.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"filters.js","s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BAAwB,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC;AAC9D,CAAC"}
|
package/src/helpers.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { SDK_CONFIG_KEY } from './constants';
|
|
2
|
-
import { SESSION_MANAGER_KEY, SESSION_RECORDER_KEY, } from './session/session.consts';
|
|
3
|
-
import { SNAPSHOT_MANAGER_KEY } from './snapshot/snapshot.consts';
|
|
4
|
-
export function getSnapshotManager() {
|
|
5
|
-
return window[SNAPSHOT_MANAGER_KEY];
|
|
6
|
-
}
|
|
7
|
-
export function getSessionManager() {
|
|
8
|
-
return window[SESSION_MANAGER_KEY];
|
|
9
|
-
}
|
|
10
|
-
export function getSessionRecorder() {
|
|
11
|
-
return window[SESSION_RECORDER_KEY];
|
|
12
|
-
}
|
|
13
|
-
export function getSdkConfig() {
|
|
14
|
-
return window[SDK_CONFIG_KEY];
|
|
15
|
-
}
|
|
16
|
-
export function clearMemoryFrom(keys) {
|
|
17
|
-
keys.forEach((key) => {
|
|
18
|
-
delete window[key];
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=helpers.js.map
|
package/src/helpers.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../libs/browser/src/helpers.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAG7C,OAAO,EACL,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAGlE,MAAM,UAAU,kBAAkB;IAChC,OAAO,MAAM,CAAC,oBAAoB,CAAC,CAAC;AACtC,CAAC;AAED,MAAM,UAAU,iBAAiB;IAC/B,OAAO,MAAM,CAAC,mBAAmB,CAAC,CAAC;AACrC,CAAC;AAED,MAAM,UAAU,kBAAkB;IAChC,OAAO,MAAM,CAAC,oBAAoB,CAAC,CAAC;AACtC,CAAC;AAED,MAAM,UAAU,YAAY;IAC1B,OAAO,MAAM,CAAC,cAAc,CAAC,CAAC;AAChC,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,IAAc;IAC5C,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QACnB,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC;IACrB,CAAC,CAAC,CAAC;AACL,CAAC"}
|