question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ElasticAPM is hanging lambda function after processing all events in an SQS queue

See original GitHub issue

I believe ElasticAPM will hang the lambda function when no more events exist in the SQS queue.

To Reproduce

  • Setup a lambda function to process events from an SQS queue
  • Send events to an SQS queue
  • Set ELASTIC_APM_LOG_LEVEL: debug

Environment (please complete the following information)

  • OS: debian:bullseye-slim (python:3.9-slim container image) x86
  • Python version: 3.9
  • Framework and version [e.g. Django 2.1]:
  • APM Server version: 8.4.2
  • Agent version: 6.13.2

Additional context Cloudwatch logs (can dive deeper if needed) after execution is completed image

Issue Analytics

  • State:open
  • Created 10 months ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
brett-fitzcommented, Dec 5, 2022

Yup, I can do that today. Due to this issue I had to gut APM from all of our serverless services running on lambda. It may take me some time to get this back up, stand by for logs.

0reactions
basepicommented, Dec 12, 2022

@brett-fitz any updates here? Were you able to capture those logs?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Lambda support appears to be broken in v2.x #827 - GitHub
Client attempts to write transaction data to the socket which is now closed due to the error state, resulting in the write after...
Read more >
Troubleshooting queue processing by Lambda functions
The Lambda service processes messages from SQS in batches determined by the function's batch size property. If there are still messages on the...
Read more >
Error handling in AWS Lambda triggered by SQS events
In case when your Lambda fails the message will remain in the queue and become visible to Lambda function again after the time...
Read more >
Python Agent version 6.x - Elastic
Bug fixesedit · Differentiate Lambda URLs from API Gateway in AWS Lambda integration #1609 · Restrict the size of Django request bodies to...
Read more >
Error handling in AWS Lambda triggered by SQS events
In case when your Lambda fails the message will remain in the queue and become visible to Lambda function again after the time...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found