Objects do not propagate across parfor, need save/load methods
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 38/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- MATLAB
- スター
- 19
- フォーク
- 4
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
mathworks/OpenTelemetry-MATLAB のほかの issue
-
documentation
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
-
documentation
mathworks/OpenTelemetry-MATLAB#248 · 担当者 1 名 ·
-
test
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
-
otel-cpp changes
難易度 3/5 1〜2日 初心者へのやさしさ 42/100
-
enhancement
mathworks/OpenTelemetry-MATLAB#242 · コメント 1 件 · 担当者 1 名 ·
mathworks/OpenTelemetry-MATLAB の issue をすべて見る
似ている issue
-
rmbase ERP in study オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
-
Documentation Good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
flatironinstitute/numbl#65 ·