Support for Cloudwatch logging via trace ID injection
- Vorherrschende Sprache
- Python
- Sterne
- 338
- Forks
- 147
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Hi - with the release of ServiceLens (which looks very helpful), I was wondering if you were considering adding trace ID injection somehow? This is required to match Cloudwatch logs to traces in XRay (and thus ServiceLens), see [here](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/deploy_servicelens_CloudWatch_agent_logintegration.html).
This works in the XRay Java SDK by injecting the trace ID into the MDC (see [here](https://docs.aws.amazon.com/xray/latest/devguide//xray-sdk-java-configuration.html#xray-sdk-java-configuration-logging)), which means that each log is given a suffix that includes the trace ID (can then be picked up by the ServiceLens/XRay console to tie traces to logs), e.g. :
`2019-09-10 18:58:30.844 [nio-5000-exec-4] AWS-XRAY-TRACE-ID: 1-5d77f256-19f12e4eaa02e3f76c78f46a WARN 1 - Your logging message here`
Any thoughts on supporting this in the way that the Java SDK does? I don't know much about the MDC but I've only seen it in Java.
Beitragsleitfaden
Rechercherichtung
Das Issue nennt keine Dateien oder Tests; beginne mit der verlinkten Dokumentation zur Protokollierung von CloudWatch ServiceLens und X-Ray Java SDK und untersuche anschließend die vorhandenen Logging- und Trace-Context-Schnittstellen des Python SDK. Als erledigt gilt eine abgestimmte Python-Verhaltensweise für das Injizieren der trace-ID, die durch eine Log-Ausgabe verifiziert wird, über die sich Einträge X-Ray-Traces zuordnen lassen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- aws, python
- Bereich
- observability
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 35/100