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:
@noirbizarre on https://github.com/etalab/ckanext-sentry
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:xxxxxx@sentry.domain.com/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).
Metadata
Release files for ckanext-sentry 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ckanext-sentry-0.0.2.tar.gz | 3.6 kB | Without provenance | Details for ckanext-sentry-0.0.2.tar.gz |
Release files / ckanext-sentry-0.0.2.tar.gz
| Download URL | ckanext-sentry-0.0.2.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
31cc75db500b56981550abb792a3e46ec5b668e65e031cc2cfa5f4b72c2e9e34
|
|
BLAKE2b-256 checksum How to use checksums |
a1b826e569c466a8fbb6aa2a5589de5d290f861e0f974c78e2e0b5d9b8494739
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for ckanext-sentry 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.