sentry-prometheus-exporter
sentry-prometheus-exporter copied to clipboard
Bug on first day of month
Describe the bug On this line on first day of month today and today.replace has a really close timestamp which leads to 0 events.
I recommend using the following instead
first_day_month = datetime.timestamp(datetime.today().replace(day=1, hour=0, minute=0, second=0, microsecond=0))
or
from datetime import date
first_day_month = datetime.timestamp(datetime.combine(date.today(), datetime.min.time()))
I can open a pull request with one of the above changes if you confirm this is a valid bug. @italux
I can open a pull request with one of the above changes if you confirm this is a valid bug. @italux
Hey @tparsa thanks for the catch, please go ahead and on a pull request with your proposed fix
I just opened a pr for this (pull #53).