Skip to main content

A Rollbar plugin for Sanic

Project description

Sanic-Rollbar
=============

A Rollbar plugin for Sanic, inspired by flask-rollbar.

Free software: MIT license

## Installation

```bash
pip install sanic-rollbar
```

## Usage

Set your Rollbar token in config file, like:

```python
ROLLBAR_TOKEN = os.getenv('ROLLBAR_TOKEN')
```

In your Sanic app, initialize the plugin:

```python
from sanic import Sanic, response
from sanic_rollbar import SanicRollbar
from yourapp import config

app = Sanic(__name__)
app.config.from_object(config)
SanicRollbar(app)
```


Changelog
=========

0.1.0 (2017-12-20)
------------------

* First sketch.


Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page