❤️ Support Masonite

masonite-sentry

Community V0.0.3
8
0
MIT License

pip install masonite-sentry

Masonite Package GitHub Workflow Status (branch) PyPI Python Version GitHub release (latest by date including pre-releases) License Code style: black

Masonite Sentry

Sentry sdk implementation for Masonite.

Installation

pip install masonite-sentry

Configuration

Add SentryProvider to your project in config/providers.py:

# config/providers.py
# ...
from sentry import SentryProvider

# ...
PROVIDERS = [
    # ...
    # Third Party Providers
    SentryProvider,
    # ...
]

Then you can publish the package resources (if needed) by doing:

python craft package:publish sentry

Usage

Setup environment variables in your project's .env file:

SENTRY_DSN=
SENTRY_SAMPLE_RATE=1.0

Well that's it, you are done, congrats.

Note: Sentry captures no any exceptions if you are on debug mode.

Contributing

Please read the Contributing Documentation here.

Maintainers

License

Masonite Sentry is open-sourced software licensed under the MIT license.

Last update: