Skip to content
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

Timestamp is not monotonic #15

Open
lzap opened this issue Dec 27, 2024 · 0 comments
Open

Timestamp is not monotonic #15

lzap opened this issue Dec 27, 2024 · 0 comments

Comments

@lzap
Copy link

lzap commented Dec 27, 2024

There is a chance that the time is generated in non-monotonic sequence, AWS does refuse to accept such batch with the following error:

zerolog: could not write event: operation error CloudWatch Logs: PutLogEvents, https response error StatusCode: 400, RequestID: 04f4acf4-d527-47c1-be20-5df5fbf8bf61, InvalidParameterException: Log events in a single PutLogEvents request must be in chronological order.

In fact, we do see this bug in our stage system from time to time. I fixed it in my fork:

lzap/cloudwatchwriter2@a109d00

Leaving an issue here just in case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant