Support for generic annotations and meta for third-party libraries
- Lingua principale
- Python
- Stelle
- 338
- Fork
- 147
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Hi, we would need to send some annotations (or meta) data along with the data that is sent automatically as a segment or subsegment. Taking into account that this data is grabbed from the context, so this data changes at each request. A good example is the `request_id` that is progressed as a header between all of the services.
We are keen on the Aiohttp user case but might be worth it have a solution that fits all of the integrations.
A possible solution that wouldn't introduce much technical debt would be adding a new method of the `Context` that would be called each time that a segment is closed/sent to add all extra meta/annotations. By default will do nothing, but the developer would have the chance to override this method subclassing the `Context` class and implementing its own logic.
Thoughts, any other ideas?
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia leggendo la classe Context e i percorsi di chiusura e invio di segment/subsegment, quindi esamina come il caso d’uso Aiohttp fornisce il request context. Definisci l’API concordata per allegare annotazioni o metadati derivati dal contesto, incluso quando vengono acquisiti e come li utilizzano le integrazioni. Il lavoro è completato quando il design è definito e il comportamento è coperto per i casi di integrazione indicati.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- backend-api-design, observability-sre
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100