cloud-profiler-nodejs icon indicating copy to clipboard operation
cloud-profiler-nodejs copied to clipboard

Support serverless (aws lambda)

Open dorbenzvi opened this issue 3 years ago • 2 comments

I'm trying to install the profiler on aws lambda.

As soon as I trigger the lambda I get this error:

Error: Cannot find module '/var/task/node_modules/@google-cloud/profiler/node_modules/pprof/build/node-v83-linux-x64-glibc/pprof.node

It should work on aws lambda? Also tried create the files using node-gyp but I didn't fully understand how to do that.

dorbenzvi avatar Sep 25 '22 10:09 dorbenzvi

What version of node are you using? We don't currently have prebuilt binaries of pprof-nodejs for newer versions of node https://github.com/google/pprof-nodejs/issues/170. You can definitely build your own binaries, not too familiar with how to do that with lambda.

aabmass avatar Dec 01 '22 20:12 aabmass

@dorbenzvi is this still a problem for you?

punya avatar Feb 24 '23 17:02 punya