@interopio/otel 0.0.44 → 0.0.45

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.
@@ -2,8 +2,8 @@ import { Meter, ObservableResult } from "@opentelemetry/api";
2
2
  import { ApplicationMetricData, InternalMetricSettings } from "../base/types";
3
3
  import { Logger } from "../../../logger/types";
4
4
  import { AppCPU, PerformanceProvider } from "../../dependencies/types";
5
- import { ZeroOutClosedAppGaugeMetric } from "./zeroOutClosedAppGaugeMetric";
6
- export declare class ApplicationCPUMetric extends ZeroOutClosedAppGaugeMetric {
5
+ import { ZeroOutClosedAppGaugeMetricBase } from "../base/zeroOutClosedAppGaugeMetricBase";
6
+ export declare class ApplicationCPUMetric extends ZeroOutClosedAppGaugeMetricBase {
7
7
  perfProvider: PerformanceProvider;
8
8
  constructor(settings: InternalMetricSettings, meter: Meter, logger: Logger, perfProvider: PerformanceProvider);
9
9
  protected subscribeCore(): Promise<void>;
@@ -12,8 +12,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.ApplicationCPUMetric = void 0;
13
13
  const perf_1 = require("../../../validation/metrics/perf");
14
14
  const validator_1 = require("../../../validation/validator");
15
- const zeroOutClosedAppGaugeMetric_1 = require("./zeroOutClosedAppGaugeMetric");
16
- class ApplicationCPUMetric extends zeroOutClosedAppGaugeMetric_1.ZeroOutClosedAppGaugeMetric {
15
+ const zeroOutClosedAppGaugeMetricBase_1 = require("../base/zeroOutClosedAppGaugeMetricBase");
16
+ class ApplicationCPUMetric extends zeroOutClosedAppGaugeMetricBase_1.ZeroOutClosedAppGaugeMetricBase {
17
17
  constructor(settings, meter, logger, perfProvider) {
18
18
  super(settings, meter, logger);
19
19
  this.perfProvider = perfProvider;
@@ -1 +1 @@
1
- {"version":3,"file":"cpu.js","sourceRoot":"","sources":["../../../../src/metrics/metrics/application/cpu.ts"],"names":[],"mappings":";;;;;;;;;;;;AAGA,2DAAgF;AAChF,6DAA0D;AAG1D,+E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,CAAC;aACnB;YACD,OAAO,EAAE,CAAC;QACd,CAAC;KAAA;IAEkB,eAAe,KAAoB,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;CACpF;AA/BD,oDA+BC"}
@@ -2,8 +2,8 @@ import { Meter, ObservableResult } from "@opentelemetry/api";
2
2
  import { ApplicationMetricData, InternalMetricSettings } from "../base/types";
3
3
  import { Logger } from "../../../logger/types";
4
4
  import { AppMemory, PerformanceProvider } from "../../dependencies/types";
5
- import { ZeroOutClosedAppGaugeMetric } from "./zeroOutClosedAppGaugeMetric";
6
- export declare class ApplicationMemoryMetric extends ZeroOutClosedAppGaugeMetric {
5
+ import { ZeroOutClosedAppGaugeMetricBase } from "../base/zeroOutClosedAppGaugeMetricBase";
6
+ export declare class ApplicationMemoryMetric extends ZeroOutClosedAppGaugeMetricBase {
7
7
  perfProvider: PerformanceProvider;
8
8
  private validator;
9
9
  constructor(settings: InternalMetricSettings, meter: Meter, logger: Logger, perfProvider: PerformanceProvider);
@@ -12,8 +12,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.ApplicationMemoryMetric = void 0;
13
13
  const perf_1 = require("../../../validation/metrics/perf");
14
14
  const validator_1 = require("../../../validation/validator");
15
- const zeroOutClosedAppGaugeMetric_1 = require("./zeroOutClosedAppGaugeMetric");
16
- class ApplicationMemoryMetric extends zeroOutClosedAppGaugeMetric_1.ZeroOutClosedAppGaugeMetric {
15
+ const zeroOutClosedAppGaugeMetricBase_1 = require("../base/zeroOutClosedAppGaugeMetricBase");
16
+ class ApplicationMemoryMetric extends zeroOutClosedAppGaugeMetricBase_1.ZeroOutClosedAppGaugeMetricBase {
17
17
  constructor(settings, meter, logger, perfProvider) {
18
18
  super(settings, meter, logger);
19
19
  this.perfProvider = perfProvider;
@@ -1 +1 @@
1
- {"version":3,"file":"memory.js","sourceRoot":"","sources":["../../../../src/metrics/metrics/application/memory.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,2DAAgF;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AAC,WAAW,iBAAiB,IAAI,CAAC,mBAAmB,EAAE,CAAC,CAAC;gBACtJ,CAAC,CAAC,CAAC;gBACH,OAAO,UAAW,CAAC;aACtB;iBACI;gBACD,OAAO,EAAE,CAAC;aACb;QACL,CAAC;KAAA;IAEkB,eAAe,KAAoB,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;CACpF;AAnCD,0DAmCC"}
@@ -1,7 +1,7 @@
1
1
  import { ObservableResult } from "@opentelemetry/api";
2
- import { ApplicationMetricData } from "../base/types";
3
- import { GaugeMetricBase } from "../base/gauge";
4
- export declare abstract class ZeroOutClosedAppGaugeMetric extends GaugeMetricBase<ApplicationMetricData> {
2
+ import { ApplicationMetricData } from "./types";
3
+ import { GaugeMetricBase } from "./gauge";
4
+ export declare abstract class ZeroOutClosedAppGaugeMetricBase extends GaugeMetricBase<ApplicationMetricData> {
5
5
  private reported?;
6
6
  protected abstract observeCoreCore(result: ObservableResult<ApplicationMetricData>): Promise<{
7
7
  instance: string;
@@ -9,9 +9,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.ZeroOutClosedAppGaugeMetric = void 0;
13
- const gauge_1 = require("../base/gauge");
14
- class ZeroOutClosedAppGaugeMetric extends gauge_1.GaugeMetricBase {
12
+ exports.ZeroOutClosedAppGaugeMetricBase = void 0;
13
+ const gauge_1 = require("./gauge");
14
+ class ZeroOutClosedAppGaugeMetricBase extends gauge_1.GaugeMetricBase {
15
15
  observeCore(result) {
16
16
  return __awaiter(this, void 0, void 0, function* () {
17
17
  const apps = yield this.observeCoreCore(result);
@@ -26,5 +26,5 @@ class ZeroOutClosedAppGaugeMetric extends gauge_1.GaugeMetricBase {
26
26
  });
27
27
  }
28
28
  }
29
- exports.ZeroOutClosedAppGaugeMetric = ZeroOutClosedAppGaugeMetric;
30
- //# sourceMappingURL=zeroOutClosedAppGaugeMetric.js.map
29
+ exports.ZeroOutClosedAppGaugeMetricBase = ZeroOutClosedAppGaugeMetricBase;
30
+ //# sourceMappingURL=zeroOutClosedAppGaugeMetricBase.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zeroOutClosedAppGaugeMetricBase.js","sourceRoot":"","sources":["../../../../src/metrics/metrics/base/zeroOutClosedAppGaugeMetricBase.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,mCAA0C;AAG1C,MAAsB,+BAAgC,SAAQ,uBAAsC;IAMvE,WAAW,CAAC,MAA+C;;YAChF,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;YAChD,IAAI,IAAI,CAAC,QAAQ,EAAE;gBACf,KAAK,MAAM,MAAM,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,IAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE;oBACzF,MAAM,IAAI,mBAAK,mBAAmB,EAAE,MAAM,CAAC,QAAQ,IAAK,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,GAAG,CAAC,CAAE,CAAC;oBAC9F,MAAM,CAAC,OAAO,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;oBACxB,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,UAAU,IAAI,CAAC,QAAQ,CAAC,IAAI,0BAA0B,IAAI,CAAC,WAAW,iBAAiB,IAAI,CAAC,mBAAmB,EAAE,CAAC,CAAC;iBACxI;aACJ;YACD,IAAI,CAAC,QAAQ,GAAG,IAAK,CAAC;QAC1B,CAAC;KAAA;CACJ;AAjBD,0EAiBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@interopio/otel",
3
- "version": "0.0.44",
3
+ "version": "0.0.45",
4
4
  "description": "otel library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1 +0,0 @@
1
- {"version":3,"file":"zeroOutClosedAppGaugeMetric.js","sourceRoot":"","sources":["../../../../src/metrics/metrics/application/zeroOutClosedAppGaugeMetric.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,yCAAgD;AAGhD,MAAsB,2BAA4B,SAAQ,uBAAsC;IAMnE,WAAW,CAAC,MAA+C;;YAChF,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;YAChD,IAAI,IAAI,CAAC,QAAQ,EAAE;gBACf,KAAK,MAAM,MAAM,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,IAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE;oBACzF,MAAM,IAAI,mBAAK,mBAAmB,EAAE,MAAM,CAAC,QAAQ,IAAK,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,GAAG,CAAC,CAAE,CAAC;oBAC9F,MAAM,CAAC,OAAO,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;oBACxB,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,UAAU,IAAI,CAAC,QAAQ,CAAC,IAAI,0BAA0B,IAAI,CAAC,WAAW,iBAAiB,IAAI,CAAC,mBAAmB,EAAE,CAAC,CAAC;iBACxI;aACJ;YACD,IAAI,CAAC,QAAQ,GAAG,IAAK,CAAC;QAC1B,CAAC;KAAA;CACJ;AAjBD,kEAiBC"}