Adding a logical to a meter silently fails
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 42/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- matlab
- Lĩnh vực
- observability-sre
Hướng nghiên cứu
Start by reproducing the counter.add(logical(1)) and counter.add(double(logical(1))) calls shown in the issue, then query the /metrics endpoint with curl and compare the reported values. Trace the counter.add entry point to determine why the logical value has no effect, and verify that logical and converted numeric increments are reflected consistently in the metric.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Blot
Adding a logical to a meter will not increase the meter value, but also does not throw an error or warning. This isn't a timing issue in the example below, the collector had enough time to update between each increment of the meter and curl call below.
Example
>> m = opentelemetry.metrics.getMeter("test")
m =
Meter with properties:
Name: "test"
Version: ""
Schema: ""
>> counter = m.createCounter("mycounter")
counter =
Counter with properties:
Name: "mycounter"
Description: ""
Unit: ""
>> counter.add(3)
>> !curl -v http://localhost:8889/metrics
curl: /matlab/bin/glnxa64/libcurl.so.4: no version information available (required by curl)
* Host localhost:8889 was resolved.
* IPv6: ::1
* IPv4: 127.0.0.1
* Trying [::1]:8889...
* Connected to localhost (::1) port 8889
* using HTTP/1.x
> GET /metrics HTTP/1.1
> Host: localhost:8889
> User-Agent: curl/7.88.1
> Accept: */*
>
* Request completely sent off
< HTTP/1.1 200 OK
< Content-Type: text/plain; version=0.0.4; charset=utf-8; escaping=underscores
< Date: Thu, 08 Jan 2026 20:43:02 GMT
< Content-Length: 190
< Connection: close
<
# HELP default_mycounter_total
# TYPE default_mycounter_total counter
default_mycounter_total{job="unknown_service",otel_scope_name="test",otel_scope_schema_url="",otel_scope_version=""} 3
* shutting down connection #0
>> counter.add(logical(1))
>> !curl -v http://localhost:8889/metrics
curl: /matlab/bin/glnxa64/libcurl.so.4: no version information available (required by curl)
* Host localhost:8889 was resolved.
* IPv6: ::1
* IPv4: 127.0.0.1
* Trying [::1]:8889...
* Connected to localhost (::1) port 8889
* using HTTP/1.x
> GET /metrics HTTP/1.1
> Host: localhost:8889
> User-Agent: curl/7.88.1
> Accept: */*
>
< HTTP/1.1 200 OK
< Content-Type: text/plain; version=0.0.4; charset=utf-8; escaping=underscores
< Date: Thu, 08 Jan 2026 20:46:11 GMT
< Content-Length: 190
< Connection: close
<
# HELP default_mycounter_total
# TYPE default_mycounter_total counter
default_mycounter_total{job="unknown_service",otel_scope_name="test",otel_scope_schema_url="",otel_scope_version=""} 3
* we are done reading and this is set to close, stop send
* abort upload
* shutting down connection #0
>> counter.add(double(logical(1)))
>> !curl -v http://localhost:8889/metrics
curl: /matlab/bin/glnxa64/libcurl.so.4: no version information available (required by curl)
* Host localhost:8889 was resolved.
* IPv6: ::1
* IPv4: 127.0.0.1
* Trying [::1]:8889...
* Connected to localhost (::1) port 8889
* using HTTP/1.x
> GET /metrics HTTP/1.1
> Host: localhost:8889
> User-Agent: curl/7.88.1
> Accept: */*
>
* Request completely sent off
< HTTP/1.1 200 OK
< Content-Type: text/plain; version=0.0.4; charset=utf-8; escaping=underscores
< Date: Thu, 08 Jan 2026 20:51:06 GMT
< Content-Length: 190
< Connection: close
<
# HELP default_mycounter_total
# TYPE default_mycounter_total counter
default_mycounter_total{job="unknown_service",otel_scope_name="test",otel_scope_schema_url="",otel_scope_version=""} 4
* shutting down connection #0
- Ngôn ngữ chính
- MATLAB
- Star
- 19
- Fork
- 4
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
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 mathworks/OpenTelemetry-MATLAB
-
documentation
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
-
documentation
mathworks/OpenTelemetry-MATLAB#248 · 1 người được giao ·
-
test
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
-
Update to OpenTelemetry-cpp 1.26 Đang mởotel-cpp changes
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 42/100
-
enhancement
mathworks/OpenTelemetry-MATLAB#242 · 1 bình luận · 1 người được giao ·
Tất cả issue của mathworks/OpenTelemetry-MATLAB
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
-
Documentation Good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
README.md top image suggestion Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
flatironinstitute/numbl#65 ·
-
Component: Continuous Integration Component: MATLAB Type: enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100