10 Mar 2021 04:32 AM - last edited on 08 Jun 2021 05:30 AM by MaciejNeumann
Is it possible to monitor AWS Lambda written in Java with Dynatrace OneAgent? We have tried OA Extension approach but Database requests were not traced.
Solved! Go to Solution.
Do you mean using the wrapper? "AWS_LAMBDA_EXEC_WRAPPER: /opt/dynatrace" ?
How does the DB Calls are executed?
yes we had followed the same link and used AWS_LAMBDA_EXEC_WRAPPER.
We use node-postgres to execute DB calls.
Note : We are not using extensions for now. We use https://www.npmjs.com/package/@dynatrace/oneagent to integrate dynatrace with our Lambdas written in nodejs which works fine. Need help to integrate dynatrace for Java based lambdas.
The env var wrapper can be used to monitor java based Lambdas, however it is important to note that at least 1.5GB of RAM needs to be allocated to the Lambda function. More details available from the original link by Dante.
Does this answer your question?
We had tried extensions but database calls were not traced. We are using PostgreSql and Dynatrace support team confirmed that its driver is not yet supported in the Extensions. We had dropped the plan of using Extensions.
We have managed to integrate Dynatrace with NodeJs lambdas using OA npm module. Need help for a Lambda which is written in Java.
While the Dynatrace AWS Lambda extension has no built-in support for tracing database calls at the moment, you can trace such calls via OpenTelemetry interoperability. Here is a documentation article that can help you with this:
OpenTelemetry interoperability on AWS Lambda