4 ms·
This is true but for meaningful aggregation is not easy. You need to provide correlation identifiers to identify log entries which are part of user request invo
by imhoguy 9y ago
This is true but for meaningful aggregation is not easy. You need to provide correlation identifiers to identify log entries which are part of user request invocation. This complicates the protocol between distributed services if they are in different business domains with APIs using unrelated resource identifiers. Usually correlation ID is dispatched over e.g. HTTP header or separate API parameter.
With monolith the issue also occurs but loggers usually take care of this with thread local variables or some other contextual storage.
- partycoder 9y agoYou will have to do it anyways, irregardless of how you structure your project since logging is considered to be a cross-cutting concern.