Support selected runtime config changes

未关闭
#8,549 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 3 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
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 小时
30 天内合并 PR
41

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

open-telemetry/opentelemetry-java 的其他 Issue

查看 open-telemetry/opentelemetry-java 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。