open-telemetry / opentelemetry-lambda

Create your own Lambda Layer in each OTel language using this starter code. Add the Lambda Layer to your Lamdba Function to get tracing with OpenTelemetry.
https://opentelemetry.io
Apache License 2.0
286 stars 173 forks source link

Update nodejs module to use workspaces instead of Lerna #1102

Open martinkuba opened 10 months ago

martinkuba commented 10 months ago

The nodejs sub-project is currently using Lerna, which is a tool for managing multiple Node packages in a single repository. The bootstrap/install process that Lerna was used for in the past are now possible with npm workspaces.

Lerna has already deprecated its bootstrap command/mechanism in favor of workspaces. This is the reason that Lerna cannot be currently upgraded (see https://github.com/open-telemetry/opentelemetry-lambda/pull/1085) - the Node lambda package is calling lerna bootstrap during install, and it also runs on Node 14, which is not supported by latest Lerna version.

I propose that we

pragmaticivan commented 9 hours ago

I believe this issue is resolved? https://github.com/open-telemetry/opentelemetry-lambda/blob/main/nodejs/package.json#L18-L21

cc @serkan-ozal