-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Logging: issues with out-of-sync clocks #8222
Comments
@crazystick Thanks for the report. Can you please show the full traceback for the error? Also, how are you getting to the FWIW, |
Hi @tseaver as you say, the log entry did make it to Stackdriver Logging - the first issue was really that the timestamp is not set by the default handler - which my PR #8227 addresses. I will try to investigate the 504 error which happens when the clock is lagging behind real time and maybe open a separate issue to keep things simple. |
@crazystick Great, thanks. Please do post the traceback for the 504 error in the new issue. |
I have a couple of related issues with timestamps for Stackdriver logging. I want to log data from devices that might have unreliable clocks but the
receiveTimestamp
andtimestamp
fields are always identical to the nanosecond and if the clock is behind then logging seems to fail with errorsEnvironment details
Linux 5.1.5 + libfaketime
python 3.7.3
google-cloud-logging 1.11.0
Steps to reproduce
Code example
Run using libfaketime:
LD_PRELOAD=/lib/faketime/libfaketime.so.1 FAKETIME="+2m" venv/bin/python logger.py
Console Output
Log Entry
The text was updated successfully, but these errors were encountered: