@sesamecare-oss/opentelemetry-node-metrics 2.0.1 → 2.0.3
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/build/index.d.ts
CHANGED
|
@@ -2,5 +2,5 @@ import type { Meter } from '@opentelemetry/api';
|
|
|
2
2
|
import * as metrics from './metrics/index.js';
|
|
3
3
|
import type { NodeMetricConfig } from './types.js';
|
|
4
4
|
export declare function setupNodeMetrics(meter: Meter, config?: NodeMetricConfig): void;
|
|
5
|
-
export * from './types';
|
|
5
|
+
export type * from './types';
|
|
6
6
|
export declare const NodeMetrics: typeof metrics;
|
package/build/index.js
CHANGED
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAG9C,MAAM,UAAU,gBAAgB,CAAC,KAAY,EAAE,MAAyB;IACtE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE;QACxC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IACxB,CAAC,CAAC,CAAC;AACL,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAG9C,MAAM,UAAU,gBAAgB,CAAC,KAAY,EAAE,MAAyB;IACtE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE;QACxC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IACxB,CAAC,CAAC,CAAC;AACL,CAAC;AAID,MAAM,CAAC,MAAM,WAAW,GAAG,OAAO,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { prefixedName } from '../helpers/counterNames.js';
|
|
2
2
|
import { safeMemoryUsage } from '../helpers/safeMemoryUsage.js';
|
|
3
|
-
import { osMemoryHeapLinuxMetric } from './osMemoryHeapLinux';
|
|
3
|
+
import { osMemoryHeapLinuxMetric } from './osMemoryHeapLinux.js';
|
|
4
4
|
const PROCESS_RESIDENT_MEMORY = 'process_resident_memory_bytes';
|
|
5
5
|
export function osMemoryHeapMetric(meter, config) {
|
|
6
6
|
if (process.platform === 'linux') {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"osMemoryHeap.js","sourceRoot":"","sources":["../../src/metrics/osMemoryHeap.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,OAAO,EAAE,uBAAuB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"osMemoryHeap.js","sourceRoot":"","sources":["../../src/metrics/osMemoryHeap.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAEjE,MAAM,uBAAuB,GAAG,+BAA+B,CAAC;AAEhE,MAAM,UAAU,kBAAkB,CAAC,KAAY,EAAE,MAAyB;IACxE,IAAI,OAAO,CAAC,QAAQ,KAAK,OAAO,EAAE,CAAC;QACjC,OAAO,uBAAuB,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IAChD,CAAC;IAED,KAAK;SACF,qBAAqB,CAAC,YAAY,CAAC,MAAM,EAAE,uBAAuB,CAAC,EAAE;QACpE,WAAW,EAAE,gCAAgC;KAC9C,CAAC;SACD,WAAW,CAAC,CAAC,UAAU,EAAE,EAAE;QAC1B,MAAM,QAAQ,GAAG,eAAe,EAAE,CAAC;QACnC,+CAA+C;QAC/C,2DAA2D;QAC3D,IAAI,QAAQ,EAAE,CAAC;YACb,UAAU,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;QACnD,CAAC;IACH,CAAC,CAAC,CAAC;AACP,CAAC;AAED,kBAAkB,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,uBAAuB,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC"}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { NodeMetricConfig } from '../types.js';
|
|
|
4
4
|
import { prefixedName } from '../helpers/counterNames.js';
|
|
5
5
|
import { safeMemoryUsage } from '../helpers/safeMemoryUsage.js';
|
|
6
6
|
|
|
7
|
-
import { osMemoryHeapLinuxMetric } from './osMemoryHeapLinux';
|
|
7
|
+
import { osMemoryHeapLinuxMetric } from './osMemoryHeapLinux.js';
|
|
8
8
|
|
|
9
9
|
const PROCESS_RESIDENT_MEMORY = 'process_resident_memory_bytes';
|
|
10
10
|
|