From e9e4567647def43f592a2072bc0c15a00dc6fc4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerhard=20St=C3=B6bich?= Date: Sat, 5 Feb 2022 18:59:35 +0100 Subject: [PATCH] fix: use api 1.1 in SDKs (#2759) Use API 1.1 in SDKs to avoid that SDKs register a TracerProvider,... using an older API then other OTel components. This avoids the version check in API rejecting the use of API 1.1 but a peer may still use 1.0.x. --- packages/opentelemetry-sdk-trace-base/package.json | 2 +- packages/opentelemetry-sdk-trace-node/package.json | 2 +- packages/opentelemetry-sdk-trace-web/package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/opentelemetry-sdk-trace-base/package.json b/packages/opentelemetry-sdk-trace-base/package.json index dd96d1e58f..63d1adbcd9 100644 --- a/packages/opentelemetry-sdk-trace-base/package.json +++ b/packages/opentelemetry-sdk-trace-base/package.json @@ -83,7 +83,7 @@ "webpack": "4.46.0" }, "peerDependencies": { - "@opentelemetry/api": ">=1.0.0 <1.2.0" + "@opentelemetry/api": ">=1.1.0 <1.2.0" }, "dependencies": { "@opentelemetry/core": "1.0.1", diff --git a/packages/opentelemetry-sdk-trace-node/package.json b/packages/opentelemetry-sdk-trace-node/package.json index 7825f39934..1689dbdddd 100644 --- a/packages/opentelemetry-sdk-trace-node/package.json +++ b/packages/opentelemetry-sdk-trace-node/package.json @@ -59,7 +59,7 @@ "typescript": "4.4.4" }, "peerDependencies": { - "@opentelemetry/api": ">=1.0.0 <1.2.0" + "@opentelemetry/api": ">=1.1.0 <1.2.0" }, "dependencies": { "@opentelemetry/context-async-hooks": "1.0.1", diff --git a/packages/opentelemetry-sdk-trace-web/package.json b/packages/opentelemetry-sdk-trace-web/package.json index 8ce5be94b5..106ef2d6bf 100644 --- a/packages/opentelemetry-sdk-trace-web/package.json +++ b/packages/opentelemetry-sdk-trace-web/package.json @@ -86,7 +86,7 @@ "webpack-merge": "5.8.0" }, "peerDependencies": { - "@opentelemetry/api": ">=1.0.0 <1.2.0" + "@opentelemetry/api": ">=1.1.0 <1.2.0" }, "dependencies": { "@opentelemetry/core": "1.0.1",