Skip to content

Unmet peer warnings for @opentelemetry/api #3240

@strmer15

Description

@strmer15

Expected behaviour

There should be no warnings when installing dd-trace with pnpm install.

Actual behaviour

Getting warnings like:

my-package/my-folder
└─┬ dd-trace 3.23.0
  └─┬ @opentelemetry/core 1.3.1
    └── ✕ unmet peer @opentelemetry/api@">=1.0.0 <1.2.0": found 1.4.1 in dd-trace

It appears to be due to #3233, dd-trace is declaring a dependency on @opentelementry/core 1.3.1 and @opentelemetry/api ^1.0.0, but that's pulling in 1.4.1 which is outside of the peer range in @opentelemetry/core.

This is happening for me with PNPM, it may also be happening with NPM or Yarn.

Steps to reproduce

Get the latest dd-trace and run pnpm install on your project.

Environment

  • Operation system: Ubuntu 23.04
  • Node.js version: 18.16.0
  • Tracer version: 3.23.0
  • Agent version: N/A
  • Relevant library versions: PNPM 8.6.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions