Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support serverless (aws lambda) #855

Open
dorbenzvi opened this issue Sep 25, 2022 · 2 comments
Open

Support serverless (aws lambda) #855

dorbenzvi opened this issue Sep 25, 2022 · 2 comments
Labels
api: cloudprofiler Issues related to the googleapis/cloud-profiler-nodejs API. priority: p3 Desirable enhancement or fix. May not be included in next release. type: question Request for information or clarification. Not an issue.

Comments

@dorbenzvi
Copy link

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 dorbenzvi added priority: p3 Desirable enhancement or fix. May not be included in next release. type: question Request for information or clarification. Not an issue. labels Sep 25, 2022
@product-auto-label product-auto-label bot added the api: cloudprofiler Issues related to the googleapis/cloud-profiler-nodejs API. label Sep 25, 2022
@aabmass
Copy link
Collaborator

aabmass commented Dec 1, 2022

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

@punya
Copy link
Collaborator

punya commented Feb 24, 2023

@dorbenzvi is this still a problem for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: cloudprofiler Issues related to the googleapis/cloud-profiler-nodejs API. priority: p3 Desirable enhancement or fix. May not be included in next release. type: question Request for information or clarification. Not an issue.
Projects
None yet
Development

No branches or pull requests

3 participants