From b0318ee330cd15f06a064f4805d145bbaa011e75 Mon Sep 17 00:00:00 2001 From: "sentry-junior[bot]" <264270552+sentry-junior[bot]@users.noreply.github.com> Date: Sun, 31 May 2026 02:50:25 +0000 Subject: [PATCH] docs(rq): remove defunct --sentry-dsn CLI flag MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The --sentry-dsn option has been fully removed from RQ and no longer exists in any current release. The previous comment ('only necessary for RQ < 1.0') was misleading — the flag is gone entirely, not just optional. Updated the worker startup snippet and the --sentry-dsn section accordingly. Fixes #17936 Co-authored-by: Rahul Chhabria --- docs/platforms/python/integrations/rq/index.mdx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/docs/platforms/python/integrations/rq/index.mdx b/docs/platforms/python/integrations/rq/index.mdx index a22a37002837d7..c76308e5c67228 100644 --- a/docs/platforms/python/integrations/rq/index.mdx +++ b/docs/platforms/python/integrations/rq/index.mdx @@ -64,8 +64,7 @@ Start your worker with: ```shell rq worker \ - -c mysettings \ # module name of mysettings.py - --sentry-dsn="___PUBLIC_DSN___" # only necessary for RQ < 1.0 + -c mysettings # module name of mysettings.py ``` The integration will automatically report errors from all RQ jobs. @@ -194,9 +193,7 @@ It takes a couple of moments for the data to appear in [sentry.io](https://sentr ## The `--sentry-dsn` CLI option -Passing `--sentry-dsn=""` to RQ forcibly disables [RQ's shortcut for using Sentry](https://python-rq.org/patterns/sentry/). For RQ versions before 1.0 this is necessary to avoid conflicts, because back then RQ would attempt to use the `raven` package instead of this SDK. Since RQ 1.0 it's possible to use this CLI option and the associated RQ settings for initializing the SDK. - -We still recommend against using those shortcuts because it would be harder to provide options to the SDK at a later point. See [the GitHub issue about RQ's Sentry integration](https://github.com/rq/rq/issues/1003) for discussion. +The `--sentry-dsn` CLI option has been removed from RQ. Initialize the Sentry SDK directly in your worker settings file (e.g. `mysettings.py`) as shown above. ## Supported Versions