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

Java Lambda Integration timeout

guy1
Newcomer

Hi All,

 

Trying to integrate a Java lambda function with Dynatrace SaaS on our project. Have followed the instructions laid out here.

 

The lambda gets deployed via terraform and I have followed the "Configure and deploy using Terraform" instructions.

 

Deployment is successful, in aws console you can see:

 

The OneAgent layer:

 

guy1_0-1646316400626.png

And the env vars are set:

guy1_1-1646316517317.png

When I then test via the aws lambda console:

guy1_2-1646316638478.png

It hangs:

guy1_3-1646316728355.png

And eventually times out:

guy1_4-1646316927458.png

 

Upon inspecting the logs the actual business logic inside the lambda appears to execute. Having added the debugging env vars for the dynatrace layer I can see these (amongst other things):

 

  • Injecting Dynatrace OneAgent...
  • [Agent] injected, initializing
  • Setting up Dynatrace OpenTelemetry SDK
  • Successfully set up Dynatrace OpenTelemetry SDK
  • Initialized OpenTelemetry
  • Started Worker thread
  • [Agent] initialized.

There are some warnings and it ultimately times out:

guy1_5-1646317799752.png

 

Any help/suggestions appreciated.

 

 

 

 

 

2 REPLIES 2

FloHu
Newcomer

Have you double checked your variables? Make sure that there are no typos.

Also maybe try to "recreate" the variables and ARN layer.

techean
Dynatrace Mentor
Dynatrace Mentor

have you verified which jdk you have used? as the current supported version for java lambda is only Java 8 (only for amazon-corretto-8 JDK)

KG