{ "html": "
If you haven’t already, start by downloading Raven. The easiest way is\nwith pip:
\npip install raven --upgrade\n
RQ natively supports binding with Sentry by passing your SENTRY_DSN
through rqworker
:
$ rqworker --sentry-dsn="___DSN___"\n
If you want to pass additional information, such as release
, you’ll need to bind your\nown instance of the Sentry Client
:
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
Please see rq
‘s documentation for more information:\nhttp://python-rq.org/patterns/sentry/