cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Is it possible to monitor AWS Lambda written in Java?

Shrivathsan_Sun
Newcomer

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

5 REPLIES 5

Anonymous
Not applicable

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?

 

 

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.

nick_hurt
Dynatrace Participant
Dynatrace Participant

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

MaciejNeumann
Community Team
Community Team

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 

If you have any questions about the Community, you can contact me at maciej.neumann@dynatrace.com

Featured Posts