Introduce a logger that supports structured logs, such as the Uber Zap, and replace the existing log calls with the new logger.
Contextual logging
By using a structured logger, add a new custom field to inject some sort of context ID, so that all logs for a specific request/processing can be correlated to each other, which is especially useful for async conditions.
Introduce a logger that supports structured logs, such as the Uber Zap, and replace the existing log calls with the new logger.
Contextual logging
By using a structured logger, add a new custom field to inject some sort of context ID, so that all logs for a specific request/processing can be correlated to each other, which is especially useful for async conditions.