Collector v0.16.0 crashes when provided service.telemetry.metrics.address in YAML config

オープン
#1,891 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
aws, go, yaml

調査の方向性

collector/config.yaml、特に service.telemetry.metrics.address から始め、Collector v0.16.0 の設定スキーマおよびリンク先の内部テレメトリードキュメントと比較します。この設定を削除または更新すべきか確認し、そのうえで、結果として得られた設定でデフォルトの Collector 拡張機能が正常に起動することを検証します。

索引モデルが issue の本文から書いたものです。

説明

bug

Describe the bug
Collector v0.16.0 will fail to start as an extension, emitting the following error:

{
    "level": "warn",
    "ts": 1752100574.8841333,
    "logger": "lifecycle.manager",
    "msg": "Failed to start the extension",
    "error": "failed to get config: cannot unmarshal the configuration: decoding failed due to the following error(s):\n\n'service.telemetry.metrics' decoding failed due to the following error(s):\n\n'' has invalid keys: address"
}

Steps to reproduce

I assume using the default config (i.e., providing no OPENTELEMETRY_COLLECTOR_CONFIG_URI) will elicit this behavior for any user of the Collector layer, since the default config still includes this property, but you can also use the collector-v0.16.0 branch of my repo to reproduce this issue.

The presence of

service:
  # ...
  telemetry:
    metrics:
      address: localhost:8888

is sufficient to crash the Collector extension layer.

Removing the entire telemetry portion will allow the Collector to successfully start; I'm not yet sure how this impacts the end user (e.g., if metrics are no longer received/exported).

What did you expect to see?

I expected to see the Collector extension layer start successfully and the Lambda execute successfully.

What did you see instead?

The extension crashes and the Lambda fails to execute.

What version of collector/language SDK version did you use?

This affects Collector v0.16.0.

What language layer did you use?

NodeJS v0.15.0

Additional context

Maybe this is expected behavior and the service.telemetry.metrics.address setting is deprecated or entirely unnecessary.

Update: I just found this in the documentation on the Collector's internal metrics:

Internal telemetry configuration changes

As of Collector v0.123.0, the service::telemetry::metrics::address setting is ignored. In earlier versions, it could be configured with:

service:
 telemetry:
   metrics:
     address: 0.0.0.0:8888
主要言語
Go
スター
433
フォーク
249
平均マージ
1日 12時間
マージ済み PR(30日)
39

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

open-telemetry/opentelemetry-lambda のほかの issue

open-telemetry/opentelemetry-lambda の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。