Closed oxatruchdev closed 7 months ago
It's worth mentioning that this only happens when I run node 21, but whenever I change to node 18, the profiler works as expected
We're having the same issue and downgrading to node 18 works as you said. We do however prefer to use node 21 which is a problem.
This is expected.
We currently ship prebuilt binaries for a few of the most common platforms and node versions (v16-20). https://github.com/getsentry/profiling-node/tree/v1.3.5?tab=readme-ov-file#prebuilt-binaries
@rokas0 it's been almost 6 months since Node 21 came out. Any info on when the Node 21 profiler will be released?
@lukeocodes we do not support non LTS (odd) versions of nodejs. We will release a new version when node 22 reaches LTS
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
SDK Version
1.3.5
Link to Sentry event
No response
What environment is your node script running in?
Express app inside docker container using node:alpine image.
How is your code deployed and bundled?
It's plain javascript express server, and I'm running it inside a docker container as follows
My integration for Sentry and the ProfilingIntegration looks like this
package.json looks like this
Steps to Reproduce
docker build --no-cache -t efs .
docker run -p 8080:8080 efs
Expected Result
Docker container runs on latest image
Actual Result
And it's correct, because, in fact there's no
sentry_cpu_profiler-linux-arm64-musl-120.node
file in my node_modules.Also I checked the code for this library and even though I don't understand completely what's happening inside, but there's no check for that 120 anywhere to be found in
src/cpu_profiler
This also happened in my M1 Macbook pro when running node 21