https://github.com/py-package/masonite-sentry
Sentry SDK implementation for Masonite Apps.
https://github.com/py-package/masonite-sentry
Last synced: 2 months ago
JSON representation
Sentry SDK implementation for Masonite Apps.
- Host: GitHub
- URL: https://github.com/py-package/masonite-sentry
- Owner: py-package
- License: mit
- Created: 2022-07-11T10:49:04.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-01-15T17:56:50.000Z (over 1 year ago)
- Last Synced: 2025-04-23T14:14:32.314Z (2 months ago)
- Language: Python
- Homepage:
- Size: 103 KB
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
![]()
## Masonite Sentry
Sentry sdk implementation for Masonite.
## Installation
```bash
pip install masonite-sentry
```## Configuration
Add SentryProvider to your project in `config/providers.py`:
```python
# config/providers.py
# ...
from sentry import SentryProvider# ...
PROVIDERS = [
# ...
# Third Party Providers
SentryProvider,
# ...
]
```Then you can publish the package resources (if needed) by doing:
```bash
python craft package:publish sentry
```## Usage
Setup environment variables in your project's `.env` file:
```bash
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](CONTRIBUTING.md) here.
## Maintainers
- [x] [Yubaraj Shrestha](https://www.github.com/py-package)
## License
Masonite Sentry is open-sourced software licensed under the [MIT license](LICENSE).