{ "html": "
\n

Installation

\n

If you haven’t already, start by downloading Raven. The easiest way is\nwith pip:

\n
pip install raven --upgrade\n
\n
\n
\n\n\n
\n

Usage

\n

RQ natively supports binding with Sentry by passing your SENTRY_DSN through rqworker:

\n
$ rqworker --sentry-dsn="___DSN___"\n
\n
\n
\n\n\n
\n

Extended Setup

\n

If you want to pass additional information, such as release, you’ll need to bind your\nown instance of the Sentry Client:

\n
from raven import Client\nfrom raven.transport.http import HTTPTransport\nfrom rq.contrib.sentry import register_sentry\n\nclient = Client('___DSN___', transport=HTTPTransport)\nregister_sentry(client, worker)\n
\n
\n

Please see rq‘s documentation for more information:\nhttp://python-rq.org/patterns/sentry/

\n
\n", "link": "https://docs.getsentry.com/clients/python/integrations/rq/", "id": "python-rq", "name": "RQ" }