Skip to content

Upgrade Opentelemetry Package #360

Closed

Description

@MR-Addict

When I install contenlayer, there are two warnings about upgrade @opentelemetry.

I hope you could uprade it in next version.

Package warning:

warning

Npm:

opentelemetry

Activity

  1. stale commented on Mar 27, 2023

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

  2. added this to the 0.3.2 milestone on Mar 27, 2023
  3. schickling commented on Mar 27, 2023

    @schickling
    Collaborator

    Sorry about the inconvenience. I'll upgrade the underlying packages soon!

  4. MR-Addict commented on Mar 27, 2023

    @MR-Addict
    Author

    Thanks for your commitment to upgrading the underlying packages.

  5. jasongerbes commented on Mar 28, 2023

    @jasongerbes
    Contributor

    Perhaps worth pointing out that the current Opentelemetry package versions used by next-contentlayer conflict with the optional peer dependency versions from latest next:

    npm ERR! code ERESOLVE
    npm ERR! ERESOLVE could not resolve
    npm ERR! 
    npm ERR! While resolving: next@13.2.4
    npm ERR! Found: @opentelemetry/api@1.1.0
    npm ERR! node_modules/@opentelemetry/api
    npm ERR!   @opentelemetry/api@"~1.1.0" from @contentlayer/utils@0.3.1
    npm ERR!   node_modules/@contentlayer/utils
    npm ERR!     @contentlayer/utils@"0.3.1" from @contentlayer/cli@0.3.1
    npm ERR!     node_modules/@contentlayer/cli
    npm ERR!       @contentlayer/cli@"0.3.1" from contentlayer@0.3.1
    npm ERR!       node_modules/contentlayer
    npm ERR!         contentlayer@"0.3.1" from the root project
    npm ERR!     @contentlayer/utils@"0.3.1" from @contentlayer/core@0.3.1
    npm ERR!     node_modules/@contentlayer/core
    npm ERR!       @contentlayer/core@"0.3.1" from @contentlayer/cli@0.3.1
    npm ERR!       node_modules/@contentlayer/cli
    npm ERR!         @contentlayer/cli@"0.3.1" from contentlayer@0.3.1
    npm ERR!         node_modules/contentlayer
    npm ERR!       5 more (@contentlayer/client, @contentlayer/source-files, ...)
    npm ERR!     4 more (@contentlayer/source-files, ...)
    npm ERR!   peer @opentelemetry/api@"^1.1.0" from @effect-ts/otel@0.14.1
    npm ERR!   node_modules/@effect-ts/otel
    npm ERR!     @effect-ts/otel@"^0.14.0" from @contentlayer/utils@0.3.1
    npm ERR!     node_modules/@contentlayer/utils
    npm ERR!       @contentlayer/utils@"0.3.1" from @contentlayer/cli@0.3.1
    npm ERR!       node_modules/@contentlayer/cli
    npm ERR!         @contentlayer/cli@"0.3.1" from contentlayer@0.3.1
    npm ERR!         node_modules/contentlayer
    npm ERR!       5 more (@contentlayer/core, @contentlayer/source-files, ...)
    npm ERR!     @effect-ts/otel@"^0.14.1" from @effect-ts/otel-exporter-trace-otlp-grpc@0.14.1
    npm ERR!     node_modules/@effect-ts/otel-exporter-trace-otlp-grpc
    npm ERR!       @effect-ts/otel-exporter-trace-otlp-grpc@"^0.14.0" from @contentlayer/utils@0.3.1
    npm ERR!       node_modules/@contentlayer/utils
    npm ERR!         @contentlayer/utils@"0.3.1" from @contentlayer/cli@0.3.1
    npm ERR!         node_modules/@contentlayer/cli
    npm ERR!         5 more (@contentlayer/core, @contentlayer/source-files, ...)
    npm ERR!     1 more (@effect-ts/otel-sdk-trace-node)
    npm ERR!   15 more (@effect-ts/otel-exporter-trace-otlp-grpc, ...)
    npm ERR! 
    npm ERR! Could not resolve dependency:
    npm ERR! peerOptional @opentelemetry/api@"^1.4.0" from next@13.2.4
    npm ERR! node_modules/next
    npm ERR!   peer next@"^12 || ^13" from next-contentlayer@0.3.1
    npm ERR!   node_modules/next-contentlayer
    npm ERR!     next-contentlayer@"0.3.1" from the root project
    npm ERR!   next@"13.2.4" from the root project
    npm ERR! 
    npm ERR! Conflicting peer dependency: @opentelemetry/api@1.4.1
    npm ERR! node_modules/@opentelemetry/api
    npm ERR!   peerOptional @opentelemetry/api@"^1.4.0" from next@13.2.4
    npm ERR!   node_modules/next
    npm ERR!     peer next@"^12 || ^13" from next-contentlayer@0.3.1
    npm ERR!     node_modules/next-contentlayer
    npm ERR!       next-contentlayer@"0.3.1" from the root project
    npm ERR!     next@"13.2.4" from the root project
    npm ERR! 
    npm ERR! Fix the upstream dependency conflict, or retry
    npm ERR! this command with --force, or --legacy-peer-deps
    npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
    
  6. modified the milestones: 0.3.2, 0.3.3 on Apr 24, 2023
  7. schickling commented on May 31, 2023

    @schickling
    Collaborator

    This should be addressed with the 0.3.3 release. 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions