Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Objects do not propagate across parfor, need save/load methods

Aperta
#98 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

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
Stack tecnologico
cpp, matlab

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

enhancement

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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di mathworks/OpenTelemetry-MATLAB

Tutte le issue di mathworks/OpenTelemetry-MATLAB

Issue simili

Altre issue su MATLAB

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.