aws-samples / aws-samples/aws-lambda-extensions
[platform.logsDropped] Unable to process 1000 logs for each invocation
- Vorherrschende Sprache
- Go
- Sterne
- 487
- Forks
- 144
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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
Beitragsleitfaden
Rechercherichtung
Beginnen Sie mit dem angehängten PR und seinem vollständigen Reproducer und verfolgen Sie dann den Telemetry API-Pfad, der mit der Meldung `[dispatcher:Dispatch] LOG DROPPED!` verbunden ist. Rufen Sie die Funktion mit den dokumentierten Pufferungsoptionen 10–30 Mal auf und bestätigen Sie das Ergebnis, indem Sie überprüfen, dass `platform.logsDropped` nicht mehr auftritt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- aws, go
- Bereich
- cloud
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100