Skip to main content

Datasette plugin for configuring Sentry

Project description

datasette-sentry

PyPI Changelog Tests License

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


Download files

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

Source Distribution

datasette-sentry-0.2a1.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

datasette_sentry-0.2a1-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file datasette-sentry-0.2a1.tar.gz.

File metadata

  • Download URL: datasette-sentry-0.2a1.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for datasette-sentry-0.2a1.tar.gz
Algorithm Hash digest
SHA256 9bbd61debc31c031fc0c2551f8afbd7b43590d44bfddf7319455917c180a3e84
MD5 e0bc8681682cf62ba284bcaefa098445
BLAKE2b-256 3e7c742700633d9084cc5bdffc96340546609fe0aa50ceac289c501f4a34d915

See more details on using hashes here.

File details

Details for the file datasette_sentry-0.2a1-py3-none-any.whl.

File metadata

File hashes

Hashes for datasette_sentry-0.2a1-py3-none-any.whl
Algorithm Hash digest
SHA256 afba0dfb2daa0b780a833029c492efe9add70c612a37fd622c76456be7bbe36c
MD5 e930beb9468de2ef9dd7cee6032b6820
BLAKE2b-256 8b5efe5650a87f7500a3207b62c80a6ae30ddd80d71b31b8176f88cfddaab51a

See more details on using hashes here.

Supported by

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