aws-samples / aws-samples/aws-lambda-extensions
[platform.logsDropped] Unable to process 1000 logs for each invocation
- Ngôn ngữ chính
- Go
- Star
- 487
- Fork
- 144
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
Hey team!
We're experiencing an issue while dealing with the Telemetry API when the function has 1k logs.
At some point, we're receiving a `platform.logsDropped`, likely because we're not succeeding to process the payload sent in a timely fashion (this is what I've understand from [the doc](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-logs-api.html))
To make it easier [I've attached a PR](https://github.com/aws-samples/aws-lambda-extensions/pull/89) with a full reproducer. If you invoke the function 10-30 times, you'll see a `[dispatcher:Dispatch] LOG DROPPED!` meaning that we have indeed received a `platform.logsDropped`
I've also tried different buffering options (playing with `timeoutMs `, `maxBytes ` and `maxItems `) without any luck.
Thanks!
Max
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu với PR đính kèm và reproducer đầy đủ của nó, sau đó truy vết đường dẫn Telemetry API liên kết với thông báo `[dispatcher:Dispatch] LOG DROPPED!`. Gọi hàm 10–30 lần với các tùy chọn buffering được ghi trong tài liệu và xác nhận kết quả bằng cách kiểm tra rằng `platform.logsDropped` không còn xảy ra.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- aws, go
- Lĩnh vực
- cloud
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 25/100