MagicStack / MagicStack/uvloop
Implement tracing support
Nessuno ha ancora preso questa issue.
- Lingua principale
- Cython
- Stelle
- 11.9k
- Fork
- 616
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
This is a meta issue to discuss how new asyncio tracing API should look like. We will implement it first in uvloop, and later, if necessary, port it to asyncio.
Requirements
-
Base on the new
contextvars(PEP 567) API, so that async tasks and callbacks they schedule are traced consistently. -
Traces should be hierarchical, i.e. it should be possible to see what and how exactly one Task did, what Tasks that it spawned did, etc.
-
Low performance overhead. Ideally we should be able to run tracing in production.
-
Low-level and detailed: we want to be able to measure DNS requests, read/write callbacks performance, throughput, number of callbacks/tasks created etc.
-
Flexibility: traces should be in easy to work with format, so that it's possible to submit them to existing systems like zipkin.
-
Extensibility: the new API should be easy to maintain on both ends: in the event loop and in applications that use it. This means that adding a new kind of trace should not require people to write any glue code.
-
[TBD]
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
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.
Direzione di ricerca
Inizia esaminando i requisiti di questa issue e l’API contextvars di PEP 567; non vengono indicati file di implementazione, test o punti di ingresso. Il lavoro sarebbe considerato completato quando, prima di iniziare l’implementazione, si sarà raggiunto un accordo su un’API di tracing asyncio gerarchica, a basso overhead, dettagliata, flessibile ed estensibile.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- backend, networking
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 20/100