#Sentry and `sidekiq-cron` automatic integration

1 messages · Page 1 of 1 (latest)

hearty hound
#

Hey guys. I have a question regarding Sidekiq Cron Monitoring. Just installed sidekiq-cron gem and enabled the patch "sidekiq_cron" on sentry initializer, but it's not automatically capturing the schedule.yml jobs for checking in back to sentry.
Does the order of gems on the Gemfile "sentry-sidekiq" and "sidekiq-cron" make a difference to ensure that when sentry-sidekiq loads, it already needs to have sidekiq-cron defined? Not seeing many reasons why this just doesn't work automatically since it's a simple configuration process.
Thanks!

austere hawk
#

hey what version of sidekiq-cron are you using?

hearty hound
#

hey @austere hawk , we have sidekiq-cron (2.2.0) installed

#

sentry-rails (5.23.0), sentry-ruby (5.23.0), sentry-sidekiq (5.23.0)

#

sidekiq (7.3.8)

#

these are all the versions of the different gems! Thanks

austere hawk
#

can you try sidekiq-cron 2.1.0?

In my testing it seems that maybe something changed in 2.2.0 that is causing the auto detection to not work, whereas 2.1.0 works. Also try enabling the logger during the testing. 2.2.0 is not working for me either

With the logger enabled and if its working you should see logs like this (specifically that check_in events are sending) -

D, [2025-04-29T14:32:08.962875 #91659] DEBUG -- sentry: ** [Sentry] [Transport] Sending envelope with items [check_in] c3709012ff1a4d83975fc78339645c29 to Sentry```