Standardize Error Logging to Include Request IDs in All Log Components #3710
Labels
enhancement
New feature or request
Team Promoted
Issues to be triaged and discussed by committers, maintainers, to be worked on the following sprint
Problem
The current error logging pattern in the codebase often separates error objects from their contextual messages. When errors are passed as the first parameter to
logger.error()
methods (as shown below), the error details and stack traces appear on separate lines in logging dashboards without request IDs:This separation makes debugging challenging as:
Proposed Solution - TBD
Standardize error logging throughout the codebase to consistently include request IDs in all log components by either
Modifying error logging to use a pattern that incorporates request IDs in both the error context and message:
Ensure request ID is included in the error message:
The text was updated successfully, but these errors were encountered: