Objects do not propagate across parfor, need save/load methods
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 38/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Lĩnh vực
- distributed-systems, observability
Hướng nghiên cứu
Start with opentelemetry.trace.Tracer/startSpan, especially the reported failure at line 125, and review how the global singleton proxymanager handles proxies across parfor workers. Investigate the custom save/load methods requested for objects and their C++ counterparts. Done means the tracer and related objects propagate through the shown parfor example without the Unknown proxy ID 3 error.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
The following code would fail:
tr = opentelemetry.trace.getTracer("parfor_example");
sp = startSpan(tr, "main function");
...
parfor i = 1:8
% start a span for this iteration, using the tracer “tr” from main function
sp_i = startSpan(tr, "Iteration" + i);
...
end
Since tr is used both in and outside of the parfor block, parfor would copy and send it to the workers. Running this code would result in this error:
Error using . (line 63)
Unknown proxy ID 3
Error in opentelemetry.trace.Tracer/startSpan (line 125)
id = obj.Proxy.startSpan(spname, contextid, spankind, starttime, ...
This is because the global singleton proxymanager is not copied. In the workers, the proxies only exist in MATLAB but not in C++.
To make objects correctly propagate through to parfor blocks, they need to implement custom save/load methods which should also save/load their C++ counterparts.
- 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