aws-samples / aws-samples/aws-lambda-extensions

[platform.logsDropped] Unable to process 1000 logs for each invocation

未关闭
#88 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Go
星标
487
派生
144
PR 合并指标
30 天内没有已合并 PR

描述

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

贡献指南

打开贡献指南

调研方向

先从附带的 PR 及其完整复现程序开始,然后跟踪与 `[dispatcher:Dispatch] LOG DROPPED!` 消息相关的 Telemetry API 路径。使用文档中记录的缓冲选项调用该函数 10–30 次,并通过验证 `platform.logsDropped` 不再发生来确认结果。

由索引模型根据 Issue 内容生成。

评估

技术栈
aws, go
领域
cloud
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。