getsentry / sentry-ruby

Sentry SDK for Ruby
https://sentry.io/for/ruby
MIT License
938 stars 495 forks source link

Improve the accuracy of duration calculations in cron jobs monitoring #2471

Open krzysztofjablonski opened 5 hours ago

krzysztofjablonski commented 5 hours ago

This pull request includes changes to the perform method in the sentry-ruby/lib/sentry/cron/monitor_check_ins.rb file to improve the accuracy of duration calculations.

Before:

image

After:

image