opentelemetry-js icon indicating copy to clipboard operation
opentelemetry-js copied to clipboard

Widen peerDependency range for `@opentelemetry/api`

Open mydea opened this issue 1 year ago • 0 comments
trafficstars

Today, some packages have this in their package.json:

"peerDependencies": {
    "@opentelemetry/api": ">=1.3.0 <1.10.0"
  },

This is true for:

  • sdk-node
  • otlp-transformer
  • propagator-aws-xray-lambda
  • sdk-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.

mydea avatar Jun 21 '24 09:06 mydea