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.1.1.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

sentry_chalice-0.1.1-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file sentry_chalice-0.1.1.tar.gz.

File metadata

  • Download URL: sentry_chalice-0.1.1.tar.gz
  • Upload date:
  • Size: 5.5 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.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.5

File hashes

Hashes for sentry_chalice-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6505d1d541418b5fe8b4b9dc910dfc1db5cc6b403f5c080e68eb473877d88481
MD5 7c9cc741f5310d04da7c1c17dffa8d29
BLAKE2b-256 6af17d66be37dc4ebc2ce71241a8b6afb947cc52980a2c343f8eadec1961ae56

See more details on using hashes here.

File details

Details for the file sentry_chalice-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: sentry_chalice-0.1.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.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.5

File hashes

Hashes for sentry_chalice-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dfd9553296b6bd9c0e1ed657d928f7a46b4779b14c378a9a90ff3efeb24fea91
MD5 47e54ee85fa34aca33e00229f5c44a87
BLAKE2b-256 cca659efd75bd628e29e0b2fc889dba90fa5ce2807103e71702fa075294d026e

See more details on using hashes here.

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