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

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

Abierto
#88 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Go
Estrellas
487
Forks
144
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Comienza con el PR adjunto y su reproductor completo; después, sigue la ruta de la Telemetry API asociada al mensaje `[dispatcher:Dispatch] LOG DROPPED!`. Invoca la función entre 10 y 30 veces con las opciones de buffering documentadas y confirma el resultado verificando que `platform.logsDropped` ya no ocurra.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
aws, go
Área
cloud
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
25/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.