@openobserve/browser-core 0.2.12-beta.23 → 0.2.12-beta.24
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 +8 -8
- 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 +8 -8
- package/esm/domain/tags.js +1 -1
- package/esm/domain/telemetry/telemetry.js +1 -1
- package/package.json +1 -1
- package/src/domain/configuration/endpointBuilder.ts +8 -8
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: "0.2.12-beta.
|
|
10
|
+
version: "0.2.12-beta.24",
|
|
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.
|
|
@@ -62,19 +62,19 @@ function buildEndpointHost(trackType, initConfiguration) {
|
|
|
62
62
|
*/
|
|
63
63
|
function buildEndpointParameters({ clientToken, internalAnalyticsSubdomain, source = 'browser' }, trackType, api, { retry, encoding }, extraParameters = []) {
|
|
64
64
|
const parameters = [
|
|
65
|
-
`
|
|
66
|
-
`
|
|
67
|
-
`
|
|
68
|
-
'
|
|
69
|
-
`
|
|
65
|
+
`o2source=${source}`,
|
|
66
|
+
`o2-api-key=${clientToken}`,
|
|
67
|
+
`o2-evp-origin-version=${encodeURIComponent("0.2.12-beta.24")}`,
|
|
68
|
+
'o2-evp-origin=browser',
|
|
69
|
+
`o2-request-id=${(0, stringUtils_1.generateUUID)()}`,
|
|
70
70
|
].concat(extraParameters);
|
|
71
71
|
if (encoding) {
|
|
72
|
-
parameters.push(`
|
|
72
|
+
parameters.push(`o2-evp-encoding=${encoding}`);
|
|
73
73
|
}
|
|
74
74
|
if (trackType === 'rum') {
|
|
75
|
-
parameters.push(`batch_time=${(0, timeUtils_1.timeStampNow)()}`, `
|
|
75
|
+
parameters.push(`batch_time=${(0, timeUtils_1.timeStampNow)()}`, `_o2.api=${api}`);
|
|
76
76
|
if (retry) {
|
|
77
|
-
parameters.push(`
|
|
77
|
+
parameters.push(`_o2.retry_count=${retry.count}`, `_o2.retry_after=${retry.lastFailureStatus}`);
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
if (internalAnalyticsSubdomain) {
|
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 : "0.2.12-beta.
|
|
12
|
+
const tags = [buildTag('sdk_version', sdkVersion !== null && sdkVersion !== void 0 ? sdkVersion : "0.2.12-beta.24")];
|
|
13
13
|
if (env) {
|
|
14
14
|
tags.push(buildTag('env', env));
|
|
15
15
|
}
|
|
@@ -105,7 +105,7 @@ function startTelemetryCollection(telemetryService, configuration, hooks, observ
|
|
|
105
105
|
type: 'telemetry',
|
|
106
106
|
date: clockNow.timeStamp,
|
|
107
107
|
service: telemetryService,
|
|
108
|
-
version: "0.2.12-beta.
|
|
108
|
+
version: "0.2.12-beta.24",
|
|
109
109
|
source: 'browser',
|
|
110
110
|
_oo: {
|
|
111
111
|
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: "0.2.12-beta.
|
|
6
|
+
version: "0.2.12-beta.24",
|
|
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.
|
|
@@ -58,19 +58,19 @@ export function buildEndpointHost(trackType, initConfiguration) {
|
|
|
58
58
|
*/
|
|
59
59
|
function buildEndpointParameters({ clientToken, internalAnalyticsSubdomain, source = 'browser' }, trackType, api, { retry, encoding }, extraParameters = []) {
|
|
60
60
|
const parameters = [
|
|
61
|
-
`
|
|
62
|
-
`
|
|
63
|
-
`
|
|
64
|
-
'
|
|
65
|
-
`
|
|
61
|
+
`o2source=${source}`,
|
|
62
|
+
`o2-api-key=${clientToken}`,
|
|
63
|
+
`o2-evp-origin-version=${encodeURIComponent("0.2.12-beta.24")}`,
|
|
64
|
+
'o2-evp-origin=browser',
|
|
65
|
+
`o2-request-id=${generateUUID()}`,
|
|
66
66
|
].concat(extraParameters);
|
|
67
67
|
if (encoding) {
|
|
68
|
-
parameters.push(`
|
|
68
|
+
parameters.push(`o2-evp-encoding=${encoding}`);
|
|
69
69
|
}
|
|
70
70
|
if (trackType === 'rum') {
|
|
71
|
-
parameters.push(`batch_time=${timeStampNow()}`, `
|
|
71
|
+
parameters.push(`batch_time=${timeStampNow()}`, `_o2.api=${api}`);
|
|
72
72
|
if (retry) {
|
|
73
|
-
parameters.push(`
|
|
73
|
+
parameters.push(`_o2.retry_count=${retry.count}`, `_o2.retry_after=${retry.lastFailureStatus}`);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
if (internalAnalyticsSubdomain) {
|
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 : "0.2.12-beta.
|
|
5
|
+
const tags = [buildTag('sdk_version', sdkVersion !== null && sdkVersion !== void 0 ? sdkVersion : "0.2.12-beta.24")];
|
|
6
6
|
if (env) {
|
|
7
7
|
tags.push(buildTag('env', env));
|
|
8
8
|
}
|
|
@@ -92,7 +92,7 @@ export function startTelemetryCollection(telemetryService, configuration, hooks,
|
|
|
92
92
|
type: 'telemetry',
|
|
93
93
|
date: clockNow.timeStamp,
|
|
94
94
|
service: telemetryService,
|
|
95
|
-
version: "0.2.12-beta.
|
|
95
|
+
version: "0.2.12-beta.24",
|
|
96
96
|
source: 'browser',
|
|
97
97
|
_oo: {
|
|
98
98
|
format_version: 2,
|
package/package.json
CHANGED
|
@@ -101,22 +101,22 @@ function buildEndpointParameters(
|
|
|
101
101
|
extraParameters: string[] = []
|
|
102
102
|
) {
|
|
103
103
|
const parameters = [
|
|
104
|
-
`
|
|
105
|
-
`
|
|
106
|
-
`
|
|
107
|
-
'
|
|
108
|
-
`
|
|
104
|
+
`o2source=${source}`,
|
|
105
|
+
`o2-api-key=${clientToken}`,
|
|
106
|
+
`o2-evp-origin-version=${encodeURIComponent(__BUILD_ENV__SDK_VERSION__)}`,
|
|
107
|
+
'o2-evp-origin=browser',
|
|
108
|
+
`o2-request-id=${generateUUID()}`,
|
|
109
109
|
].concat(extraParameters)
|
|
110
110
|
|
|
111
111
|
if (encoding) {
|
|
112
|
-
parameters.push(`
|
|
112
|
+
parameters.push(`o2-evp-encoding=${encoding}`)
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
if (trackType === 'rum') {
|
|
116
|
-
parameters.push(`batch_time=${timeStampNow()}`, `
|
|
116
|
+
parameters.push(`batch_time=${timeStampNow()}`, `_o2.api=${api}`)
|
|
117
117
|
|
|
118
118
|
if (retry) {
|
|
119
|
-
parameters.push(`
|
|
119
|
+
parameters.push(`_o2.retry_count=${retry.count}`, `_o2.retry_after=${retry.lastFailureStatus}`)
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
|