Module: Sentry::GoodJob
- Extended by:
- Integrable
- Defined in:
- lib/sentry-good_job.rb,
lib/sentry/good_job/version.rb,
lib/sentry/good_job/cron_helpers.rb,
lib/sentry/good_job/configuration.rb,
lib/sentry/good_job/context_helpers.rb,
lib/sentry/good_job/active_job_extensions.rb
Defined Under Namespace
Modules: ActiveJobExtensions, ContextHelpers, CronHelpers Classes: Configuration, Railtie
Constant Summary collapse
- VERSION =
"6.2.1"- IGNORE_DEFAULT =
[ "ActiveJob::DeserializationError", "ActiveJob::SerializationError" ]
Class Method Summary collapse
-
.capture_exception(exception, **options) ⇒ Object
Delegate capture_exception so internal components can be tested in isolation.
- .setup_good_job_integration ⇒ Object
Class Method Details
.capture_exception(exception, **options) ⇒ Object
Delegate capture_exception so internal components can be tested in isolation
44 45 46 |
# File 'lib/sentry-good_job.rb', line 44 def self.capture_exception(exception, **) ::Sentry.capture_exception(exception, **) end |
.setup_good_job_integration ⇒ Object
31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/sentry-good_job.rb', line 31 def self.setup_good_job_integration # Enhance sentry-rails ActiveJob integration with GoodJob-specific context Sentry::GoodJob::ActiveJobExtensions.setup # Set up cron monitoring for all scheduled jobs (automatically configured from Good Job config) if Sentry.configuration.good_job.enable_cron_monitors Sentry::GoodJob::CronHelpers::Integration.setup_monitoring_for_scheduled_jobs end Sentry.configuration.sdk_logger.info "Sentry Good Job integration initialized automatically" end |