otel.sdk.processor.{span,log}.queue.capacity uses synchronous UpDownCounter recorded once in __init__
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
- #5902 của @2Zest — đã đóng, không merge
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 78/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- python
- Lĩnh vực
- observability-sre
Hướng nghiên cứu
Đọc opentelemetry-sdk/src/opentelemetry/sdk/_shared_internal/_processor_metrics.py, đặc biệt là ProcessorMetrics.__init__ và register_queue_size. Kiểm tra cách callback observable hiện có cho kích thước hàng đợi được đăng ký và so sánh với các phép đo dung lượng đồng bộ. Công việc hoàn tất khi các chỉ số dung lượng hàng đợi span và log sử dụng callback observable, vẫn khả dụng sau khi đăng ký meter provider và xuyên suốt các chu kỳ thu thập Delta.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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).
- Ngôn ngữ chính
- Python
- Star
- 2.7k
- Fork
- 1.1k
- Merge trung bình
- 4 ngày 13 phút
- Pull request đã merge (30 ngày)
- 38
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của open-telemetry/opentelemetry-python
-
opentelemetry-configuration: OTLP HTTP exporter does not validate TLS files exist at startupCó thể đã có người làm @Dotify71 đã nhận 5 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
open-telemetry/opentelemetry-python#5928 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
W3CBaggagePropagator drops a list-member over 4096 bytes that W3C Baggage requires it to propagateCó thể đã có người làm @codedbyadiiii đã nhận 7 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
open-telemetry/opentelemetry-python#5913 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Prometheus map_unit incorrectly normalizes percent ratio units such as %/sCó thể đã có người làm @knowprasad đã nhận 10 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
open-telemetry/opentelemetry-python#5875 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 2 ngày
-
OTLP HTTP exporter reports a 3xx response as a successful export, so redirected batches are dropped without any logCó thể đã có người làm @d4rshnn đã nhận 18 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
open-telemetry/opentelemetry-python#5865 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 70/100
open-telemetry/opentelemetry-python#5700 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của open-telemetry/opentelemetry-python
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
docling-project/docling-pipelines#669 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
blocked kind/enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
opendatahub-io/agent-eval-harness#329 · 2 bình luận · 1 reaction ·
-
cc_wrapper crashes with ValueError on Windows when a path is on another driveCó thể đã có người làm @TrapsterDK đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
tweag/rules_haskell#2492 ·
Maintainer thường phản hồi trong vòng 1 ngày