-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[receivers/mongodbatlasrecevier] fix first scrape lookback time #8246
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a unit test to verify the behavior?
@anuraaga I added a attempted to split out the functionality to make it easier to test, and added |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one nit. otherwise LGTM
Description: The first
start
lookback was being set to the 0 value of time.Time, and ultimately being passed to the mongodb atlas api with a value of0001-01-01T00:00:00Z
, which isbad
. Results in an attempt to query a large amount of data.