Skip to content

Commit

Permalink
fix: use api 1.1 in SDKs
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Flarna committed Feb 3, 2022
1 parent ee2342b commit 1e4f56a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/opentelemetry-sdk-trace-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/opentelemetry-sdk-trace-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/opentelemetry-sdk-trace-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 1e4f56a

Please sign in to comment.