Skip to content

Commit

Permalink
remove node import prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
Netail committed May 30, 2024
1 parent f0a7187 commit c0fbc8b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/opentelemetry-host-metrics/src/stats/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* limitations under the License.
*/

import { cpus, totalmem, freemem } from 'node:os';
import type { CpuInfo } from 'node:os';
import { cpus, totalmem, freemem } from 'os';
import type { CpuInfo } from 'os';
import type { CpuUsageData, MemoryData, ProcessCpuUsageData } from '../types';

const MILLISECOND = 1 / 1e3;
Expand Down
6 changes: 3 additions & 3 deletions packages/opentelemetry-host-metrics/test/metric.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {
MetricReader,
} from '@opentelemetry/sdk-metrics';
import * as assert from 'assert';
import * as os from 'node:os';
import * as os from 'os';
import * as sinon from 'sinon';
import { ATTRIBUTE_NAMES } from '../src/enum';
import { HostMetrics } from '../src';
Expand All @@ -39,8 +39,8 @@ class TestMetricReader extends MetricReader {
public override selectAggregationTemporality(): AggregationTemporality {
return AggregationTemporality.CUMULATIVE;
}
protected async onForceFlush(): Promise<void> {}
protected async onShutdown(): Promise<void> {}
protected async onForceFlush(): Promise<void> { }
protected async onShutdown(): Promise<void> { }
}

let countSI = 0;
Expand Down

0 comments on commit c0fbc8b

Please sign in to comment.