@kubesense/kubesense-browser-core 1.0.0 → 1.2.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/README.md +22 -2
- 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 +2 -2
package/README.md
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @kubesense/kubesense-browser-core
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Foundation utilities shared across the Kubesense Browser SDK: session management,
|
|
4
|
+
transport and batching, configuration, context managers, telemetry, and browser
|
|
5
|
+
helpers.
|
|
6
|
+
|
|
7
|
+
> **Internal package.** This is a building block consumed by the other Kubesense
|
|
8
|
+
> Browser SDK packages — it is not a product SDK on its own and has no standalone
|
|
9
|
+
> initialization. You normally do **not** install it directly.
|
|
10
|
+
>
|
|
11
|
+
> To instrument your application, use one of:
|
|
12
|
+
>
|
|
13
|
+
> - [`@kubesense/kubesense-browser-rum`][rum] — Real User Monitoring
|
|
14
|
+
> - [`@kubesense/kubesense-browser-rum-slim`][rum-slim] — RUM without Session Replay
|
|
15
|
+
> - [`@kubesense/kubesense-browser-logs`][logs] — Log collection
|
|
16
|
+
|
|
17
|
+
## License
|
|
18
|
+
|
|
19
|
+
[Apache-2.0](https://github.com/kubesense-ai/kubesense-browser-sdk/blob/main/LICENSE)
|
|
20
|
+
|
|
21
|
+
[rum]: https://www.npmjs.com/package/@kubesense/kubesense-browser-rum
|
|
22
|
+
[rum-slim]: https://www.npmjs.com/package/@kubesense/kubesense-browser-rum-slim
|
|
23
|
+
[logs]: https://www.npmjs.com/package/@kubesense/kubesense-browser-logs
|
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.2.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.2.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.2.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.2.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.2.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.2.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.2.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.2.0",
|
|
100
100
|
source: 'browser',
|
|
101
101
|
_kubesense: {
|
|
102
102
|
format_version: 2,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubesense/kubesense-browser-core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "cjs/index.js",
|
|
6
6
|
"module": "esm/index.js",
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"publishConfig": {
|
|
25
25
|
"access": "public"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "c49352eb57b271896c63b12053001be6a2684fb0"
|
|
28
28
|
}
|