Skip to main content

TODO

Project description

falcon-sentry

Installation

pip install falcon-sentry

How to use

When creating your Falcon application/API instance. Wrap it with falcon-sentry and pass in your Sentry DSN.

application = falcon.API()
application.add_route('/items', MyResource())
dsn = 'https://00000000000000000000000000000000@sentry.io/0000000'
application = falcon_sentry(dsn=dsn, app=application)
return application

You can also use an environment variable to specify the DSN.

os.environ['SENTRY_DSN'] = 'https://00000000000000000000000000000000@sentry.io/0000000'
application = falcon_sentry(app=application)
return application

If both the dsn parameter and the environment variable are missing then falcon-sentry will do nothing and return the application instance.

Release History

0.1.0 (2018-12-05)

  • Initial release.

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

falcon-sentry-0.1.0.tar.gz (2.7 kB view details)

Uploaded Source

File details

Details for the file falcon-sentry-0.1.0.tar.gz.

File metadata

  • Download URL: falcon-sentry-0.1.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5

File hashes

Hashes for falcon-sentry-0.1.0.tar.gz
Algorithm Hash digest
SHA256 039c4833d95ced5bc22c7c938d406d3c88d437f7ed0eb912adebfe385360bde2
MD5 c2c2550327e5e42808cce6853194299a
BLAKE2b-256 d4947290180d0b1a11629a2434d3016c30cd4cff814e6d3941ee2d52024fd9c4

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