o11y 2.1.2 → 236.0.1

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.
@@ -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,10 +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 _ownerAppName;
7
+ private readonly _getOwnerAppName;
8
8
  private readonly _upCounters;
9
9
  private readonly _valueRecorders;
10
- constructor(_ownerName: string, _ownerAppName: string);
10
+ constructor(_ownerName: string, _getOwnerAppName: () => string);
11
11
  incrementCounter(operation: string, increment: number, hasError?: boolean, tags?: MetricsTags): void;
12
12
  trackValue(operation: string, value: number, hasError?: boolean, tags?: MetricsTags): void;
13
13
  private _upCounter;
@@ -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,10 +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 _ownerAppName;
7
+ private readonly _getOwnerAppName;
8
8
  private readonly _upCounters;
9
9
  private readonly _valueRecorders;
10
- constructor(_ownerName: string, _ownerAppName: string);
10
+ constructor(_ownerName: string, _getOwnerAppName: () => string);
11
11
  incrementCounter(operation: string, increment: number, hasError?: boolean, tags?: MetricsTags): void;
12
12
  trackValue(operation: string, value: number, hasError?: boolean, tags?: MetricsTags): void;
13
13
  private _upCounter;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "o11y",
3
- "version": "2.1.2",
3
+ "version": "236.0.1",
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": "2.6.0",
39
+ "o11y_schema": "2.10.0",
40
40
  "protobufjs": "6.10.2"
41
41
  },
42
42
  "devDependencies": {