10 Mar 2021
12:32 PM
- last edited on
08 Jun 2021
01:30 PM
by
MaciejNeumann
Hi,
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.
Thanks
Solved! Go to Solution.
10 Mar 2021 03:09 PM
Do you mean using the wrapper? "AWS_LAMBDA_EXEC_WRAPPER: /opt/dynatrace" ?
https://www.dynatrace.com/support/help/shortlink/aws-lambda-extension#overview
How does the DB Calls are executed?
10 Mar 2021 03:18 PM
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.
12 Mar 2021 03:36 PM
Hi Shrivathsan_Sun,
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?
Thanks,
Nick
12 Mar 2021 03:44 PM
Hi Nick,
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.
Thanks,
Shri
13 Dec 2022 01:55 PM
Hi @Shrivathsan_Sun,
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