Metric flush cannot be triggered automatically
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 30/100
- Tipo de issue
- Error
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Stack tecnológico
- aws, nodejs
- Área
- cloud, observability-sre
Línea de trabajo
Start with the linked otlp-lambda-example reproduction and its docs/test-results.md automatic-flush section, using the Node.js 20 and listed layer versions. Trace the automatic flush and shutdown behavior around the HTTP exporter timeout and repeated Grafana emissions. Done means the root cause is identified and the expected metric export completes without timeout or duplicate emissions.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the bug
I noticed that automatic flushing is triggered before lambda receives shutdown signal. However, it makes the http exporter fail with http timeout.
Forcing the metric flush or triggering shutdown sequence during lambda invocation works. In this case, I've observed same metric being emitted to grafana 5 times, each 1 minute apart. This part of the bug may not be relevant to the project; but I'm unable to find the root cause.
Steps to reproduce
I've created this repo that simulates the behavior. You can find the details logs of the test results there as well.
What did you expect to see?
Basic config of otel exporter with http exproter successfully exports metrics.
What did you see instead?
ERROR {"stack":"Error: PeriodicExportingMetricReader: metrics export failed (error Error: Request Timeout)\n at d._doRun (/opt/773.wrapper.js:1:3565)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at runNextTicks (node:internal/process/task_queues:64:3)\n at process.processTimers (node:internal/timers:516:9)\n at async d._runOnce (/opt/773.wrapper.js:1:2894)\n at async d.onForceFlush (/opt/773.wrapper.js:1:3784)\n at async d.forceFlush (/opt/773.wrapper.js:1:2000)\n at async ee.forceFlush (/opt/773.wrapper.js:1:21040)\n at async Promise.all (index 0)\n at async ne.forceFlush (/opt/773.wrapper.js:1:24412)","message":"PeriodicExportingMetricReader: metrics export failed (error Error: Request Timeout)","name":"Error"}
What version of collector/language SDK version did you use?
node20
layers:
- opentelemetry-nodejs-0_16_0:1
- opentelemetry-collector-amd64-0_17_0:1
What language layer did you use?
nodejs
Additional context
Reproducible version can be found in https://github.com/kaskavalci/otlp-lambda-example/tree/main
It's weird that when shutdown or forceflush is triggered, same metric appears 5 times in grafana. I appreaciate your comment on this as well.

- Lenguaje dominante
- Go
- Estrellas
- 433
- Forks
- 249
- Merge medio
- 1 d 12 h
- PR fusionados (30 d)
- 39
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de open-telemetry/opentelemetry-lambda
-
enhancement ruby
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
open-telemetry/opentelemetry-lambda#2741 ·
Los mantenedores suelen responder en 2 días
-
processor/cold_start
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
open-telemetry/opentelemetry-lambda#2738 ·
Los mantenedores suelen responder en 2 días
-
Fix install-toolsAbiertogo
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
open-telemetry/opentelemetry-lambda#2736 ·
Los mantenedores suelen responder en 2 días
-
Use node-sdk package for layerAbiertoenhancement javascript
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
open-telemetry/opentelemetry-lambda#2744 ·
Los mantenedores suelen responder en 2 días
-
enhancement python
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
open-telemetry/opentelemetry-lambda#2742 ·
Los mantenedores suelen responder en 2 días
Todos los issues de open-telemetry/opentelemetry-lambda
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
--info inline-right:PREFIX leaves the first character of the prefix when the info gets shorterAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
-
[BUG] EphemeralJob matches every pod in the namespace when spec.selector is emptyPosiblemente ocupada @vishnums2k5 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
openkruise/kruise#2656 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Support kubevirt CRDsAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
rancher/rancher-ai-mcp#206 ·
Los mantenedores suelen responder en 1 día
-
test: make command and stdio startup tests portablePosiblemente ocupada @dajiaohuang la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
mark3labs/mcp-go#1220 · 1 comentario ·
Los mantenedores suelen responder en 1 día