o11y 2.1.1 → 236.0.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/dist/modules/o11y/client/client.js +1 -1
- package/dist/modules/o11y/client/client.js.map +1 -1
- package/dist/modules/o11y/client/collectors/metrics/UpCounter.d.ts +1 -0
- package/dist/modules/o11y/client/collectors/metrics/ValueRecorder.d.ts +1 -0
- package/dist/modules/o11y/client/interfaces/Activity.d.ts +3 -0
- package/dist/modules/o11y/client/interfaces/Metric.d.ts +1 -0
- package/dist/modules/o11y/client/library/ActivityImpl.d.ts +3 -0
- package/dist/modules/o11y/client/library/ActivityNoOp.d.ts +3 -0
- package/dist/modules/o11y/client/library/AppInstrumentationImpl.d.ts +2 -0
- package/dist/modules/o11y/client/library/InstrumentationImpl.d.ts +3 -0
- package/dist/modules/o11y/client/library/MetricsImpl.d.ts +2 -1
- package/dist/modules/o11y/client/library/NextgenImpl.d.ts +1 -0
- package/dist/modules/o11y/client/library/RootActivityNoOp.d.ts +3 -0
- package/dist/modules/o11y/client/library/UpCounterImpl.d.ts +3 -1
- package/dist/modules/o11y/client/library/ValueRecorderImpl.d.ts +3 -1
- package/dist/modules/o11y/collectors/collectors/metrics/UpCounter.d.ts +1 -0
- package/dist/modules/o11y/collectors/collectors/metrics/ValueRecorder.d.ts +1 -0
- package/dist/modules/o11y/collectors/collectors.js +1 -1
- package/dist/modules/o11y/collectors/collectors.js.map +1 -1
- package/dist/modules/o11y/collectors/interfaces/Activity.d.ts +3 -0
- package/dist/modules/o11y/collectors/interfaces/Metric.d.ts +1 -0
- package/dist/modules/o11y/collectors/library/ActivityImpl.d.ts +3 -0
- package/dist/modules/o11y/collectors/library/ActivityNoOp.d.ts +3 -0
- package/dist/modules/o11y/collectors/library/AppInstrumentationImpl.d.ts +2 -0
- package/dist/modules/o11y/collectors/library/InstrumentationImpl.d.ts +3 -0
- package/dist/modules/o11y/collectors/library/MetricsImpl.d.ts +2 -1
- package/dist/modules/o11y/collectors/library/NextgenImpl.d.ts +1 -0
- package/dist/modules/o11y/collectors/library/RootActivityNoOp.d.ts +3 -0
- package/dist/modules/o11y/collectors/library/UpCounterImpl.d.ts +3 -1
- package/dist/modules/o11y/collectors/library/ValueRecorderImpl.d.ts +3 -1
- package/dist/modules/o11y/shared/collectors/metrics/UpCounter.d.ts +1 -0
- package/dist/modules/o11y/shared/collectors/metrics/ValueRecorder.d.ts +1 -0
- package/dist/modules/o11y/shared/interfaces/Activity.d.ts +3 -0
- package/dist/modules/o11y/shared/interfaces/Metric.d.ts +1 -0
- package/dist/modules/o11y/shared/library/ActivityImpl.d.ts +3 -0
- package/dist/modules/o11y/shared/library/ActivityNoOp.d.ts +3 -0
- package/dist/modules/o11y/shared/library/AppInstrumentationImpl.d.ts +2 -0
- package/dist/modules/o11y/shared/library/InstrumentationImpl.d.ts +3 -0
- package/dist/modules/o11y/shared/library/MetricsImpl.d.ts +2 -1
- package/dist/modules/o11y/shared/library/NextgenImpl.d.ts +1 -0
- package/dist/modules/o11y/shared/library/RootActivityNoOp.d.ts +3 -0
- package/dist/modules/o11y/shared/library/UpCounterImpl.d.ts +3 -1
- package/dist/modules/o11y/shared/library/ValueRecorderImpl.d.ts +3 -1
- package/package.json +2 -2
|
@@ -37,4 +37,7 @@ export declare class ActivityImpl implements Activity {
|
|
|
37
37
|
getIsSampled(): boolean;
|
|
38
38
|
protected _getDetail(userSchemaOrText: Schema | string, userData: SchematizedData): ActivityDetail;
|
|
39
39
|
getTraceHeaders(options: TracingHeadersOptions): Record<string, string>;
|
|
40
|
+
getStartTimestamp(): number;
|
|
41
|
+
getStartPerfTime(): number;
|
|
42
|
+
getStopPerfTime(): number;
|
|
40
43
|
}
|
|
@@ -8,6 +8,9 @@ declare class ActivityNoOp implements Activity {
|
|
|
8
8
|
terminate(): void;
|
|
9
9
|
getIsSampled(): boolean;
|
|
10
10
|
getTraceHeaders(__options: TracingHeadersOptions): Record<string, string>;
|
|
11
|
+
getStartTimestamp(): number;
|
|
12
|
+
getStartPerfTime(): number;
|
|
13
|
+
getStopPerfTime(): number;
|
|
11
14
|
}
|
|
12
15
|
export declare const activityNoOp: Readonly<ActivityNoOp>;
|
|
13
16
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ActivityDetail, RootActivity } from '../interfaces';
|
|
2
2
|
import { ActivityData } from '../interfaces-private';
|
|
3
3
|
import { InstrumentationImpl } from './InstrumentationImpl';
|
|
4
|
+
import { MetricsImpl } from './MetricsImpl';
|
|
4
5
|
export declare class AppInstrumentationImpl extends InstrumentationImpl {
|
|
5
6
|
private rootActivity;
|
|
6
7
|
private readonly _onRootActivityStoppedCallback;
|
|
@@ -9,4 +10,5 @@ export declare class AppInstrumentationImpl extends InstrumentationImpl {
|
|
|
9
10
|
protected _getActivityData(detail: ActivityDetail): ActivityData;
|
|
10
11
|
getRootActivityId(): string;
|
|
11
12
|
isRootActivitySampled(): boolean;
|
|
13
|
+
protected _initMetrics(): MetricsImpl;
|
|
12
14
|
}
|
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
import { Activity, ActivityDetail, Instrumentation, Metric, MetricsReporter, Schema, SchematizedPayload } from '../interfaces';
|
|
2
2
|
import { ActivityData } from '../interfaces-private';
|
|
3
3
|
import { onActivityError } from './ActivityImpl';
|
|
4
|
+
import { MetricsImpl } from './MetricsImpl';
|
|
4
5
|
import { NextgenImpl } from './NextgenImpl';
|
|
5
6
|
import { PublicSafety } from './PublicSafety';
|
|
6
7
|
import { LightningElement, MetricsTags, SchematizedData } from 'o11y/shared';
|
|
7
8
|
export declare class InstrumentationImpl implements Instrumentation, MetricsReporter {
|
|
8
9
|
private readonly _nextGen;
|
|
9
10
|
private readonly _name;
|
|
11
|
+
protected static readonly defaultAppName = "APP_NOT_REGISTERED";
|
|
10
12
|
private readonly _metrics;
|
|
11
13
|
private readonly _onActivityStoppedCallback;
|
|
12
14
|
protected readonly _onActivityErrorCallback: onActivityError;
|
|
13
15
|
protected readonly _safety: PublicSafety;
|
|
14
16
|
private readonly _simpleTextMaxLength;
|
|
15
17
|
constructor(_nextGen: NextgenImpl, _name: string);
|
|
18
|
+
protected _initMetrics(): MetricsImpl;
|
|
16
19
|
private _incrementError;
|
|
17
20
|
get name(): string;
|
|
18
21
|
protected _wrapUserPayload(userSchemaOrText: Schema | string, userData: SchematizedData, onlyIfBoth?: boolean): SchematizedPayload;
|
|
@@ -4,9 +4,10 @@ import { ValueRecorderImpl } from './ValueRecorderImpl';
|
|
|
4
4
|
import { MetricsTags } from 'o11y/shared';
|
|
5
5
|
export declare class MetricsImpl implements MetricsReporter {
|
|
6
6
|
private readonly _ownerName;
|
|
7
|
+
private readonly _getOwnerAppName;
|
|
7
8
|
private readonly _upCounters;
|
|
8
9
|
private readonly _valueRecorders;
|
|
9
|
-
constructor(_ownerName: string);
|
|
10
|
+
constructor(_ownerName: string, _getOwnerAppName: () => string);
|
|
10
11
|
incrementCounter(operation: string, increment: number, hasError?: boolean, tags?: MetricsTags): void;
|
|
11
12
|
trackValue(operation: string, value: number, hasError?: boolean, tags?: MetricsTags): void;
|
|
12
13
|
private _upCounter;
|
|
@@ -22,6 +22,7 @@ export declare class NextgenImpl implements Nextgen {
|
|
|
22
22
|
set appPayloadProvider(provider: PayloadProvider);
|
|
23
23
|
registerApp(name: string, enableBuffering?: boolean): InstrumentedAppMethods;
|
|
24
24
|
getInstrumentation(name: string): Instrumentation;
|
|
25
|
+
get appName(): string;
|
|
25
26
|
addLog(loggerName: string, schema: Schema, data: SchematizedData, timestamp: number, rootId: string, pagePayload: SchematizedPayload, appPayload: SchematizedPayload): number;
|
|
26
27
|
getBuffer(): BufferedLog[];
|
|
27
28
|
disableBuffering(): void;
|
|
@@ -8,6 +8,9 @@ declare class RootActivityNoOp implements RootActivity {
|
|
|
8
8
|
terminate(): void;
|
|
9
9
|
getIsSampled(): boolean;
|
|
10
10
|
getTraceHeaders(__options: TracingHeadersOptions): Record<string, string>;
|
|
11
|
+
getStartTimestamp(): number;
|
|
12
|
+
getStartPerfTime(): number;
|
|
13
|
+
getStopPerfTime(): number;
|
|
11
14
|
}
|
|
12
15
|
export declare const rootActivityNoOp: Readonly<RootActivityNoOp>;
|
|
13
16
|
export {};
|
|
@@ -4,11 +4,12 @@ import { MetricsTags } from 'o11y/shared';
|
|
|
4
4
|
export declare class UpCounterImpl implements Metric<number>, UpCounter {
|
|
5
5
|
private readonly _name;
|
|
6
6
|
private readonly _ownerName;
|
|
7
|
+
private readonly _ownerAppName;
|
|
7
8
|
private readonly _tags;
|
|
8
9
|
private readonly _createdOn;
|
|
9
10
|
private _lastUpdatedOn;
|
|
10
11
|
private _value;
|
|
11
|
-
constructor(_name: string, _ownerName: string, _tags: MetricsTags);
|
|
12
|
+
constructor(_name: string, _ownerName: string, _ownerAppName: string, _tags: MetricsTags);
|
|
12
13
|
getName(): string;
|
|
13
14
|
getCreatedOn(): number;
|
|
14
15
|
getLastUpdatedOn(): number;
|
|
@@ -16,5 +17,6 @@ export declare class UpCounterImpl implements Metric<number>, UpCounter {
|
|
|
16
17
|
increment(value?: number): void;
|
|
17
18
|
reset(): void;
|
|
18
19
|
getOwnerName(): string;
|
|
20
|
+
getOwnerAppName(): string;
|
|
19
21
|
getTags(): Readonly<MetricsTags>;
|
|
20
22
|
}
|
|
@@ -4,11 +4,12 @@ import { MetricsTags } from 'o11y/shared';
|
|
|
4
4
|
export declare class ValueRecorderImpl implements Metric<number[]>, ValueRecorder {
|
|
5
5
|
private readonly _name;
|
|
6
6
|
private readonly _ownerName;
|
|
7
|
+
private readonly _ownerAppName;
|
|
7
8
|
private readonly _tags;
|
|
8
9
|
private readonly _createdOn;
|
|
9
10
|
private _lastUpdatedOn;
|
|
10
11
|
private _values;
|
|
11
|
-
constructor(_name: string, _ownerName: string, _tags: MetricsTags);
|
|
12
|
+
constructor(_name: string, _ownerName: string, _ownerAppName: string, _tags: MetricsTags);
|
|
12
13
|
getName(): string;
|
|
13
14
|
getCreatedOn(): number;
|
|
14
15
|
getLastUpdatedOn(): number;
|
|
@@ -17,5 +18,6 @@ export declare class ValueRecorderImpl implements Metric<number[]>, ValueRecorde
|
|
|
17
18
|
record(value: number): void;
|
|
18
19
|
reset(): void;
|
|
19
20
|
getOwnerName(): string;
|
|
21
|
+
getOwnerAppName(): string;
|
|
20
22
|
getTags(): MetricsTags;
|
|
21
23
|
}
|
|
@@ -37,4 +37,7 @@ export declare class ActivityImpl implements Activity {
|
|
|
37
37
|
getIsSampled(): boolean;
|
|
38
38
|
protected _getDetail(userSchemaOrText: Schema | string, userData: SchematizedData): ActivityDetail;
|
|
39
39
|
getTraceHeaders(options: TracingHeadersOptions): Record<string, string>;
|
|
40
|
+
getStartTimestamp(): number;
|
|
41
|
+
getStartPerfTime(): number;
|
|
42
|
+
getStopPerfTime(): number;
|
|
40
43
|
}
|
|
@@ -8,6 +8,9 @@ declare class ActivityNoOp implements Activity {
|
|
|
8
8
|
terminate(): void;
|
|
9
9
|
getIsSampled(): boolean;
|
|
10
10
|
getTraceHeaders(__options: TracingHeadersOptions): Record<string, string>;
|
|
11
|
+
getStartTimestamp(): number;
|
|
12
|
+
getStartPerfTime(): number;
|
|
13
|
+
getStopPerfTime(): number;
|
|
11
14
|
}
|
|
12
15
|
export declare const activityNoOp: Readonly<ActivityNoOp>;
|
|
13
16
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ActivityDetail, RootActivity } from '../interfaces';
|
|
2
2
|
import { ActivityData } from '../interfaces-private';
|
|
3
3
|
import { InstrumentationImpl } from './InstrumentationImpl';
|
|
4
|
+
import { MetricsImpl } from './MetricsImpl';
|
|
4
5
|
export declare class AppInstrumentationImpl extends InstrumentationImpl {
|
|
5
6
|
private rootActivity;
|
|
6
7
|
private readonly _onRootActivityStoppedCallback;
|
|
@@ -9,4 +10,5 @@ export declare class AppInstrumentationImpl extends InstrumentationImpl {
|
|
|
9
10
|
protected _getActivityData(detail: ActivityDetail): ActivityData;
|
|
10
11
|
getRootActivityId(): string;
|
|
11
12
|
isRootActivitySampled(): boolean;
|
|
13
|
+
protected _initMetrics(): MetricsImpl;
|
|
12
14
|
}
|
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
import { Activity, ActivityDetail, Instrumentation, Metric, MetricsReporter, Schema, SchematizedPayload } from '../interfaces';
|
|
2
2
|
import { ActivityData } from '../interfaces-private';
|
|
3
3
|
import { onActivityError } from './ActivityImpl';
|
|
4
|
+
import { MetricsImpl } from './MetricsImpl';
|
|
4
5
|
import { NextgenImpl } from './NextgenImpl';
|
|
5
6
|
import { PublicSafety } from './PublicSafety';
|
|
6
7
|
import { LightningElement, MetricsTags, SchematizedData } from 'o11y/shared';
|
|
7
8
|
export declare class InstrumentationImpl implements Instrumentation, MetricsReporter {
|
|
8
9
|
private readonly _nextGen;
|
|
9
10
|
private readonly _name;
|
|
11
|
+
protected static readonly defaultAppName = "APP_NOT_REGISTERED";
|
|
10
12
|
private readonly _metrics;
|
|
11
13
|
private readonly _onActivityStoppedCallback;
|
|
12
14
|
protected readonly _onActivityErrorCallback: onActivityError;
|
|
13
15
|
protected readonly _safety: PublicSafety;
|
|
14
16
|
private readonly _simpleTextMaxLength;
|
|
15
17
|
constructor(_nextGen: NextgenImpl, _name: string);
|
|
18
|
+
protected _initMetrics(): MetricsImpl;
|
|
16
19
|
private _incrementError;
|
|
17
20
|
get name(): string;
|
|
18
21
|
protected _wrapUserPayload(userSchemaOrText: Schema | string, userData: SchematizedData, onlyIfBoth?: boolean): SchematizedPayload;
|
|
@@ -4,9 +4,10 @@ import { ValueRecorderImpl } from './ValueRecorderImpl';
|
|
|
4
4
|
import { MetricsTags } from 'o11y/shared';
|
|
5
5
|
export declare class MetricsImpl implements MetricsReporter {
|
|
6
6
|
private readonly _ownerName;
|
|
7
|
+
private readonly _getOwnerAppName;
|
|
7
8
|
private readonly _upCounters;
|
|
8
9
|
private readonly _valueRecorders;
|
|
9
|
-
constructor(_ownerName: string);
|
|
10
|
+
constructor(_ownerName: string, _getOwnerAppName: () => string);
|
|
10
11
|
incrementCounter(operation: string, increment: number, hasError?: boolean, tags?: MetricsTags): void;
|
|
11
12
|
trackValue(operation: string, value: number, hasError?: boolean, tags?: MetricsTags): void;
|
|
12
13
|
private _upCounter;
|
|
@@ -22,6 +22,7 @@ export declare class NextgenImpl implements Nextgen {
|
|
|
22
22
|
set appPayloadProvider(provider: PayloadProvider);
|
|
23
23
|
registerApp(name: string, enableBuffering?: boolean): InstrumentedAppMethods;
|
|
24
24
|
getInstrumentation(name: string): Instrumentation;
|
|
25
|
+
get appName(): string;
|
|
25
26
|
addLog(loggerName: string, schema: Schema, data: SchematizedData, timestamp: number, rootId: string, pagePayload: SchematizedPayload, appPayload: SchematizedPayload): number;
|
|
26
27
|
getBuffer(): BufferedLog[];
|
|
27
28
|
disableBuffering(): void;
|
|
@@ -8,6 +8,9 @@ declare class RootActivityNoOp implements RootActivity {
|
|
|
8
8
|
terminate(): void;
|
|
9
9
|
getIsSampled(): boolean;
|
|
10
10
|
getTraceHeaders(__options: TracingHeadersOptions): Record<string, string>;
|
|
11
|
+
getStartTimestamp(): number;
|
|
12
|
+
getStartPerfTime(): number;
|
|
13
|
+
getStopPerfTime(): number;
|
|
11
14
|
}
|
|
12
15
|
export declare const rootActivityNoOp: Readonly<RootActivityNoOp>;
|
|
13
16
|
export {};
|
|
@@ -4,11 +4,12 @@ import { MetricsTags } from 'o11y/shared';
|
|
|
4
4
|
export declare class UpCounterImpl implements Metric<number>, UpCounter {
|
|
5
5
|
private readonly _name;
|
|
6
6
|
private readonly _ownerName;
|
|
7
|
+
private readonly _ownerAppName;
|
|
7
8
|
private readonly _tags;
|
|
8
9
|
private readonly _createdOn;
|
|
9
10
|
private _lastUpdatedOn;
|
|
10
11
|
private _value;
|
|
11
|
-
constructor(_name: string, _ownerName: string, _tags: MetricsTags);
|
|
12
|
+
constructor(_name: string, _ownerName: string, _ownerAppName: string, _tags: MetricsTags);
|
|
12
13
|
getName(): string;
|
|
13
14
|
getCreatedOn(): number;
|
|
14
15
|
getLastUpdatedOn(): number;
|
|
@@ -16,5 +17,6 @@ export declare class UpCounterImpl implements Metric<number>, UpCounter {
|
|
|
16
17
|
increment(value?: number): void;
|
|
17
18
|
reset(): void;
|
|
18
19
|
getOwnerName(): string;
|
|
20
|
+
getOwnerAppName(): string;
|
|
19
21
|
getTags(): Readonly<MetricsTags>;
|
|
20
22
|
}
|
|
@@ -4,11 +4,12 @@ import { MetricsTags } from 'o11y/shared';
|
|
|
4
4
|
export declare class ValueRecorderImpl implements Metric<number[]>, ValueRecorder {
|
|
5
5
|
private readonly _name;
|
|
6
6
|
private readonly _ownerName;
|
|
7
|
+
private readonly _ownerAppName;
|
|
7
8
|
private readonly _tags;
|
|
8
9
|
private readonly _createdOn;
|
|
9
10
|
private _lastUpdatedOn;
|
|
10
11
|
private _values;
|
|
11
|
-
constructor(_name: string, _ownerName: string, _tags: MetricsTags);
|
|
12
|
+
constructor(_name: string, _ownerName: string, _ownerAppName: string, _tags: MetricsTags);
|
|
12
13
|
getName(): string;
|
|
13
14
|
getCreatedOn(): number;
|
|
14
15
|
getLastUpdatedOn(): number;
|
|
@@ -17,5 +18,6 @@ export declare class ValueRecorderImpl implements Metric<number[]>, ValueRecorde
|
|
|
17
18
|
record(value: number): void;
|
|
18
19
|
reset(): void;
|
|
19
20
|
getOwnerName(): string;
|
|
21
|
+
getOwnerAppName(): string;
|
|
20
22
|
getTags(): MetricsTags;
|
|
21
23
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "o11y",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "236.0.2",
|
|
4
4
|
"description": "O11y Client-Side Instrumentation & Observability Library",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"exports": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"author": "Instrumentation Team",
|
|
37
37
|
"license": "BSD-3-Clause",
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"o11y_schema": "
|
|
39
|
+
"o11y_schema": "236.0.0",
|
|
40
40
|
"protobufjs": "6.10.2"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|