opentelemetry-js
opentelemetry-js copied to clipboard
Widen peerDependency range for `@opentelemetry/api`
trafficstars
Today, some packages have this in their package.json:
"peerDependencies": {
"@opentelemetry/api": ">=1.3.0 <1.10.0"
},
This is true for:
sdk-nodeotlp-transformerpropagator-aws-xray-lambdasdk-metrics
IMHO it is not helpful to have this be so tightly defined - why can't it just be >= 1.3.0? Minor versions should be backwards compatible anyhow, so this should be totally safe to do.
With the current setup, you can run into cases where you end up with multiple versions of @opentelemetry/api if you have different instrumentation package versions, which is not helpful at all.