4 ms·
Well I threw together a system which assigns a guid to each request and reports this guid to the user if something goes wrong. The guid is sent when calling acr
by gtsteve 7y ago
Well I threw together a system which assigns a guid to each request and reports this guid to the user if something goes wrong. The guid is sent when calling across services internally so you can trace log lines across API calls and services.
The logs are written from containers to CloudWatch and consequently forwarded to ElasticSearch where we use Kibana and LogTrail [0] to view the logs and search them.
It's nowhere near as nice as XRay and other APM solutions but it hardly took any time to throw together. Fundamentally, this is how XRay works, only there is a specific format for the ID.
However, XRay now supports our runtime so we'll take another look at that. It looked like an interesting option at the time.
For a mobile app you'd want to assign a guid or some sort of user id to the device itself so you can track the distinct API calls it makes. I believe XRay and other systems support this but we don't have a mobile app so I don't know how that'd work for you.
[0] https://github.com/sivasamyk/logtrail https://github.com/sivasamyk/logtrail