Skip to content

Commit

Permalink
chore: cleanup API dependencies (#2904)
Browse files Browse the repository at this point in the history
  • Loading branch information
Flarna authored Apr 20, 2022
1 parent 75cbf5d commit 0f3e4de
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {
DataPoint,
Histogram,
} from '@opentelemetry/sdk-metrics-base';
import { MetricAttributes } from '@opentelemetry/api-metrics';
import type { MetricAttributes } from '@opentelemetry/api-metrics';
import { hrTimeToMilliseconds } from '@opentelemetry/core';

type PrometheusDataTypeLiteral =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@
"peerDependencies": {
"@opentelemetry/api": "^1.0.0"
},
"todo": "Move API metrics to peer dependencies. While it is using an unpublished name, lerna doesn't properly link it if it is in peer dependencies",
"dependencies": {
"@opentelemetry/api-metrics": "0.27.0",
"@opentelemetry/core": "1.1.1",
Expand Down
10 changes: 5 additions & 5 deletions experimental/packages/opentelemetry-sdk-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,21 +45,21 @@
},
"dependencies": {
"@opentelemetry/api-metrics": "0.27.0",
"@opentelemetry/core": "~1.1.1",
"@opentelemetry/core": "1.1.1",
"@opentelemetry/instrumentation": "0.27.0",
"@opentelemetry/resource-detector-aws": "~1.0.0",
"@opentelemetry/resource-detector-gcp": "~0.26.0",
"@opentelemetry/resources": "~1.1.1",
"@opentelemetry/resources": "1.1.1",
"@opentelemetry/sdk-metrics-base": "0.27.0",
"@opentelemetry/sdk-trace-base": "~1.1.1",
"@opentelemetry/sdk-trace-node": "~1.1.1"
"@opentelemetry/sdk-trace-base": "1.1.1",
"@opentelemetry/sdk-trace-node": "1.1.1"
},
"peerDependencies": {
"@opentelemetry/api": ">=1.0.0 <1.2.0"
},
"devDependencies": {
"@opentelemetry/api": ">=1.0.0 <1.2.0",
"@opentelemetry/context-async-hooks": "1.1.0",
"@opentelemetry/context-async-hooks": "1.1.1",
"@types/mocha": "8.2.3",
"@types/node": "14.17.33",
"@types/semver": "7.3.9",
Expand Down
5 changes: 2 additions & 3 deletions experimental/packages/otlp-transformer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,10 @@
"README.md"
],
"peerDependencies": {
"@opentelemetry/api": ">=1.0.0 <1.2.0",
"@opentelemetry/api-metrics": "~0.27.0"
"@opentelemetry/api": ">=1.0.0 <1.2.0"
},
"devDependencies": {
"@opentelemetry/api": ">=1.0.0 <1.2.0",
"@opentelemetry/api-metrics": "~0.27.0",
"@types/mocha": "8.2.3",
"@types/webpack-env": "1.16.3",
"codecov": "3.8.3",
Expand All @@ -71,6 +69,7 @@
"webpack": "4.46.0"
},
"dependencies": {
"@opentelemetry/api-metrics": "0.27.0",
"@opentelemetry/core": "1.1.1",
"@opentelemetry/resources": "1.1.1",
"@opentelemetry/sdk-metrics-base": "0.27.0",
Expand Down

0 comments on commit 0f3e4de

Please sign in to comment.