Metadata-Version: 2.1
Name: sentry-dramatiq
Version: 0.2.0
Summary: Dramatiq task processor integration for the Sentry SDK
Home-page: https://github.com/jmagnusson/sentry-dramatiq
Author: Jacob Magnusson
Author-email: m@jacobian.se
License: BSD
Platform: any
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Description-Content-Type: text/markdown
Requires-Dist: dramatiq
Requires-Dist: sentry-sdk
Provides-Extra: test
Requires-Dist: isort ; extra == 'test'
Requires-Dist: coverage ; extra == 'test'
Requires-Dist: pytest ; extra == 'test'
Requires-Dist: flake8 ; extra == 'test'

# sentry-dramatiq

[![Travis CI build status (Linux)](https://travis-ci.org/jmagnusson/sentry-dramatiq.svg?branch=master)](https://travis-ci.org/jmagnusson/sentry-dramatiq)
[![PyPI version](https://img.shields.io/pypi/v/sentry-dramatiq.svg)](https://pypi.python.org/pypi/sentry-dramatiq/)
[![License](https://img.shields.io/pypi/l/sentry-dramatiq.svg)](https://pypi.python.org/pypi/sentry-dramatiq/)
[![Available as wheel](https://img.shields.io/pypi/wheel/sentry-dramatiq.svg)](https://pypi.python.org/pypi/sentry-dramatiq/)
[![Supported Python versions](https://img.shields.io/pypi/pyversions/sentry-dramatiq.svg)](https://pypi.python.org/pypi/sentry-dramatiq/)
[![PyPI status (alpha/beta/stable)](https://img.shields.io/pypi/status/sentry-dramatiq.svg)](https://pypi.python.org/pypi/sentry-dramatiq/)
[![Coverage Status](https://coveralls.io/repos/github/jmagnusson/sentry-dramatiq/badge.svg?branch=master)](https://coveralls.io/github/jmagnusson/sentry-dramatiq?branch=master)

[Dramatiq task processor](https://dramatiq.io/) integration for the [Sentry SDK](https://docs.sentry.io/error-reporting/quickstart/?platform=python).

## Installation

```
pip install sentry-dramatiq
```

## Setup

```python
import sentry_sdk
import sentry_dramatiq

sentry_sdk.init(
    '__DSN__',
    integrations=[sentry_dramatiq.DramatiqIntegration()],
)
```

## Features

- Tags Sentry events with the message ID as `dramatiq_message_id`
- Sends message info as request body to Sentry (utilizing the same truncation mechanism that Sentry's web integrations use. See [request_bodies in Sentry's docs](https://docs.sentry.io/error-reporting/configuration/?platform=python#request-bodies))

## Known limitations

- `sentry_sdk.init()` has to be called before broker is initialized as the integration monkey patches `Broker.__init__`


