Is it possible to monitor AWS Lambda written in Java?

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

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.

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

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

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