Skip to content

Is yarn 4 with nodeLinker pnpm supported ? #2812

Open
@pithu

Description

@pithu

We have a typescript project that is using winston logger and express. We transpiling the code with tsc to commonjs. We are using yarn4 as a package manager, @opentelemetry/[email protected] and @opentelemetry/[email protected]

We run the server with node --require @opentelemetry/auto-instrumentations-node/register --inspect dist/index.js

When setting the yarn nodeLinker to node-modules (yarn config set nodeLinker node-module) the winston log library is logging the trace context as expected.

When setting the yarn nodeLinker to pnpm (yarn config set nodeLinker pnpm) the winston log library is NOT logging the trace context as expected. the trace-id is missing in winston context.

  • [ x ] This only affects the JavaScript OpenTelemetry library
  • This may affect other libraries, but I would like to get opinions here first

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions