-
Notifications
You must be signed in to change notification settings - Fork 128
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
LWA + OpenTelemetry collector + zip Lambda deployment - is it possible? #568
Comments
Nevermind. I misunderstood that AWS_LAMBDA_EXEC_WRAPPER is a path to binary but it turns out that it is just a shell script (lwa, otel, nodejs). I merged the two scripts and it is now apparently working. |
Hi @bnusunny So Lambda + otel seems to rely on I'm still trying to find a way to make it work properly, but do you have any information on this? e.g. a successful example of LWA + Otel configuration. Thanks. |
Since you are running a actual web app inside Lambda using LWA, you should instrument the web app in the normal way (such as this one), not following the Lambda function approach. I can create an example this weekend. |
@bnusunny That's awesome, thanks! I think I tried the approach but it somehow didn't work; it appeared the span context was not propagated? still investigating though. I might have mesed up something so I'll wait for your test result 🙏 |
Thanks! I'll give it a try 👍 |
Hi @bnusunny could you share the full example code when you get a chance? Currently I cannot somehow get it work but not sure about the detailed difference with your configuration e.g. bundler option etc. |
Hi, can we use LWA and OpenTelemetry collector together with zip Lambda deployment? I am afraid that we cannot because LWA and Otel collector both requires
AWS_LAMBDA_EXEC_WRAPPER
environment variable set to their binary path, but we can only set one single path for the variable.Do you know if there is any workaround for this? Thanks.
P.S.) I confirmed that with Container Lambda deployment, we can use LWA + Otel without a problem. We can just copy multiple Lambda extension binaries to the /opt/extensions directory.
The text was updated successfully, but these errors were encountered: