fix(promslog): always use UTC for time by tjhop · Pull Request #735 · prometheus/common (original) (raw)
I don't think we should revert the behavior as it is done here.
We had a bunch of feature requests to use the timezone configured in the environment for logging. I closed them as completed once the slog transition was done.
Log format is exempt from the stability guarantees, so we are technically allowed to change it without a major version bump. But we should still only do it as an informed decision.
At the very least, we should give users an option to use the default slog behavior again.
But I would even argue that the current behavior (prior to this PR) is fine. Those people that have seen the light will configure UTC on their servers and get UTC logging. Those that set a local timezone on their server apparently want it that way, so why log in UTC?
I also don't think that using UTC consistently for time series means we have to only use UTC timestamps for logs. The reasoning is quite different for each case.