Metric flush cannot be triggered automatically
I maintainer di solito rispondono entro 2 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 30/100
- Tipo di issue
- Bug
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- aws, nodejs
- Ambito
- cloud, observability-sre
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.

- Lingua principale
- Go
- Stelle
- 433
- Fork
- 249
- Merge medio
- 1g 12h
- PR unite (30g)
- 39
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di open-telemetry/opentelemetry-lambda
-
enhancement ruby
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
open-telemetry/opentelemetry-lambda#2741 ·
I maintainer di solito rispondono entro 2 giorni
-
processor/cold_start
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
open-telemetry/opentelemetry-lambda#2738 ·
I maintainer di solito rispondono entro 2 giorni
-
Fix install-toolsApertago
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
open-telemetry/opentelemetry-lambda#2736 ·
I maintainer di solito rispondono entro 2 giorni
-
enhancement javascript
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
open-telemetry/opentelemetry-lambda#2744 ·
I maintainer di solito rispondono entro 2 giorni
-
enhancement python
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
open-telemetry/opentelemetry-lambda#2742 ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di open-telemetry/opentelemetry-lambda
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
--info inline-right:PREFIX leaves the first character of the prefix when the info gets shorterAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
-
[BUG] EphemeralJob matches every pod in the namespace when spec.selector is emptyForse già presa @vishnums2k5 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
openkruise/kruise#2656 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Support kubevirt CRDsAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
rancher/rancher-ai-mcp#206 ·
I maintainer di solito rispondono entro 1 giorno
-
test: make command and stdio startup tests portableForse già presa @dajiaohuang l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
mark3labs/mcp-go#1220 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno