Metric flush cannot be triggered automatically
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 30/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- aws, nodejs
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.

- 主要言語
- Go
- スター
- 433
- フォーク
- 249
- 平均マージ
- 1日 12時間
- マージ済み PR(30日)
- 39
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
open-telemetry/opentelemetry-lambda のほかの issue
-
enhancement ruby
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
open-telemetry/opentelemetry-lambda#2741 ·
メンテナーはふだん 2 日以内に返信
-
processor/cold_start
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
open-telemetry/opentelemetry-lambda#2738 ·
メンテナーはふだん 2 日以内に返信
-
Fix install-toolsオープンgo
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
open-telemetry/opentelemetry-lambda#2736 ·
メンテナーはふだん 2 日以内に返信
-
enhancement javascript
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
open-telemetry/opentelemetry-lambda#2744 ·
メンテナーはふだん 2 日以内に返信
-
enhancement python
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
open-telemetry/opentelemetry-lambda#2742 ·
メンテナーはふだん 2 日以内に返信
open-telemetry/opentelemetry-lambda の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
-
[BUG] EphemeralJob matches every pod in the namespace when spec.selector is empty対応中かも @vishnums2k5 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
openkruise/kruise#2656 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
rancher/rancher-ai-mcp#206 ·
メンテナーはふだん 1 日以内に返信
-
test: make command and stdio startup tests portable対応中かも @dajiaohuang が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
mark3labs/mcp-go#1220 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信