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

Make utern print logs as many as possible #31

Merged

Conversation

abicky
Copy link
Contributor

@abicky abicky commented Oct 3, 2021

Issue #, if available:

There is no issue because it is difficult to reproduce the issue, but I believe some users, especially those who have applications that print many logs to a log group with multiple streams in a short time, have experienced it.

Description of changes:

The responses from FilterLogEvents API include only logs with a timestamp after the value startTime but utern uses the last ingestion time of the last response, which is usually larger than the last event time, that is, utern ignores some logs that occurred before the last ingestion time.
This PR makes utern use the maximum value of event times to print logs as much as possible.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@abicky abicky force-pushed the make-utern-print-logs-as-many-as-possible branch from 2d5bc3c to 34b741d Compare October 3, 2021 16:46
The responses from FilterLogEvents API include only logs with
a timestamp after the value `startTime` but utern uses the last
ingestion time of the last response, which is usually larger
than the last event time, that is, utern ignores some logs that
occurred before the last ingestion time.
This commit makes utern use the minimum value of event times to
print logs as much as possible.
@abicky abicky force-pushed the make-utern-print-logs-as-many-as-possible branch from 34b741d to 812ef09 Compare October 3, 2021 16:48
@knqyf263
Copy link
Owner

knqyf263 commented Oct 7, 2021

I don't have an environment to test it. We can merge it as @yutachaos approved 😉

@yutachaos yutachaos merged commit e5d609d into knqyf263:master Oct 11, 2021
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

Successfully merging this pull request may close these issues.

3 participants