Objects do not propagate across parfor, need save/load methods
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 38/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Veraltet
- Bereich
- distributed-systems, observability
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- MATLAB
- Sterne
- 19
- Forks
- 5
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus mathworks/OpenTelemetry-MATLAB
-
documentation
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 48/100
-
AI Agent example can no longer read pricing information from OpenAI websiteEvtl. wieder frei @duncanpo hat das vor 185 Tagen übernommen, und es ist kein Pull Request offen. Offendocumentation
mathworks/OpenTelemetry-MATLAB#248 · 1 zugewiesene Person ·
-
test
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 45/100
-
otel-cpp changes
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 42/100
-
MBT plugin does not correctly report traces when running a build in parallelEvtl. wieder frei @sameagen-MW hat das vor 215 Tagen übernommen, und es ist kein Pull Request offen. Offenenhancement
mathworks/OpenTelemetry-MATLAB#242 · 1 Kommentar · 1 zugewiesene Person ·
Alle Issues in mathworks/OpenTelemetry-MATLAB
Ähnliche Issues
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
Maintainer antworten meist innerhalb von 5 Tagen
-
R2026b on macOS (Apple Silicon): matlab_locator_exec prints a garbage app path, so the extension can't launch MATLABEvtl. vergeben @dklilley hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
mathworks/MATLAB-extension-for-vscode#354 · 2 Kommentare · 2 Reaktionen ·
-
curation
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 77/100
SysBioChalmers/yeast-GEM#419 ·
-
enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
catalystneuro/zarr-matlab#29 ·
Maintainer antworten meist innerhalb von 1 Tag