aws / aws/aws-xray-sdk-python

Support for generic annotations and meta for third-party libraries

Offen
#47 5 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
enhancement
Vorherrschende Sprache
Python
Sterne
338
Forks
147
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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?

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne mit dem Lesen der Context-Klasse und der Pfade zum Schließen und Senden von segment/subsegment und untersuche anschließend, wie der Aiohttp-Anwendungsfall den request context bereitstellt. Definiere die vereinbarte API zum Anhängen von aus dem Context abgeleiteten Annotationen oder Metadaten, einschließlich des Zeitpunkts ihrer Erfassung und der Art und Weise, wie Integrationen sie verwenden. Die Aufgabe ist abgeschlossen, wenn das Design festgelegt und das Verhalten für die genannten Integrationsfälle abgedeckt ist.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python
Bereich
backend-api-design, observability-sre
Issue-Typ
Feature
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.