Datasette plugin for configuring Sentry
Project description
datasette-sentry
Datasette plugin for configuring Sentry for error reporting.
Installation
pip install datasette-sentry
Usage
This plugin only takes effect if your metadata.json
file contains relevant top-level plugin configuration in a "datasette-sentry"
configuration key.
You will need a Sentry DSN - see their Getting Started instructions.
Add it to metadata.json
like this:
{
"plugins": {
"datasette-sentry": {
"dsn": "https://KEY@sentry.io/PROJECTID"
}
}
}
Settings in metadata.json
are visible to anyone who visits the /-/metadata
URL so this is a good place to take advantage of Datasette's secret configuration values, in which case your configuration will look more like this:
{
"plugins": {
"datasette-sentry": {
"dsn": {
"$env": "SENTRY_DSN"
}
}
}
}
Then make a SENTRY_DSN
environment variable available to Datasette.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for datasette_sentry-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73cf97a72fa1b2ed7db550ae76eadb323756f6a1fe0f467e7905a5a036b661d3 |
|
MD5 | e248fedb63dba7d24ac1e749b92ed192 |
|
BLAKE2b-256 | fe5de387133d3c7e6d75b3ff01e0ca08fc1872c4e4edc99fe3cc2e0070196356 |