Giter VIP home page Giter VIP logo

ckanext-sentry's Introduction

https://travis-ci.org/ViderumGlobal/ckanext-sentry.svg?branch=master https://coveralls.io/repos/github/ViderumGlobal/ckanext-sentry/badge.svg?branch=master

Sentry CKAN extension

The Sentry CKAN extension allows to add a Sentry middleware to the CKAN and stack and optionally configure a Sentry log handler.

This extension builds on top of the previous work of:

Installation

To install the extension, activate your virtualenv and run:

pip install ckanext-sentry

Alternative, you can install a development version with:

git clone https://github.com/okfn/ckanext-sentry.git
cd ckanext-sentry
python setup.py develop
pip install -r requirements.txt

Configuration

To activate the plugin, add sentry to the ckan.plugins key in your ini file:

ckan.plugins = sentry <other-plugins>

You must provide a Sentry DSN:

sentry.dsn = https://xxxxxx:[email protected]/1

You can see a full list of supported options for the Sentry client on the official Raven documentation.

If you want Sentry to record your log messages, you can turn it on adding the following options:

sentry.configure_logging=True
sentry.log_level=WARN

The default log level if not provided in the configuration is INFO.

All these configuration options can also be passed via environment variables:

  • SENTRY_DSN or CKAN_SENTRY_DSN
  • CKAN_SENTRY_CONFIGURE_LOGGING
  • CKAN_SENTRY_LOG_LEVEL

The configuration also supports env vars named like the ckanext-envvars extension convention (eg CKAN___SENTRY__LOG_LEVEL).

ckanext-sentry's People

Contributors

amercader avatar davidlemayian avatar noirbizarre avatar zoranpandovski avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.