elastic / apm-agent-nodejs

https://www.elastic.co/guide/en/apm/agent/nodejs/current/index.html
BSD 2-Clause "Simplified" License
584 stars 225 forks source link

ESM support, stage 2 #3445

Open trentm opened 1 year ago

trentm commented 1 year ago

https://github.com/elastic/apm-agent-nodejs/issues/1952 will add initial experimental ESM support. This issue lists a number of follow tasks for ESM support:

Zorinik commented 1 month ago

Good morning, is there an ETA for this? I have a whole software platform using Hapi & Node 20, and I have been waiting since last year for APM to support it :) at the moment I had to to totally disable APM for the current year. Is it actively being worked on?

curtdept commented 4 weeks ago

@trentm id happily instrument lambda manually if it meant I could move to ESM.

Even a function like this https://github.com/newrelic/newrelic-lambda-layers?tab=readme-ov-file#manual-instrumentation-for-es-modules would be very helpful until a more auto shim could be found

Honestly manual shims should be a thing in APM and would give us more better control as a developer and allow you guys to be less constrained to the major downsides of auto shimming. Especially in the context of bundling, etc.