OpenTelemetryv0.145.0
週次メールは確認すべき変更がある週だけ、深刻度がcriticalのセキュリティアドバイザリは即時に届きます。
重大な修正5
OTLP gRPC エクスポーターのデフォルトバランサーを
round_robinに修正影響対象デフォルトバランサーを使用するexporter/otlp_grpcOTLP エクスポーターのセットアップ(推定)デフォルトバランサーでは、動作が
pick_firstにフォールバックすることがありました。また、passthrough リゾルバースキームではround_robinが有効になりませんでした。- `exporter/otlp_grpc`: Fix the OTLP exporter balancer to use round_robin by default, as intended. (#14090)
github.com/open-telemetry/opentelemetry-collector/releases/tag/v0.145.0Exporter のバッチサイズ設定のデフォルト復元
影響対象sending_queueのバッチ処理を使用する exporter 設定(推定)設定が
Optionalでラップされていると、Unmarshalメソッドがスキップされ、バッチのmin_sizeとmax_sizeの単位が誤ったままになることがありました。ラッパー型ではxconfmap.WithForceUnmarshalerを使って内部のUnmarshalを呼び出せるようになりました。ただし、confmap.Confに対するトップレベルのUnmarshal呼び出しでは、デフォルトでトップレベルのメソッドは引き続きスキップされます。- `pkg/config/configoptional`: Fix `Unmarshal` methods not being called when config is wrapped inside `Optional` (#14500) This bug notably manifested in the fact that the `sending_queue::batch::sizer` config for exporters stopped defaulting to `sending_queue::sizer`, which sometimes caused the wrong units to be used As part of the fix, `xconfmap` exposes a new `xconfmap.WithForceUnmarshaler` option, to be used in the `Unmarshal` methods The default behavior remains that calling `conf.Unmarshal` on the `confmap.Conf` passed as argument to an `Unmarshal` method will skip any top-level `Unmarshal` methods to avoid infinite recursion in standard use cases. - `pkg/config/configoptional`: Fix `Unmarshal` methods not being called when config is wrapped inside `Optional` (#14500) This bug notably manifested in the fact that the `sending_queue::batch::sizer` config for exporters stopped defaulting to `sending_queue::sizer`, which sometimes caused the wrong units to be used when configuring `sending_queue::batch::min_size` and `max_size`.
github.com/open-telemetry/opentelemetry-collector/releases/tag/v0.145.0Optional でラップされた設定のアンマーシャリングとエクスポーターのバッチサイザーのデフォルト修正
影響対象Optionalでラップされたエクスポーター設定。特にsending_queue::batch::sizer、sending_queue::batch::min_size、sending_queue::batch::max_sizeを使用する設定sending_queue::batch::sizerがsending_queue::sizerをデフォルトとして使わなくなることがあり、その結果、sending_queue::batch::min_sizeとsending_queue::batch::max_sizeの単位が誤って扱われる可能性がありました。このデフォルト設定が復元されました。- `pkg/config/configoptional`: Fix `Unmarshal` methods not being called when config is wrapped inside `Optional` (#14500) This bug notably manifested in the fact that the `sending_queue::batch::sizer` config for exporters stopped defaulting to `sending_queue::sizer`, which sometimes caused the wrong units to be used when configuring `sending_queue::batch::min_size` and `max_size`.
github.com/open-telemetry/opentelemetry-collector/releases/tag/v0.145.0pkg/confmapの構造体コレクションにおける補間文字列のデコード修正影響対象構造体コレクション内の文字列フィールドに補間値を含む設定修正前は、環境変数から渡された
1234のように文字列以外として解析された値によって、デコードに失敗することがありました。confmap.newExpandedValueSanitizerを有効にすると、フィールドごとにデコードすることでこの失敗を回避できます。- `pkg/confmap`: Fix an issue where configs could fail to decode when using interpolated values in string fields. (#14413) For example, a header can be set via an environment variable to a string that is parseable as a number, e.g. `1234`
github.com/open-telemetry/opentelemetry-collector/releases/tag/v0.145.0pkg/serviceにおける未対応 OS のプロセスメトリクス起動エラー修正影響対象プロセスメトリクスを有効にして、未対応のオペレーティングシステム向けにカスタムコンパイルされたコレクターこれらのコレクターは以前、
failed to register process metrics: not implemented yetというエラーで起動に失敗していました。現在はこのエラーが発生せず、起動できます。- `pkg/service`: Don't error on startup when process metrics are enabled on unsupported OSes (e.g. AIX) (#14307)
github.com/open-telemetry/opentelemetry-collector/releases/tag/v0.145.0
機能・改善2
ラッパー型での内部型の強制アンマーシャリング
利用条件 内部型の
Unmarshalメソッドを呼び出すため、ラッパー型のUnmarshalメソッドでxconfmap.WithForceUnmarshalerを使用することAs part of the fix, `xconfmap` exposes a new `xconfmap.WithForceUnmarshaler` option, to be used in the `Unmarshal` methods of wrapper types like `configoptional.Optional` to make sure the `Unmarshal` method of the inner type is called. The default behavior remains that calling `conf.Unmarshal` on the `confmap.Conf` passed as argument to an `Unmarshal` method will skip any top-level `Unmarshal` methods to avoid infinite recursion in standard use cases. As part of the fix, `xconfmap` exposes a new `xconfmap.WithForceUnmarshaler` option, to be used in the `Unmarshal` methods of wrapper types like `configoptional.Optional` to make sure the `Unmarshal` method of the inner type is called. The default behavior remains that calling `conf.Unmarshal` on the `confmap.Conf` passed as argument to an `Unmarshal` method will skip any top-level `Unmarshal` methods to avoid infinite recursion in standard use cases.
github.com/open-telemetry/opentelemetry-collector/releases/tag/v0.145.0pkg/xscraperhelperにAddProfilesScraperヘルパーを追加- `pkg/xscraperhelper`: Add AddProfilesScraper similar to scraperhelper.AddMetricsScraper (#14427)
github.com/open-telemetry/opentelemetry-collector/releases/tag/v0.145.0
その他の変更2
pkg/scraperhelperのエラーログへのスクレイパー ID 追加- `pkg/scraperhelper`: ScraperID has been added to the logs for metrics, logs, and profiles (#14461)
github.com/open-telemetry/opentelemetry-collector/releases/tag/v0.145.0pkg/config/configgrpcによるサーバー認証前のクライアント情報追加- `pkg/config/configgrpc`: add client info to context before server authentication (#12836)
github.com/open-telemetry/opentelemetry-collector/releases/tag/v0.145.0
整理した内容は AI が作成するため誤っている可能性があり、無保証で提供されます。