From b464f8b4910357c1907391f446061942a725013c Mon Sep 17 00:00:00 2001 From: hypermkt Date: Thu, 10 Sep 2026 14:13:02 +0900 Subject: [PATCH] docs(ruby): Document attempt_threshold for sentry-sidekiq This option lets a job skip error reporting until a given attempt, but it was only mentioned in the changelog. The maintainer noted it should be documented in getsentry/sentry-ruby#2503 (comment). Co-Authored-By: Claude Opus 5 (1M context) --- .../ruby/common/configuration/integration_options.mdx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/platforms/ruby/common/configuration/integration_options.mdx b/docs/platforms/ruby/common/configuration/integration_options.mdx index eb8ebd36cf57e..f76bff77392f9 100644 --- a/docs/platforms/ruby/common/configuration/integration_options.mdx +++ b/docs/platforms/ruby/common/configuration/integration_options.mdx @@ -75,3 +75,12 @@ config.delayed_job.report_after_job_retries = true ``` config.sidekiq.report_after_job_retries = true ``` + +`attempt_threshold` + +`sentry-sidekiq` skips error reporting until a job reaches the given attempt. Set it in the job's `sidekiq_options`. The threshold is capped at the job's final attempt. Not set by default. + +```ruby +# Report only the last of 5 attempts (1 initial execution + 4 retries) +sidekiq_options retry: 4, attempt_threshold: 5 +```