4 ms·
> to trace a single chain of events across platforms? For each individual instance of some class of things, generate a unique identifier. For example, each net
by madhadron 7y ago
> to trace a single chain of events across platforms?
For each individual instance of some class of things, generate a unique identifier. For example, each network request the mobile app makes to the backend should have a request ID. The mobile app includes that request ID in all its log entries and sends it with the request. The backend plumbs it through everywhere and all its log entries have it, too. If you have multiple instances of things in the backend, like batches of queries sent to a database, log an identifier for them as well.
Then you dump all of this into one big index in some semi-structured data store and use the identifiers to pull out all related entries.