Open MartinDybdahlM opened 8 months ago
This issue is stale because it has been open 90 days with no activity. If you want to keep this issue open, please just leave a comment below and auto-close will be canceled
Any update on this ?
Any updates? I can't instrument my Lambdas with this layer, as I am strictly bound to ESM
Could this be worked on please
Is your feature request related to a problem? Please describe. One possible issue that we have encountered while using the
aws-otel-nodejs
lambda layer is the incompatibility with Middy, a middleware engine for lambda handlers. Middy has recently dropped support for CommonJs, which means we cannot usemodule.exports
as required by the aws-otel documentation.Describe the solution you'd like Support for ES6 modules (imports/exports) to enable ESModules rather than CommonJS so we can use the import and export syntax in your Node.js applications, instead of exporting modules.
Describe alternatives you've considered Another option we have is to follow the open telemetry example for JavaScript serverless functions and write our own code to integrate it, instead of relying on the lambda layer.
Additional context ESM is recognized as the official standard by NodeJs' docs.