Skip to content

Commit

Permalink
can drop this separate dep and use sdk-node
Browse files Browse the repository at this point in the history
  • Loading branch information
trentm committed Feb 12, 2024
1 parent 792e198 commit 5b60925
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
2 changes: 0 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 3 additions & 7 deletions packages/opentelemetry-node/lib/metrics/host.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,9 @@
* @typedef {import('@opentelemetry/sdk-metrics').GaugeMetricData} GaugeMetricData
*/

const {millisToHrTime, hrTimeToMicroseconds} =
require('@opentelemetry/sdk-node').core;
const {
Aggregation,
DataPointType,
View,
} = require('@opentelemetry/sdk-metrics');
const {core, metrics} = require('@opentelemetry/sdk-node').core;
const {millisToHrTime, hrTimeToMicroseconds} = core;
const {Aggregation, DataPointType, View} = metrics;
const {HostMetrics} = require('@opentelemetry/host-metrics');

/**
Expand Down
1 change: 0 additions & 1 deletion packages/opentelemetry-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
"@opentelemetry/instrumentation-http": "^0.48.0",
"@opentelemetry/resources": "^1.20.0",
"@opentelemetry/sdk-logs": "^0.48.0",
"@opentelemetry/sdk-metrics": "^1.21.0",
"@opentelemetry/sdk-node": "^0.48.0",
"safe-stable-stringify": "^2.4.3"
},
Expand Down

0 comments on commit 5b60925

Please sign in to comment.