o11y 252.2.0 → 252.3.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/dist/modules/o11y/client/client.js +46 -20
- package/dist/modules/o11y/client/client.js.map +1 -1
- package/dist/modules/o11y/client/interfaces/ActivityStartOptions.d.ts +1 -0
- package/dist/modules/o11y/client/interfaces/ActivityStopOptions.d.ts +1 -0
- package/dist/modules/o11y/client/interfaces/InstrumentedAppOptions.d.ts +1 -0
- package/dist/modules/o11y/client/library/InstrumentationImpl.d.ts +1 -1
- package/dist/modules/o11y/client/library/NextgenImpl.d.ts +2 -0
- package/dist/modules/o11y/client/library/PerformanceObservability.d.ts +2 -0
- package/dist/modules/o11y/client/library/RootActivityImpl.d.ts +1 -1
- package/dist/modules/o11y/client/shared/Utility.d.ts +1 -1
- package/dist/modules/o11y/client/version.d.ts +1 -1
- package/dist/modules/o11y/collectors/interfaces/ActivityStartOptions.d.ts +1 -0
- package/dist/modules/o11y/collectors/interfaces/ActivityStopOptions.d.ts +1 -0
- package/dist/modules/o11y/collectors/interfaces/InstrumentedAppOptions.d.ts +1 -0
- package/dist/modules/o11y/collectors/library/InstrumentationImpl.d.ts +1 -1
- package/dist/modules/o11y/collectors/library/NextgenImpl.d.ts +2 -0
- package/dist/modules/o11y/collectors/library/PerformanceObservability.d.ts +2 -0
- package/dist/modules/o11y/collectors/library/RootActivityImpl.d.ts +1 -1
- package/dist/modules/o11y/collectors/shared/Utility.d.ts +1 -1
- package/dist/modules/o11y/collectors/version.d.ts +1 -1
- package/dist/modules/o11y/core_envelope/interfaces/ActivityStartOptions.d.ts +1 -0
- package/dist/modules/o11y/core_envelope/interfaces/ActivityStopOptions.d.ts +1 -0
- package/dist/modules/o11y/core_envelope/interfaces/InstrumentedAppOptions.d.ts +1 -0
- package/dist/modules/o11y/core_envelope/library/InstrumentationImpl.d.ts +1 -1
- package/dist/modules/o11y/core_envelope/library/NextgenImpl.d.ts +2 -0
- package/dist/modules/o11y/core_envelope/library/PerformanceObservability.d.ts +2 -0
- package/dist/modules/o11y/core_envelope/library/RootActivityImpl.d.ts +1 -1
- package/dist/modules/o11y/core_envelope/shared/Utility.d.ts +1 -1
- package/dist/modules/o11y/core_envelope/version.d.ts +1 -1
- package/dist/modules/o11y/shared/interfaces/ActivityStartOptions.d.ts +1 -0
- package/dist/modules/o11y/shared/interfaces/ActivityStopOptions.d.ts +1 -0
- package/dist/modules/o11y/shared/interfaces/InstrumentedAppOptions.d.ts +1 -0
- package/dist/modules/o11y/shared/library/InstrumentationImpl.d.ts +1 -1
- package/dist/modules/o11y/shared/library/NextgenImpl.d.ts +2 -0
- package/dist/modules/o11y/shared/library/PerformanceObservability.d.ts +2 -0
- package/dist/modules/o11y/shared/library/RootActivityImpl.d.ts +1 -1
- package/dist/modules/o11y/shared/shared/Utility.d.ts +1 -1
- package/dist/modules/o11y/shared/shared.js +7 -4
- package/dist/modules/o11y/shared/shared.js.map +1 -1
- package/dist/modules/o11y/shared/version.d.ts +1 -1
- package/dist/modules/o11y/simple_collector/interfaces/ActivityStartOptions.d.ts +1 -0
- package/dist/modules/o11y/simple_collector/interfaces/ActivityStopOptions.d.ts +1 -0
- package/dist/modules/o11y/simple_collector/interfaces/InstrumentedAppOptions.d.ts +1 -0
- package/dist/modules/o11y/simple_collector/library/InstrumentationImpl.d.ts +1 -1
- package/dist/modules/o11y/simple_collector/library/NextgenImpl.d.ts +2 -0
- package/dist/modules/o11y/simple_collector/library/PerformanceObservability.d.ts +2 -0
- package/dist/modules/o11y/simple_collector/library/RootActivityImpl.d.ts +1 -1
- package/dist/modules/o11y/simple_collector/shared/Utility.d.ts +1 -1
- package/dist/modules/o11y/simple_collector/version.d.ts +1 -1
- package/dist/modules/o11y/web_vitals/interfaces/ActivityStartOptions.d.ts +1 -0
- package/dist/modules/o11y/web_vitals/interfaces/ActivityStopOptions.d.ts +1 -0
- package/dist/modules/o11y/web_vitals/interfaces/InstrumentedAppOptions.d.ts +1 -0
- package/dist/modules/o11y/web_vitals/library/InstrumentationImpl.d.ts +1 -1
- package/dist/modules/o11y/web_vitals/library/NextgenImpl.d.ts +2 -0
- package/dist/modules/o11y/web_vitals/library/PerformanceObservability.d.ts +2 -0
- package/dist/modules/o11y/web_vitals/library/RootActivityImpl.d.ts +1 -1
- package/dist/modules/o11y/web_vitals/shared/Utility.d.ts +1 -1
- package/dist/modules/o11y/web_vitals/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ import { MetricsImpl } from './MetricsImpl';
|
|
|
6
6
|
import { NextgenImpl } from './NextgenImpl';
|
|
7
7
|
import { ActivityStartApiOptions } from 'src/interfaces/ActivityStartApiOptions';
|
|
8
8
|
export declare class InstrumentationImpl implements Instrumentation, MetricsReporter {
|
|
9
|
-
|
|
9
|
+
protected readonly _nextGen: NextgenImpl;
|
|
10
10
|
private readonly _name;
|
|
11
11
|
protected static readonly defaultAppName = "APP_NOT_REGISTERED";
|
|
12
12
|
private readonly _metrics;
|
|
@@ -26,6 +26,8 @@ export declare class NextgenImpl implements Nextgen {
|
|
|
26
26
|
private _metricsStore;
|
|
27
27
|
private _receiverConnector;
|
|
28
28
|
private _decimalPoints;
|
|
29
|
+
private _preferredRootIdLength;
|
|
30
|
+
get preferredRootIdLength(): number;
|
|
29
31
|
get pagePayloadProvider(): PayloadProvider;
|
|
30
32
|
set pagePayloadProvider(provider: PayloadProvider);
|
|
31
33
|
get appPayloadProvider(): PayloadProvider;
|
|
@@ -3,7 +3,7 @@ import { ActivityDetail } from '../interfaces/ActivityDetail';
|
|
|
3
3
|
import { ActivityImpl, onActivityError, onActivityStop } from './ActivityImpl';
|
|
4
4
|
import { SchematizedData } from 'o11y/shared';
|
|
5
5
|
export declare class RootActivityImpl extends ActivityImpl implements RootActivity {
|
|
6
|
-
constructor(name: string, onStopped: onActivityStop, onError: onActivityError, rootId?: string, isSampled?: boolean, startPerfTime?: number);
|
|
6
|
+
constructor(name: string, onStopped: onActivityStop, onError: onActivityError, rootId?: string, isSampled?: boolean, startPerfTime?: number, generatedRootIdLength?: number);
|
|
7
7
|
private _preRootId;
|
|
8
8
|
get preRootId(): string;
|
|
9
9
|
set preRootId(value: string);
|
|
@@ -12,7 +12,7 @@ declare class Utility {
|
|
|
12
12
|
private readonly _timeOrigin;
|
|
13
13
|
constructor();
|
|
14
14
|
get isProduction(): boolean;
|
|
15
|
-
markProduction(): void;
|
|
15
|
+
markProduction(value?: boolean): void;
|
|
16
16
|
private _checkArgument;
|
|
17
17
|
requireArgument<T>(argument: T, argumentName: string, argKind?: unknown): void;
|
|
18
18
|
requireArgumentIfDefined<T>(argument: T, argumentName: string, argKind: unknown): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "252.
|
|
1
|
+
export declare const version = "252.3.0";
|
|
@@ -6,7 +6,7 @@ import { MetricsImpl } from './MetricsImpl';
|
|
|
6
6
|
import { NextgenImpl } from './NextgenImpl';
|
|
7
7
|
import { ActivityStartApiOptions } from 'src/interfaces/ActivityStartApiOptions';
|
|
8
8
|
export declare class InstrumentationImpl implements Instrumentation, MetricsReporter {
|
|
9
|
-
|
|
9
|
+
protected readonly _nextGen: NextgenImpl;
|
|
10
10
|
private readonly _name;
|
|
11
11
|
protected static readonly defaultAppName = "APP_NOT_REGISTERED";
|
|
12
12
|
private readonly _metrics;
|
|
@@ -26,6 +26,8 @@ export declare class NextgenImpl implements Nextgen {
|
|
|
26
26
|
private _metricsStore;
|
|
27
27
|
private _receiverConnector;
|
|
28
28
|
private _decimalPoints;
|
|
29
|
+
private _preferredRootIdLength;
|
|
30
|
+
get preferredRootIdLength(): number;
|
|
29
31
|
get pagePayloadProvider(): PayloadProvider;
|
|
30
32
|
set pagePayloadProvider(provider: PayloadProvider);
|
|
31
33
|
get appPayloadProvider(): PayloadProvider;
|
|
@@ -3,7 +3,7 @@ import { ActivityDetail } from '../interfaces/ActivityDetail';
|
|
|
3
3
|
import { ActivityImpl, onActivityError, onActivityStop } from './ActivityImpl';
|
|
4
4
|
import { SchematizedData } from 'o11y/shared';
|
|
5
5
|
export declare class RootActivityImpl extends ActivityImpl implements RootActivity {
|
|
6
|
-
constructor(name: string, onStopped: onActivityStop, onError: onActivityError, rootId?: string, isSampled?: boolean, startPerfTime?: number);
|
|
6
|
+
constructor(name: string, onStopped: onActivityStop, onError: onActivityError, rootId?: string, isSampled?: boolean, startPerfTime?: number, generatedRootIdLength?: number);
|
|
7
7
|
private _preRootId;
|
|
8
8
|
get preRootId(): string;
|
|
9
9
|
set preRootId(value: string);
|
|
@@ -12,7 +12,7 @@ declare class Utility {
|
|
|
12
12
|
private readonly _timeOrigin;
|
|
13
13
|
constructor();
|
|
14
14
|
get isProduction(): boolean;
|
|
15
|
-
markProduction(): void;
|
|
15
|
+
markProduction(value?: boolean): void;
|
|
16
16
|
private _checkArgument;
|
|
17
17
|
requireArgument<T>(argument: T, argumentName: string, argKind?: unknown): void;
|
|
18
18
|
requireArgumentIfDefined<T>(argument: T, argumentName: string, argKind: unknown): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "252.
|
|
1
|
+
export declare const version = "252.3.0";
|
|
@@ -6,7 +6,7 @@ import { MetricsImpl } from './MetricsImpl';
|
|
|
6
6
|
import { NextgenImpl } from './NextgenImpl';
|
|
7
7
|
import { ActivityStartApiOptions } from 'src/interfaces/ActivityStartApiOptions';
|
|
8
8
|
export declare class InstrumentationImpl implements Instrumentation, MetricsReporter {
|
|
9
|
-
|
|
9
|
+
protected readonly _nextGen: NextgenImpl;
|
|
10
10
|
private readonly _name;
|
|
11
11
|
protected static readonly defaultAppName = "APP_NOT_REGISTERED";
|
|
12
12
|
private readonly _metrics;
|
|
@@ -26,6 +26,8 @@ export declare class NextgenImpl implements Nextgen {
|
|
|
26
26
|
private _metricsStore;
|
|
27
27
|
private _receiverConnector;
|
|
28
28
|
private _decimalPoints;
|
|
29
|
+
private _preferredRootIdLength;
|
|
30
|
+
get preferredRootIdLength(): number;
|
|
29
31
|
get pagePayloadProvider(): PayloadProvider;
|
|
30
32
|
set pagePayloadProvider(provider: PayloadProvider);
|
|
31
33
|
get appPayloadProvider(): PayloadProvider;
|
|
@@ -3,7 +3,7 @@ import { ActivityDetail } from '../interfaces/ActivityDetail';
|
|
|
3
3
|
import { ActivityImpl, onActivityError, onActivityStop } from './ActivityImpl';
|
|
4
4
|
import { SchematizedData } from 'o11y/shared';
|
|
5
5
|
export declare class RootActivityImpl extends ActivityImpl implements RootActivity {
|
|
6
|
-
constructor(name: string, onStopped: onActivityStop, onError: onActivityError, rootId?: string, isSampled?: boolean, startPerfTime?: number);
|
|
6
|
+
constructor(name: string, onStopped: onActivityStop, onError: onActivityError, rootId?: string, isSampled?: boolean, startPerfTime?: number, generatedRootIdLength?: number);
|
|
7
7
|
private _preRootId;
|
|
8
8
|
get preRootId(): string;
|
|
9
9
|
set preRootId(value: string);
|
|
@@ -12,7 +12,7 @@ declare class Utility {
|
|
|
12
12
|
private readonly _timeOrigin;
|
|
13
13
|
constructor();
|
|
14
14
|
get isProduction(): boolean;
|
|
15
|
-
markProduction(): void;
|
|
15
|
+
markProduction(value?: boolean): void;
|
|
16
16
|
private _checkArgument;
|
|
17
17
|
requireArgument<T>(argument: T, argumentName: string, argKind?: unknown): void;
|
|
18
18
|
requireArgumentIfDefined<T>(argument: T, argumentName: string, argKind: unknown): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "252.
|
|
1
|
+
export declare const version = "252.3.0";
|
|
@@ -6,7 +6,7 @@ import { MetricsImpl } from './MetricsImpl';
|
|
|
6
6
|
import { NextgenImpl } from './NextgenImpl';
|
|
7
7
|
import { ActivityStartApiOptions } from 'src/interfaces/ActivityStartApiOptions';
|
|
8
8
|
export declare class InstrumentationImpl implements Instrumentation, MetricsReporter {
|
|
9
|
-
|
|
9
|
+
protected readonly _nextGen: NextgenImpl;
|
|
10
10
|
private readonly _name;
|
|
11
11
|
protected static readonly defaultAppName = "APP_NOT_REGISTERED";
|
|
12
12
|
private readonly _metrics;
|
|
@@ -26,6 +26,8 @@ export declare class NextgenImpl implements Nextgen {
|
|
|
26
26
|
private _metricsStore;
|
|
27
27
|
private _receiverConnector;
|
|
28
28
|
private _decimalPoints;
|
|
29
|
+
private _preferredRootIdLength;
|
|
30
|
+
get preferredRootIdLength(): number;
|
|
29
31
|
get pagePayloadProvider(): PayloadProvider;
|
|
30
32
|
set pagePayloadProvider(provider: PayloadProvider);
|
|
31
33
|
get appPayloadProvider(): PayloadProvider;
|
|
@@ -3,7 +3,7 @@ import { ActivityDetail } from '../interfaces/ActivityDetail';
|
|
|
3
3
|
import { ActivityImpl, onActivityError, onActivityStop } from './ActivityImpl';
|
|
4
4
|
import { SchematizedData } from 'o11y/shared';
|
|
5
5
|
export declare class RootActivityImpl extends ActivityImpl implements RootActivity {
|
|
6
|
-
constructor(name: string, onStopped: onActivityStop, onError: onActivityError, rootId?: string, isSampled?: boolean, startPerfTime?: number);
|
|
6
|
+
constructor(name: string, onStopped: onActivityStop, onError: onActivityError, rootId?: string, isSampled?: boolean, startPerfTime?: number, generatedRootIdLength?: number);
|
|
7
7
|
private _preRootId;
|
|
8
8
|
get preRootId(): string;
|
|
9
9
|
set preRootId(value: string);
|
|
@@ -12,7 +12,7 @@ declare class Utility {
|
|
|
12
12
|
private readonly _timeOrigin;
|
|
13
13
|
constructor();
|
|
14
14
|
get isProduction(): boolean;
|
|
15
|
-
markProduction(): void;
|
|
15
|
+
markProduction(value?: boolean): void;
|
|
16
16
|
private _checkArgument;
|
|
17
17
|
requireArgument<T>(argument: T, argumentName: string, argKind?: unknown): void;
|
|
18
18
|
requireArgumentIfDefined<T>(argument: T, argumentName: string, argKind: unknown): boolean;
|
|
@@ -94,8 +94,8 @@ class Utility {
|
|
|
94
94
|
get isProduction() {
|
|
95
95
|
return Utility._isProduction;
|
|
96
96
|
}
|
|
97
|
-
markProduction() {
|
|
98
|
-
Utility._isProduction = true;
|
|
97
|
+
markProduction(value) {
|
|
98
|
+
Utility._isProduction = value !== null && value !== void 0 ? value : true;
|
|
99
99
|
}
|
|
100
100
|
_checkArgument(argument, argKind) {
|
|
101
101
|
if (typeof argKind === 'string') {
|
|
@@ -284,8 +284,11 @@ class Utility {
|
|
|
284
284
|
return url;
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
|
-
Utility._isProduction =
|
|
288
|
-
const
|
|
287
|
+
Utility._isProduction = true;
|
|
288
|
+
const _utility = new Utility();
|
|
289
|
+
const global = _utility.getGlobal();
|
|
290
|
+
_utility.markProduction(global === null || global === void 0 ? void 0 : global.__O11Y_IS_PROD__);
|
|
291
|
+
const utility = Object.freeze(_utility);
|
|
289
292
|
|
|
290
293
|
class SchemaUtil {
|
|
291
294
|
getSchemaId(schema) {
|