Identify async_hooks use cases beyond AsyncLocalStorage
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- nodejs
- Ambito
- observability-sre
Direzione di ricerca
Start by reviewing the async_hooks and AsyncLocalStorage use cases listed in the issue, then investigate the Clinic uses mentioned in the discussion. Done means documenting additional use cases and identifying which safer APIs could address them without exposing unsafe resource internals.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
It seems to be the general consensus of this working group that async_hooks should not be directly made stable due to it exposing internals. The AsyncLocalStorage API provides a higher-level solution to many of the use cases of async_hooks, however some use cases still remain. I would like to identify what those use cases are so we can introduce safer APIs solving those problems and eventually move toward deprecating direct use of async_hooks or perhaps just the unsafe aspects of it.
Known use cases:
- long stack traces
- Shouldn't make any use of the resource objects, so should be reasonably safe.
- tracking handle lifecycle
- The subsystem type, id, and event timings can be used to track high-level lifecycle safely
- Deeper awareness may involve inspecting the resource object, which could be unsafe
- measure time spent in blocking code
- Mainly just need timing between before/after and maybe type for extra context, resource not required
What other use cases are there? I know clinic uses it for some things, perhaps @mcollina has some insight on that?
- Lingua principale
- Nessun dato sulla lingua
- Stelle
- 550
- Fork
- 69
- 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 nodejs/diagnostics
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 65/100
nodejs/diagnostics#648 · 3 commenti ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 20/100
nodejs/diagnostics#690 · 1 reazione ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 20/100
nodejs/diagnostics#689 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 25/100
nodejs/diagnostics#688 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
nodejs/diagnostics#687 ·
Tutte le issue di nodejs/diagnostics
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
backend bug tracing
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
future-agi/future-agi#3022 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
traceloop/openllmetry#4502 ·
-
area/distributed-query area/observability kind/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100