Objects do not propagate across parfor, need save/load methods
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 38/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Ambito
- distributed-systems, observability
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- MATLAB
- Stelle
- 19
- Fork
- 4
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di mathworks/OpenTelemetry-MATLAB
-
documentation
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
-
documentation
mathworks/OpenTelemetry-MATLAB#248 · 1 assegnatario ·
-
test
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
-
otel-cpp changes
Difficoltà 3/5 1-2 giorni Idoneità per principianti 42/100
-
enhancement
mathworks/OpenTelemetry-MATLAB#242 · 1 commento · 1 assegnatario ·
Tutte le issue di mathworks/OpenTelemetry-MATLAB
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 75/100
-
Documentation Good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
flatironinstitute/numbl#65 ·
-
Component: Continuous Integration Component: MATLAB Type: enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100