opentelemetry-configuration: provide a way for downstream distribution to update exporter configurations
维护者通常 2 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 18/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- python
调研方向
This is an API design question, not a ready patch: the proposal adds an optional callback to configure_sdk() and a call inside _OTelSDKConfigurator._configure. Start by reading how the declarative gRPC exporter factory builds its channel_options, and check whether maintainers have accepted a hook like this. Done means a maintainer decision on the API shape, followed by a reviewed design.
由索引模型根据 Issue 内容生成。
描述
Downstream distributions need a way to customize the built-in OTLP exporters when users configure the SDK through declarative configuration. Some of the arguments of our exporters are not exposed as environment variable and then configuration keys. On example of this is the channel_options GRPC exporters use to set the user agent (via grpc.primary_user_agent).
The declarative gRPC factory has no way to supply that constructor argument.
Java provides a related declarative exporter customizer Service Provider Interface (SPI) that receives an already-created exporter and can return a replacement.
Would an optional pre-construction callback on configure_sdk() fit the declarative configuration API? The callback could receive the exporter class and the constructor options derived from the configuration file, then return updated options.
configure_sdk(config, otlp_exporter_options=customize_exporter_options)
The callback would have this proposed signature:
def customize_exporter_options(
# types are from exporters not from configuration models
exporter_type: type[SpanExporter] | type[MetricExporter] | type[MetricReader] | type[LogRecordExporter],
options: Mapping[str, Any],
) -> Mapping[str, Any]:
...
This is supposed to be called by distributions in the the ovveride of _OTelSDKConfigurator._configure.
If accepted I would implement it.
- 主要语言
- Python
- 星标
- 2.7k
- 派生
- 1.1k
- 平均合并
- 3 天 12 小时
- 30 天内合并 PR
- 16
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
open-telemetry/opentelemetry-python 的其他 Issue
-
References to Archived open-telemetry/oteps可能已有人在做 @RjyavardhanSingh 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
open-telemetry/opentelemetry-python#5984 · 1 条评论 ·
维护者通常 2 天内回复
-
Autoconfiguration rejects OTEL_EXPORTER_OTLP_PROTOCOL=http/json可能已有人在做 @WendeelMarinho 于 2 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 82/100
open-telemetry/opentelemetry-python#5981 ·
维护者通常 2 天内回复
-
MeterProvider raises ValueError on empty or uppercase OTEL_METRICS_EXEMPLAR_FILTER可能已有人在做 @bishalde 于 8 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 83/100
open-telemetry/opentelemetry-python#5948 · 3 条评论 ·
维护者通常 2 天内回复
-
W3CBaggagePropagator drops a list-member over 4096 bytes that W3C Baggage requires it to propagate可能已有人在做 @codedbyadiiii 于 20 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 70/100
open-telemetry/opentelemetry-python#5913 ·
维护者通常 2 天内回复
-
otel.sdk.processor.{span,log}.queue.capacity uses synchronous UpDownCounter recorded once in __init__可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
open-telemetry/opentelemetry-python#5891 ·
维护者通常 2 天内回复
查看 open-telemetry/opentelemetry-python 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
bug improve content
难度 1/5 1 小时以内 新手友好度 92/100
opensafely/documentation#2102 ·
维护者通常 1 天内回复
-
difficulty:1 documentation
难度 2/5 1-3 小时 新手友好度 82/100
MakazhanAlpamys/Soup#3533 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
onyx-dot-app/onyx#18730 ·
维护者通常 1 天内回复