ElasticAPM is hanging lambda function after processing all events in an SQS queue
See original GitHub issueI 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
Issue Analytics
- State:
- Created 10 months ago
- Comments:8 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
@brett-fitz any updates here? Were you able to capture those logs?