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

Elastic APM Node package 3.50.0 and above causing issues with file upload #3806

Open Neha-Novo opened 10 months ago

Neha-Novo commented 10 months ago

As part of our recent maintenance project, we are upgrading to Node version 20 which requires us to be at the 3.50.0 version at a minimum for elastic-apm-node. This version and beyond is causing an issue wherever we are using streams for file upload.

trentm commented 10 months ago

@Neha-Novo Can you provide more details? I don't have enough to go on with what you've described.

we are upgrading to Node version 20 which requires us to be at the 3.50.0

Why does using Node.js v20 require elastic-apm-node v3.50.0? It is good to be using the latest version of elastic-apm-node, but I'm not aware of a requirement to use v3.50.0 for Node.js v20 support. Note as well that the latest version of elastic-apm-node is now v4: https://www.elastic.co/guide/en/apm/agent/nodejs/4.x/release-notes-4.x.html

This version and beyond is causing an issue wherever we are using streams for file upload.

Is the "issue" an exception that is being thrown? Or some error message? If so, can you quote those please.

Are you able to provide a small code example that reproduces the issue?