@kubesense/kubesense-browser-core 1.3.0 → 1.4.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/cjs/boot/init.js +1 -1
- package/cjs/domain/configuration/endpointBuilder.js +1 -1
- package/cjs/domain/tags.js +1 -1
- package/cjs/domain/telemetry/telemetry.js +1 -1
- package/esm/boot/init.js +1 -1
- package/esm/domain/configuration/endpointBuilder.js +1 -1
- package/esm/domain/tags.js +1 -1
- package/esm/domain/telemetry/telemetry.js +1 -1
- package/package.json +13 -2
package/cjs/boot/init.js
CHANGED
|
@@ -7,7 +7,7 @@ const monitor_1 = require("../tools/monitor");
|
|
|
7
7
|
const display_1 = require("../tools/display");
|
|
8
8
|
function makePublicApi(stub) {
|
|
9
9
|
const publicApi = {
|
|
10
|
-
version: "1.
|
|
10
|
+
version: "1.4.0",
|
|
11
11
|
// This API method is intentionally not monitored, since the only thing executed is the
|
|
12
12
|
// user-provided 'callback'. All SDK usages executed in the callback should be monitored, and
|
|
13
13
|
// we don't want to interfere with the user uncaught exceptions.
|
|
@@ -45,7 +45,7 @@ function buildEndpointParameters({ clientToken, internalAnalyticsSubdomain, sour
|
|
|
45
45
|
const parameters = [
|
|
46
46
|
`ksource=${source}`,
|
|
47
47
|
`kubesense-api-key=${clientToken}`,
|
|
48
|
-
`kubesense-evp-origin-version=${encodeURIComponent("1.
|
|
48
|
+
`kubesense-evp-origin-version=${encodeURIComponent("1.4.0")}`,
|
|
49
49
|
'kubesense-evp-origin=browser',
|
|
50
50
|
`kubesense-request-id=${(0, stringUtils_1.generateUUID)()}`,
|
|
51
51
|
].concat(extraParameters);
|
package/cjs/domain/tags.js
CHANGED
|
@@ -9,7 +9,7 @@ const display_1 = require("../tools/display");
|
|
|
9
9
|
exports.TAG_SIZE_LIMIT = 200;
|
|
10
10
|
function buildTags(configuration) {
|
|
11
11
|
const { env, service, version, datacenter, sdkVersion, variant } = configuration;
|
|
12
|
-
const tags = [buildTag('sdk_version', sdkVersion !== null && sdkVersion !== void 0 ? sdkVersion : "1.
|
|
12
|
+
const tags = [buildTag('sdk_version', sdkVersion !== null && sdkVersion !== void 0 ? sdkVersion : "1.4.0")];
|
|
13
13
|
if (env) {
|
|
14
14
|
tags.push(buildTag('env', env));
|
|
15
15
|
}
|
|
@@ -109,7 +109,7 @@ function startTelemetryCollection(telemetryService, configuration, hooks, observ
|
|
|
109
109
|
type: 'telemetry',
|
|
110
110
|
date: clockNow.timeStamp,
|
|
111
111
|
service: telemetryService,
|
|
112
|
-
version: "1.
|
|
112
|
+
version: "1.4.0",
|
|
113
113
|
source: 'browser',
|
|
114
114
|
_kubesense: {
|
|
115
115
|
format_version: 2,
|
package/esm/boot/init.js
CHANGED
|
@@ -3,7 +3,7 @@ import { setDebugMode } from '../tools/monitor';
|
|
|
3
3
|
import { display } from '../tools/display';
|
|
4
4
|
export function makePublicApi(stub) {
|
|
5
5
|
const publicApi = {
|
|
6
|
-
version: "1.
|
|
6
|
+
version: "1.4.0",
|
|
7
7
|
// This API method is intentionally not monitored, since the only thing executed is the
|
|
8
8
|
// user-provided 'callback'. All SDK usages executed in the callback should be monitored, and
|
|
9
9
|
// we don't want to interfere with the user uncaught exceptions.
|
|
@@ -41,7 +41,7 @@ function buildEndpointParameters({ clientToken, internalAnalyticsSubdomain, sour
|
|
|
41
41
|
const parameters = [
|
|
42
42
|
`ksource=${source}`,
|
|
43
43
|
`kubesense-api-key=${clientToken}`,
|
|
44
|
-
`kubesense-evp-origin-version=${encodeURIComponent("1.
|
|
44
|
+
`kubesense-evp-origin-version=${encodeURIComponent("1.4.0")}`,
|
|
45
45
|
'kubesense-evp-origin=browser',
|
|
46
46
|
`kubesense-request-id=${generateUUID()}`,
|
|
47
47
|
].concat(extraParameters);
|
package/esm/domain/tags.js
CHANGED
|
@@ -2,7 +2,7 @@ import { DOCS_ORIGIN, MORE_DETAILS, display } from '../tools/display';
|
|
|
2
2
|
export const TAG_SIZE_LIMIT = 200;
|
|
3
3
|
export function buildTags(configuration) {
|
|
4
4
|
const { env, service, version, datacenter, sdkVersion, variant } = configuration;
|
|
5
|
-
const tags = [buildTag('sdk_version', sdkVersion !== null && sdkVersion !== void 0 ? sdkVersion : "1.
|
|
5
|
+
const tags = [buildTag('sdk_version', sdkVersion !== null && sdkVersion !== void 0 ? sdkVersion : "1.4.0")];
|
|
6
6
|
if (env) {
|
|
7
7
|
tags.push(buildTag('env', env));
|
|
8
8
|
}
|
|
@@ -96,7 +96,7 @@ export function startTelemetryCollection(telemetryService, configuration, hooks,
|
|
|
96
96
|
type: 'telemetry',
|
|
97
97
|
date: clockNow.timeStamp,
|
|
98
98
|
service: telemetryService,
|
|
99
|
-
version: "1.
|
|
99
|
+
version: "1.4.0",
|
|
100
100
|
source: 'browser',
|
|
101
101
|
_kubesense: {
|
|
102
102
|
format_version: 2,
|
package/package.json
CHANGED
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubesense/kubesense-browser-core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
|
+
"description": "Core utilities shared across the Kubesense Browser SDK (session management, transport, configuration, and context).",
|
|
4
5
|
"license": "Apache-2.0",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"kubesense",
|
|
8
|
+
"browser",
|
|
9
|
+
"sdk",
|
|
10
|
+
"monitoring",
|
|
11
|
+
"observability",
|
|
12
|
+
"telemetry",
|
|
13
|
+
"rum",
|
|
14
|
+
"core"
|
|
15
|
+
],
|
|
5
16
|
"main": "cjs/index.js",
|
|
6
17
|
"module": "esm/index.js",
|
|
7
18
|
"types": "cjs/index.d.ts",
|
|
@@ -24,5 +35,5 @@
|
|
|
24
35
|
"publishConfig": {
|
|
25
36
|
"access": "public"
|
|
26
37
|
},
|
|
27
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "af1a0950e2441f45b4303b2dc17b09f9cd0d999d"
|
|
28
39
|
}
|