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

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

オープン
#88 コメント 0 件 リアクション 0 件 担当者 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 を短くまとめたダイジェスト。