otel.sdk.processor.{span,log}.queue.capacity uses synchronous UpDownCounter recorded once in __init__
维护者通常 2 天内回复
还没有人认领这个 Issue。
- #5902 来自 @2Zest —— 已关闭,未合并
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 78/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- python
调研方向
阅读 opentelemetry-sdk/src/opentelemetry/sdk/_shared_internal/_processor_metrics.py,重点查看 ProcessorMetrics.__init__ 和 register_queue_size。检查现有的队列大小 observable 回调是如何注册的,并将其与同步容量测量进行比较。当 span 和 log 队列容量指标都使用 observable 回调,并且在 meter provider 注册后以及 Delta 收集周期中仍然可用时,即为完成。
由索引模型根据 Issue 内容生成。
描述
Description
In ProcessorMetrics.__init__, otel.sdk.processor.span.queue.capacity and otel.sdk.processor.log.queue.capacity are created as synchronous UpDownCounter instruments and recorded once during __init__:
This causes queue.capacity to be missing in two common scenarios:
- When
BatchSpanProcessororBatchLogRecordProcessoris constructed beforemetrics.set_meter_provider(...)is called (including inopentelemetry-instrumentauto-instrumentation),get_meter_provider()returns_ProxyMeterProvider, whose_ProxyUpDownCounter.add()is a no-op and does not replay measurements when the realMeterProvideris registered. - When the
MetricReaderuses Delta aggregation temporality forUpDownCounter, the single.add(capacity)call in__init__is only reported on the first collection cycle and is missing from all subsequent collections.
Expected behavior
otel.sdk.processor.span.queue.capacity and otel.sdk.processor.log.queue.capacity should be registered as asynchronous ObservableUpDownCounter callbacks (matching register_queue_size on lines 97-117).
- 主要语言
- Python
- 星标
- 2.7k
- 派生
- 1.1k
- 平均合并
- 4 天 13 分钟
- 30 天内合并 PR
- 38
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
open-telemetry/opentelemetry-python 的其他 Issue
-
opentelemetry-configuration: OTLP HTTP exporter does not validate TLS files exist at startup可能已有人在做 @Dotify71 于 5 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
open-telemetry/opentelemetry-python#5928 ·
维护者通常 2 天内回复
-
W3CBaggagePropagator drops a list-member over 4096 bytes that W3C Baggage requires it to propagate可能已有人在做 @codedbyadiiii 于 7 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 70/100
open-telemetry/opentelemetry-python#5913 ·
维护者通常 2 天内回复
-
Prometheus map_unit incorrectly normalizes percent ratio units such as %/s可能已有人在做 @knowprasad 于 10 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 84/100
open-telemetry/opentelemetry-python#5875 · 1 条评论 · 1 个 reaction ·
维护者通常 2 天内回复
-
OTLP HTTP exporter reports a 3xx response as a successful export, so redirected batches are dropped without any log可能已有人在做 @d4rshnn 于 18 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 72/100
open-telemetry/opentelemetry-python#5865 · 1 条评论 ·
维护者通常 2 天内回复
-
难度 1/5 1 小时以内 新手友好度 70/100
open-telemetry/opentelemetry-python#5700 · 1 条评论 ·
维护者通常 2 天内回复
查看 open-telemetry/opentelemetry-python 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
docling-project/docling-pipelines#669 ·
维护者通常 1 天内回复
-
blocked kind/enhancement
难度 2/5 1-3 小时 新手友好度 78/100
opendatahub-io/agent-eval-harness#329 · 2 条评论 · 1 个 reaction ·
-
cc_wrapper crashes with ValueError on Windows when a path is on another drive可能已有人在做 @TrapsterDK 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 79/100
tweag/rules_haskell#2492 ·
维护者通常 1 天内回复