Skip to main content

exceptions on chalice

Project description

Sentry-chalice

test codecov PyPI

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


Download files

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

Source Distribution

sentry_chalice-0.3.3.tar.gz (4.9 kB view hashes)

Uploaded Source

Built Distribution

sentry_chalice-0.3.3-py3-none-any.whl (6.4 kB view hashes)

Uploaded Python 3

Supported by

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