Skip to main content

aioworkers plugin for Sentry

Project description

https://travis-ci.org/aioworkers/aioworkers-sentry.svg?branch=master https://img.shields.io/pypi/v/aioworkers-sentry.svg

aioworkers plugin to work with Sentry. Creates Sentry client and handler according configuration and setup logging.

Usage

Basic config example:

sentry:
    cls: aioworkers_sentry.client.Sentry
    dsn: <your sentry dsn>
    handler:
        level: ERROR
        tags:
            env: PROD
    transport:
        workers: 1
        qsize: 500

Or:

logging:
  version: 1
  root:
    handlers: [console,sentry]
  handlers:
    console:
      level: DEBUG
      class: logging.StreamHandler
    sentry:
      dsn: <your sentry dsn>
      level: ERROR
      transport:
        workers: 1
        qsize: 500
      environment: production
      release: 1.0.0
      tags:
        env: PROD

Development

Install dev requirements:

pipenv install --dev --skip-lock

Run tests:

pytest

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aioworkers-sentry-0.2.0.tar.gz (2.7 kB view hashes)

Uploaded Source

Supported by

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