exceptions on chalice
Project description
Sentry-chalice
Sentry-Chalice allow the integration of Chalice on sentry.
You can use sentry-chalice integration like this:
import sentry_sdk
from chalice import Chalice
from sentry_chalice import ChaliceIntegration
sentry_sdk.init(
dsn="https://<key>@<organization>.ingest.sentry.io/<project>",
integrations=[ChaliceIntegration()]
)
app = Chalice(app_name='appname')
sentry-chalice now it works just for views: @app.route.
You can create a route that triggers an error for validate your Sentry installation, like this:
@app.route('/boom')
def boom():
raise Exception('boom goes the dynamite!')
when you enter the route will throw an error that will be captured by Sentry.
Behavior
- Request data is attached to all events: HTTP method, URL, headers, form data, JSON payloads. Sentry excludes raw bodies and multipart file uploads. Sentry also excludes personally identifiable information (such as user ids, usernames, cookies, authorization headers, IP addresses) unless you set send_default_pii to True.
Each request has a separate scope. Changes to the scope within a view, for example setting a tag, will only apply to events sent as part of the request being handled.
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 Distribution
Built Distribution
File details
Details for the file sentry_chalice-0.3.1.tar.gz
.
File metadata
- Download URL: sentry_chalice-0.3.1.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27982c0dad7f1d7860f0ffd8817b2419fe3f7eb0ca60a87c26c3c7641ae257c3 |
|
MD5 | 60d9189357fdd78ba702b10f5ae7323b |
|
BLAKE2b-256 | 35ea88b16e71a85b6a6dcc85f30a4b25f494afe08d87ae16b454a98ad7ad47e7 |
File details
Details for the file sentry_chalice-0.3.1-py3-none-any.whl
.
File metadata
- Download URL: sentry_chalice-0.3.1-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | de9c0278a2f8d57fd2214bfdc0cac9f5ea066f2b846afb4ec559de12a1fd69b0 |
|
MD5 | baa953c63417a3d214f10d17969f2d57 |
|
BLAKE2b-256 | bba7f9599e66109ede541c11f4ca490c5d753211193681d05ba63bbd49929bbb |