Class: Sentry::Sidekiq::Configuration
- Inherits:
-
Object
- Object
- Sentry::Sidekiq::Configuration
- Defined in:
- lib/sentry/sidekiq/configuration.rb
Instance Attribute Summary collapse
-
#propagate_traces ⇒ Object
Whether we should inject headers while enqueuing the job in order to have a connected trace.
-
#report_after_job_retries ⇒ Object
Set this option to true if you want Sentry to only capture the last job retry if it fails.
-
#report_only_dead_jobs ⇒ Object
Only report jobs that don’t have ‘dead: false` set in the job’s ‘sidekiq_options`.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
30 31 32 33 34 |
# File 'lib/sentry/sidekiq/configuration.rb', line 30 def initialize @report_after_job_retries = false @report_only_dead_jobs = false @propagate_traces = true end |
Instance Attribute Details
#propagate_traces ⇒ Object
Whether we should inject headers while enqueuing the job in order to have a connected trace
28 29 30 |
# File 'lib/sentry/sidekiq/configuration.rb', line 28 def propagate_traces @propagate_traces end |
#report_after_job_retries ⇒ Object
Set this option to true if you want Sentry to only capture the last job retry if it fails.
22 23 24 |
# File 'lib/sentry/sidekiq/configuration.rb', line 22 def report_after_job_retries @report_after_job_retries end |
#report_only_dead_jobs ⇒ Object
Only report jobs that don’t have ‘dead: false` set in the job’s ‘sidekiq_options`
25 26 27 |
# File 'lib/sentry/sidekiq/configuration.rb', line 25 def report_only_dead_jobs @report_only_dead_jobs end |