Last 12 weeks · 0 commits
2 of 6 standards met
Sometimes, not all events will be retrieved from CloudWatch Logs. See this issue: https://github.com/apex/up/issues/733 This is because the code that updates the "start" of the time range based on observed timestamps is incorrect - it assumes the events come back in chronological order. CloudWatch Logs doesn't always return events in their chronological order. This is hinted at in the docs for the interleaved parameter. The proposed solution: stops updating the "start" time range - this alone will fix events not appearing keeps a fixed-size queue of recent event IDs, so duplicates can be ignored - this is important in "follow" mode because the last page is requested repeatedly Please note, I don't write a lot of Go, so critique is welcome. I tested this against 100 events, where this code would pull down ~31 events.
Repository: tj/aws. Description: Higher level AWS package for Go Stars: 41, Forks: 4. Primary language: Go. Languages: Go (100%). License: MIT. Open PRs: 0, open issues: 1. Last activity: 4y ago. Community health: 42%. Top contributors: tj.