Support selected runtime config changes

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

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
静か
技術スタック
java
領域
observability

調査の方向性

OpenTelemetrySdk.getSdkTracerProvider() と getSdkLoggerProvider() のエントリポイントから始め、次に contrib/dynamic-control と参照されている pull request #2881 および #8076 を確認します。どのランタイム変更をサポートすることが意図されているのか(samplers、logger configurators、exporters、または log levels)を判断し、その結果得られる API の範囲とテストを完了条件として使用します。

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

説明

Feature Request

Is your feature request related to a problem? Please describe.
The contrib/dynamic-control project is adding capability to allow the SDK and agent to change some configurations at runtime. This is being done in a roundabout way, and should be supported more straightforwardly by the SDK

Describe the solution you'd like

  • if a policy changes that results in a new sampler config, call OpenTelemetrySdk.getSdkTracerProvider().setSampler(newSampler)
  • if a policy changes that results loggers being turned off or on, call OpenTelemetrySdk.getSdkLoggerProvider().setLoggerConfigurator(newLoggerConfigurator)
  • set Exporters at runtime?
  • change logging to debug at runtime?

Describe alternatives you've considered
This isn't necessary, the contrib/dynamic-control is already implementing the changes using indirect handling. However if this is to be an accepted part of the SDK, then the changes should be added to the SDK

Additional context
Discussion thread here. There is also https://github.com/open-telemetry/opentelemetry-java/pull/8076

主要言語
Java
スター
2.5k
フォーク
1.1k
平均マージ
5日 11時間
マージ済み PR(30日)
41

環境構築

はじめの一歩

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

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

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

似ている issue

Java の issue をもっと見る

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

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