@openobserve/browser-core 0.3.0 → 0.3.2
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/cjs/domain/telemetry/telemetryEvent.types.d.ts +1 -1
- package/cjs/tools/display.d.ts +2 -2
- package/cjs/tools/display.js +3 -3
- package/cjs/tools/display.js.map +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/esm/domain/telemetry/telemetryEvent.types.d.ts +1 -1
- package/esm/tools/display.d.ts +2 -2
- package/esm/tools/display.js +3 -3
- package/esm/tools/display.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/telemetry/telemetryEvent.types.ts +1 -1
- package/src/tools/display.ts +3 -3
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.3.
|
|
10
|
+
version: "0.3.2",
|
|
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.
|
|
@@ -60,7 +60,7 @@ function buildEndpointParameters({ clientToken, internalAnalyticsSubdomain, sour
|
|
|
60
60
|
const parameters = [
|
|
61
61
|
`o2source=${source}`,
|
|
62
62
|
`o2-api-key=${clientToken}`,
|
|
63
|
-
`o2-evp-origin-version=${encodeURIComponent("0.3.
|
|
63
|
+
`o2-evp-origin-version=${encodeURIComponent("0.3.2")}`,
|
|
64
64
|
'o2-evp-origin=browser',
|
|
65
65
|
`o2-request-id=${(0, stringUtils_1.generateUUID)()}`,
|
|
66
66
|
].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 : "0.3.
|
|
12
|
+
const tags = [buildTag('sdk_version', sdkVersion !== null && sdkVersion !== void 0 ? sdkVersion : "0.3.2")];
|
|
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.3.
|
|
108
|
+
version: "0.3.2",
|
|
109
109
|
source: 'browser',
|
|
110
110
|
_oo: {
|
|
111
111
|
format_version: 2,
|
|
@@ -218,7 +218,7 @@ export type TelemetryConfigurationEvent = CommonTelemetryProperties & {
|
|
|
218
218
|
/**
|
|
219
219
|
* A list of selected tracing propagators
|
|
220
220
|
*/
|
|
221
|
-
selected_tracing_propagators?: ('tracecontext' | 'b3' | 'b3multi')[];
|
|
221
|
+
selected_tracing_propagators?: ('openobserve' | 'tracecontext' | 'b3' | 'b3multi')[];
|
|
222
222
|
/**
|
|
223
223
|
* Session replay default privacy level
|
|
224
224
|
*/
|
package/cjs/tools/display.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ interface Display {
|
|
|
32
32
|
export declare const globalConsole: Console;
|
|
33
33
|
export declare const originalConsoleMethods: Display;
|
|
34
34
|
export declare const display: Display;
|
|
35
|
-
export declare const DOCS_ORIGIN = "https://
|
|
36
|
-
export declare const DOCS_TROUBLESHOOTING = "https://
|
|
35
|
+
export declare const DOCS_ORIGIN = "https://openobserve.ai";
|
|
36
|
+
export declare const DOCS_TROUBLESHOOTING = "https://openobserve.ai/docs/user-guide/rum/";
|
|
37
37
|
export declare const MORE_DETAILS = "More details:";
|
|
38
38
|
export {};
|
package/cjs/tools/display.js
CHANGED
|
@@ -30,7 +30,7 @@ exports.originalConsoleMethods = {};
|
|
|
30
30
|
Object.keys(exports.ConsoleApiName).forEach((name) => {
|
|
31
31
|
exports.originalConsoleMethods[name] = exports.globalConsole[name];
|
|
32
32
|
});
|
|
33
|
-
const PREFIX = '
|
|
33
|
+
const PREFIX = 'Openobserve Browser SDK:';
|
|
34
34
|
exports.display = {
|
|
35
35
|
debug: exports.originalConsoleMethods.debug.bind(exports.globalConsole, PREFIX),
|
|
36
36
|
log: exports.originalConsoleMethods.log.bind(exports.globalConsole, PREFIX),
|
|
@@ -38,7 +38,7 @@ exports.display = {
|
|
|
38
38
|
warn: exports.originalConsoleMethods.warn.bind(exports.globalConsole, PREFIX),
|
|
39
39
|
error: exports.originalConsoleMethods.error.bind(exports.globalConsole, PREFIX),
|
|
40
40
|
};
|
|
41
|
-
exports.DOCS_ORIGIN = 'https://
|
|
42
|
-
exports.DOCS_TROUBLESHOOTING = `${exports.DOCS_ORIGIN}/
|
|
41
|
+
exports.DOCS_ORIGIN = 'https://openobserve.ai';
|
|
42
|
+
exports.DOCS_TROUBLESHOOTING = `${exports.DOCS_ORIGIN}/docs/user-guide/rum/`;
|
|
43
43
|
exports.MORE_DETAILS = 'More details:';
|
|
44
44
|
//# sourceMappingURL=display.js.map
|
package/cjs/tools/display.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"display.js","sourceRoot":"","sources":["../../src/tools/display.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD;;;;;;GAMG;;;AAEU,QAAA,cAAc,GAAG;IAC5B,GAAG,EAAE,KAAK;IACV,KAAK,EAAE,OAAO;IACd,IAAI,E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,IAAI,EAAE,8BAAsB,CAAC,IAAI,CAAC,IAAI,CAAC,qBAAa,EAAE,MAAM,CAAC;IAC7D,KAAK,EAAE,8BAAsB,CAAC,KAAK,CAAC,IAAI,CAAC,qBAAa,EAAE,MAAM,CAAC;CAChE,CAAA;AAEY,QAAA,WAAW,GAAG,wBAAwB,CAAA;AACtC,QAAA,oBAAoB,GAAG,GAAG,mBAAW,uBAAuB,CAAA;AAC5D,QAAA,YAAY,GAAG,eAAe,CAAA"}
|
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.3.
|
|
6
|
+
version: "0.3.2",
|
|
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.
|
|
@@ -56,7 +56,7 @@ function buildEndpointParameters({ clientToken, internalAnalyticsSubdomain, sour
|
|
|
56
56
|
const parameters = [
|
|
57
57
|
`o2source=${source}`,
|
|
58
58
|
`o2-api-key=${clientToken}`,
|
|
59
|
-
`o2-evp-origin-version=${encodeURIComponent("0.3.
|
|
59
|
+
`o2-evp-origin-version=${encodeURIComponent("0.3.2")}`,
|
|
60
60
|
'o2-evp-origin=browser',
|
|
61
61
|
`o2-request-id=${generateUUID()}`,
|
|
62
62
|
].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 : "0.3.
|
|
5
|
+
const tags = [buildTag('sdk_version', sdkVersion !== null && sdkVersion !== void 0 ? sdkVersion : "0.3.2")];
|
|
6
6
|
if (env) {
|
|
7
7
|
tags.push(buildTag('env', env));
|
|
8
8
|
}
|
|
@@ -218,7 +218,7 @@ export type TelemetryConfigurationEvent = CommonTelemetryProperties & {
|
|
|
218
218
|
/**
|
|
219
219
|
* A list of selected tracing propagators
|
|
220
220
|
*/
|
|
221
|
-
selected_tracing_propagators?: ('tracecontext' | 'b3' | 'b3multi')[];
|
|
221
|
+
selected_tracing_propagators?: ('openobserve' | 'tracecontext' | 'b3' | 'b3multi')[];
|
|
222
222
|
/**
|
|
223
223
|
* Session replay default privacy level
|
|
224
224
|
*/
|
package/esm/tools/display.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ interface Display {
|
|
|
32
32
|
export declare const globalConsole: Console;
|
|
33
33
|
export declare const originalConsoleMethods: Display;
|
|
34
34
|
export declare const display: Display;
|
|
35
|
-
export declare const DOCS_ORIGIN = "https://
|
|
36
|
-
export declare const DOCS_TROUBLESHOOTING = "https://
|
|
35
|
+
export declare const DOCS_ORIGIN = "https://openobserve.ai";
|
|
36
|
+
export declare const DOCS_TROUBLESHOOTING = "https://openobserve.ai/docs/user-guide/rum/";
|
|
37
37
|
export declare const MORE_DETAILS = "More details:";
|
|
38
38
|
export {};
|
package/esm/tools/display.js
CHANGED
|
@@ -27,7 +27,7 @@ export const originalConsoleMethods = {};
|
|
|
27
27
|
Object.keys(ConsoleApiName).forEach((name) => {
|
|
28
28
|
originalConsoleMethods[name] = globalConsole[name];
|
|
29
29
|
});
|
|
30
|
-
const PREFIX = '
|
|
30
|
+
const PREFIX = 'Openobserve Browser SDK:';
|
|
31
31
|
export const display = {
|
|
32
32
|
debug: originalConsoleMethods.debug.bind(globalConsole, PREFIX),
|
|
33
33
|
log: originalConsoleMethods.log.bind(globalConsole, PREFIX),
|
|
@@ -35,7 +35,7 @@ export const display = {
|
|
|
35
35
|
warn: originalConsoleMethods.warn.bind(globalConsole, PREFIX),
|
|
36
36
|
error: originalConsoleMethods.error.bind(globalConsole, PREFIX),
|
|
37
37
|
};
|
|
38
|
-
export const DOCS_ORIGIN = 'https://
|
|
39
|
-
export const DOCS_TROUBLESHOOTING = `${DOCS_ORIGIN}/
|
|
38
|
+
export const DOCS_ORIGIN = 'https://openobserve.ai';
|
|
39
|
+
export const DOCS_TROUBLESHOOTING = `${DOCS_ORIGIN}/docs/user-guide/rum/`;
|
|
40
40
|
export const MORE_DETAILS = 'More details:';
|
|
41
41
|
//# sourceMappingURL=display.js.map
|
package/esm/tools/display.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"display.js","sourceRoot":"","sources":["../../src/tools/display.ts"],"names":[],"mappings":"AAAA,sDAAsD;AACtD;;;;;;GAMG;AAEH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,GAAG,EAAE,KAAK;IACV,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;CACN,CAAA;AAYV;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,OAAO,CAAA;AAEpC,MAAM,CAAC,MAAM,sBAAsB,GAAG,EAAa,CAAA;AACnD,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;IAC3C,sBAAsB,CAAC,IAAsB,CAAC,GAAG,aAAa,CAAC,IAAsB,CAAC,CAAA;AACxF,CAAC,CAAC,CAAA;AAEF,MAAM,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"display.js","sourceRoot":"","sources":["../../src/tools/display.ts"],"names":[],"mappings":"AAAA,sDAAsD;AACtD;;;;;;GAMG;AAEH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,GAAG,EAAE,KAAK;IACV,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;CACN,CAAA;AAYV;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,OAAO,CAAA;AAEpC,MAAM,CAAC,MAAM,sBAAsB,GAAG,EAAa,CAAA;AACnD,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;IAC3C,sBAAsB,CAAC,IAAsB,CAAC,GAAG,aAAa,CAAC,IAAsB,CAAC,CAAA;AACxF,CAAC,CAAC,CAAA;AAEF,MAAM,MAAM,GAAG,0BAA0B,CAAA;AAEzC,MAAM,CAAC,MAAM,OAAO,GAAY;IAC9B,KAAK,EAAE,sBAAsB,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/D,GAAG,EAAE,sBAAsB,CAAC,GAAG,CAAC,IAAI,CAAC,aAAa,EAAE,MAAM,CAAC;IAC3D,IAAI,EAAE,sBAAsB,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,MAAM,CAAC;IAC7D,IAAI,EAAE,sBAAsB,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,MAAM,CAAC;IAC7D,KAAK,EAAE,sBAAsB,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,EAAE,MAAM,CAAC;CAChE,CAAA;AAED,MAAM,CAAC,MAAM,WAAW,GAAG,wBAAwB,CAAA;AACnD,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,WAAW,uBAAuB,CAAA;AACzE,MAAM,CAAC,MAAM,YAAY,GAAG,eAAe,CAAA"}
|
package/package.json
CHANGED
|
@@ -224,7 +224,7 @@ export type TelemetryConfigurationEvent = CommonTelemetryProperties & {
|
|
|
224
224
|
/**
|
|
225
225
|
* A list of selected tracing propagators
|
|
226
226
|
*/
|
|
227
|
-
selected_tracing_propagators?: ('tracecontext' | 'b3' | 'b3multi')[]
|
|
227
|
+
selected_tracing_propagators?: ('openobserve' | 'tracecontext' | 'b3' | 'b3multi')[]
|
|
228
228
|
/**
|
|
229
229
|
* Session replay default privacy level
|
|
230
230
|
*/
|
package/src/tools/display.ts
CHANGED
|
@@ -41,7 +41,7 @@ Object.keys(ConsoleApiName).forEach((name) => {
|
|
|
41
41
|
originalConsoleMethods[name as ConsoleApiName] = globalConsole[name as ConsoleApiName]
|
|
42
42
|
})
|
|
43
43
|
|
|
44
|
-
const PREFIX = '
|
|
44
|
+
const PREFIX = 'Openobserve Browser SDK:'
|
|
45
45
|
|
|
46
46
|
export const display: Display = {
|
|
47
47
|
debug: originalConsoleMethods.debug.bind(globalConsole, PREFIX),
|
|
@@ -51,6 +51,6 @@ export const display: Display = {
|
|
|
51
51
|
error: originalConsoleMethods.error.bind(globalConsole, PREFIX),
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
export const DOCS_ORIGIN = 'https://
|
|
55
|
-
export const DOCS_TROUBLESHOOTING = `${DOCS_ORIGIN}/
|
|
54
|
+
export const DOCS_ORIGIN = 'https://openobserve.ai'
|
|
55
|
+
export const DOCS_TROUBLESHOOTING = `${DOCS_ORIGIN}/docs/user-guide/rum/`
|
|
56
56
|
export const MORE_DETAILS = 'More details:'
|