Ensure consistency in logging timestamp formats across all services #11916
Labels
aspect: error-handling
Issues which improve error handling when something fails in Gitpod
meta: stale
This issue/PR is stale and will be closed soon
Is your feature request related to a problem? Please describe
Diagnosing cross service errors and events is difficult because different services are logging in different timestamp formats. For example, ide-proxy is outputing log settings in epoch time, with server logging in iso 8601 with millesecond precision and Z timezone marker, while most go based services are logging at iso 8601 with second precision and +offset marker.
Anyone having to write a filter to parse all our various logs and create a trace of events across them will need to know each format. Since these are configurable options in the logging libraries used in the services, there should be a consistent option enforced.
Describe the behaviour you'd like
Everyone logs as iso-8601 with MS or NS level precision in UTC
date --iso-8601=ns -u
(ordate -Ins -u
in busybox) generates a timestamp such like2022-08-05T09:55:13,076934474+0000
and is an option (ms vs ns could be debated) that other logging libraries can match, and can even be defined as a basic log function in our container run commands:The text was updated successfully, but these errors were encountered: