Not able connect to elastic apm server from AWS lambda

Hi @alexander.wert , @axw , @Sylvain_Juge , @simitt

for other lambda we got the error logs following
WARN co.elastic.apm.agent.impl.transaction.AbstractSpan - End has already been

2022-09-12 12:52:59,335 [elastic-apm-server-reporter] ERROR co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Failed to handle event of type TRANSACTION with this error: null

2022-09-12 12:42:19,172 [main] DEBUG co.elastic.apm.agent.bci.bytebuddy.CustomElementMatchers - Implementation version parsing error: ProtectionDomain (file:/var/task/ )