@coralogix/browser 2.8.0 → 2.8.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/CHANGELOG.md +6 -0
- package/index.esm2.js +6 -2
- package/package.json +1 -1
- package/src/constants.d.ts +6 -71
- package/src/instrumentations/instrumentation.model.d.ts +9 -0
- package/src/instrumentations/user-interaction/CoralogixUserInteractionInstrumentation.d.ts +1 -1
- package/src/version.d.ts +1 -1
package/CHANGELOG.md
CHANGED
package/index.esm2.js
CHANGED
|
@@ -2062,7 +2062,7 @@ function getTextualContent(element) {
|
|
|
2062
2062
|
}
|
|
2063
2063
|
|
|
2064
2064
|
var _a$3;
|
|
2065
|
-
var USER_INTERACTION_INSTRUMENTATION_NAME = '
|
|
2065
|
+
var USER_INTERACTION_INSTRUMENTATION_NAME = 'interactions';
|
|
2066
2066
|
var USER_INTERACTION_INSTRUMENTATION_VERSION = '1';
|
|
2067
2067
|
var DEFAULT_INSTRUMENTED_EVENTS = (_a$3 = {},
|
|
2068
2068
|
_a$3["click" /* DOM_EVENT.CLICK */] = true,
|
|
@@ -2555,6 +2555,10 @@ var OPTIONS_DEFAULTS = {
|
|
|
2555
2555
|
urlBlueprinters: defaultUrlBlueprinters,
|
|
2556
2556
|
collectIPData: true,
|
|
2557
2557
|
};
|
|
2558
|
+
/**
|
|
2559
|
+
* Note: For any instrumentation added to CoralogixOtelWebOptionsInstrumentations,
|
|
2560
|
+
* The `confKey` must match one of its keys.
|
|
2561
|
+
*/
|
|
2558
2562
|
var INSTRUMENTATIONS = [
|
|
2559
2563
|
{
|
|
2560
2564
|
Instrument: CoralogixErrorInstrumentation,
|
|
@@ -4212,7 +4216,7 @@ function resolveUrlBlueprinters(urlBlueprinters) {
|
|
|
4212
4216
|
return resolvedUrlBlueprinters;
|
|
4213
4217
|
}
|
|
4214
4218
|
|
|
4215
|
-
var SDK_VERSION = '2.8.
|
|
4219
|
+
var SDK_VERSION = '2.8.1';
|
|
4216
4220
|
|
|
4217
4221
|
function shouldDropEvent(cxRumEvent, options) {
|
|
4218
4222
|
if (isDocumentErrorWithoutMessage(cxRumEvent)) {
|
package/package.json
CHANGED
package/src/constants.d.ts
CHANGED
|
@@ -1,18 +1,5 @@
|
|
|
1
1
|
import { CoralogixBrowserSdkConfig, InputType } from './types';
|
|
2
|
-
import {
|
|
3
|
-
import { CoralogixFetchInstrumentation } from './instrumentations/network/CoralogixFetchInstrumentation';
|
|
4
|
-
import { CoralogixXhrInstrumentation } from './instrumentations/network/CoralogixXhrInstrumentation';
|
|
5
|
-
import { CoralogixCustomLogInstrumentation } from './instrumentations/CoralogixCustomLogInstrumentation';
|
|
6
|
-
import { CoralogixWebVitalsInstrumentation } from './instrumentations/CoralogixWebVitalsInstrumentation';
|
|
7
|
-
import { CoralogixLongTaskInstrumentation } from './instrumentations/CoralogixLongTaskInstrumentation';
|
|
8
|
-
import { CoralogixResourcesInstrumentation } from './instrumentations/CoralogixResourcesInstrumentation';
|
|
9
|
-
import { CoralogixUserInteractionInstrumentation } from './instrumentations/user-interaction/CoralogixUserInteractionInstrumentation';
|
|
10
|
-
import { CoralogixMemoryUsageInstrumentation } from './instrumentations/memory-usage';
|
|
11
|
-
import { CoralogixScreenshotInstrumentation } from './instrumentations/screenshot/CoralogixScreenshotInstrumentation';
|
|
12
|
-
import { CoralogixCustomMeasurementInstrumentation } from './instrumentations/custom-measurements';
|
|
13
|
-
import { CoralogixInternalInstrumentation } from './instrumentations/CoralogixInternalInstrumentation';
|
|
14
|
-
import { CoralogixDOMInstrumentation } from './instrumentations/CoralogixDOMInstrumentation';
|
|
15
|
-
import { CoralogixWorkerInstrumentation } from './instrumentations/web-worker/CoralogixWorkerInstrumentation';
|
|
2
|
+
import { InternalInstrumentationConfig } from './instrumentations/instrumentation.model';
|
|
16
3
|
export declare const CORALOGIX_LOGS_URL_SUFFIX = "/browser/v1beta/logs";
|
|
17
4
|
export declare const CORALOGIX_RECORDING_URL_SUFFIX = "/sessionrecording";
|
|
18
5
|
export declare const MAX_EXPORT_BATCH_SIZE = 50;
|
|
@@ -31,63 +18,11 @@ export declare const MASKED_TEXT = "***";
|
|
|
31
18
|
export declare const MASK_CLASS_DEFAULT = "cx-mask";
|
|
32
19
|
export declare const MASK_INPUT_TYPES_DEFAULT: InputType[];
|
|
33
20
|
export declare const OPTIONS_DEFAULTS: Partial<CoralogixBrowserSdkConfig>;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
readonly Instrument: typeof CoralogixFetchInstrumentation;
|
|
40
|
-
readonly confKey: "fetch";
|
|
41
|
-
readonly disable: false;
|
|
42
|
-
}, {
|
|
43
|
-
readonly Instrument: typeof CoralogixXhrInstrumentation;
|
|
44
|
-
readonly confKey: "xhr";
|
|
45
|
-
readonly disable: false;
|
|
46
|
-
}, {
|
|
47
|
-
readonly Instrument: typeof CoralogixCustomLogInstrumentation;
|
|
48
|
-
readonly confKey: "custom";
|
|
49
|
-
readonly disable: false;
|
|
50
|
-
}, {
|
|
51
|
-
readonly Instrument: typeof CoralogixUserInteractionInstrumentation;
|
|
52
|
-
readonly confKey: "user-interaction";
|
|
53
|
-
readonly disable: false;
|
|
54
|
-
}, {
|
|
55
|
-
readonly Instrument: typeof CoralogixWebVitalsInstrumentation;
|
|
56
|
-
readonly confKey: "web_vitals";
|
|
57
|
-
readonly disable: false;
|
|
58
|
-
}, {
|
|
59
|
-
readonly Instrument: typeof CoralogixLongTaskInstrumentation;
|
|
60
|
-
readonly confKey: "long_tasks";
|
|
61
|
-
readonly disable: false;
|
|
62
|
-
}, {
|
|
63
|
-
readonly Instrument: typeof CoralogixResourcesInstrumentation;
|
|
64
|
-
readonly confKey: "resources";
|
|
65
|
-
readonly disable: false;
|
|
66
|
-
}, {
|
|
67
|
-
readonly Instrument: typeof CoralogixInternalInstrumentation;
|
|
68
|
-
readonly confKey: "internal";
|
|
69
|
-
readonly disable: false;
|
|
70
|
-
}, {
|
|
71
|
-
readonly Instrument: typeof CoralogixDOMInstrumentation;
|
|
72
|
-
readonly confKey: "dom";
|
|
73
|
-
readonly disable: false;
|
|
74
|
-
}, {
|
|
75
|
-
readonly Instrument: typeof CoralogixCustomMeasurementInstrumentation;
|
|
76
|
-
readonly confKey: "custom_measurement";
|
|
77
|
-
readonly disable: false;
|
|
78
|
-
}, {
|
|
79
|
-
readonly Instrument: typeof CoralogixMemoryUsageInstrumentation;
|
|
80
|
-
readonly confKey: "memory_usage";
|
|
81
|
-
readonly disable: false;
|
|
82
|
-
}, {
|
|
83
|
-
readonly Instrument: typeof CoralogixScreenshotInstrumentation;
|
|
84
|
-
readonly confKey: "screenshot";
|
|
85
|
-
readonly disable: false;
|
|
86
|
-
}, {
|
|
87
|
-
readonly Instrument: typeof CoralogixWorkerInstrumentation;
|
|
88
|
-
readonly confKey: "web_worker";
|
|
89
|
-
readonly disable: false;
|
|
90
|
-
}];
|
|
21
|
+
/**
|
|
22
|
+
* Note: For any instrumentation added to CoralogixOtelWebOptionsInstrumentations,
|
|
23
|
+
* The `confKey` must match one of its keys.
|
|
24
|
+
*/
|
|
25
|
+
export declare const INSTRUMENTATIONS: readonly InternalInstrumentationConfig[];
|
|
91
26
|
export declare const CoralogixAttributes: {
|
|
92
27
|
USER_AGENT: string;
|
|
93
28
|
LOCATION_HREF: string;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { InstrumentationConfig } from '@opentelemetry/instrumentation';
|
|
2
|
+
import { CUSTOM_MEASUREMENT_INSTRUMENTATION_NAME, DOM_INSTRUMENTATION_NAME, INTERNAL_INSTRUMENTATION_NAME, WORKER_INSTRUMENTATION } from './instrumentation.consts';
|
|
3
|
+
import { MEMORY_USAGE_INSTRUMENTATION_NAME } from './memory-usage';
|
|
4
|
+
import { SCREENSHOT_INSTRUMENTATION_NAME } from './screenshot/screenshot.utils';
|
|
5
|
+
import { CoralogixOtelWebOptionsInstrumentations } from '../types';
|
|
2
6
|
export interface CoralogixWebVitalsMetrics {
|
|
3
7
|
lcp: boolean;
|
|
4
8
|
fid: boolean;
|
|
@@ -28,3 +32,8 @@ export declare enum ResourceInitiatorTypes {
|
|
|
28
32
|
Track = "track",
|
|
29
33
|
Other = "other"
|
|
30
34
|
}
|
|
35
|
+
export type InternalInstrumentationConfig = {
|
|
36
|
+
Instrument: any;
|
|
37
|
+
confKey: keyof CoralogixOtelWebOptionsInstrumentations | typeof CUSTOM_MEASUREMENT_INSTRUMENTATION_NAME | typeof INTERNAL_INSTRUMENTATION_NAME | typeof DOM_INSTRUMENTATION_NAME | typeof MEMORY_USAGE_INSTRUMENTATION_NAME | typeof SCREENSHOT_INSTRUMENTATION_NAME | typeof WORKER_INSTRUMENTATION;
|
|
38
|
+
disable: boolean;
|
|
39
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InstrumentationBase, InstrumentationConfig } from '@opentelemetry/instrumentation';
|
|
2
2
|
import { EventName } from '../../types';
|
|
3
|
-
export declare const USER_INTERACTION_INSTRUMENTATION_NAME = "
|
|
3
|
+
export declare const USER_INTERACTION_INSTRUMENTATION_NAME = "interactions";
|
|
4
4
|
export declare const USER_INTERACTION_INSTRUMENTATION_VERSION = "1";
|
|
5
5
|
export type UserInteractionEventsConfig = Partial<Record<EventName, boolean>>;
|
|
6
6
|
export interface CoralogixUserInteractionInstrumentationConfig extends InstrumentationConfig {
|
package/src/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.8.
|
|
1
|
+
export declare const SDK_VERSION = "2.8.1";
|