https://github.com/wintercms/wn-sentry-plugin
Sentry.io integration for Winter CMS
https://github.com/wintercms/wn-sentry-plugin
crash-reporting hacktoberfest laravel sentry
Last synced: about 2 months ago
JSON representation
Sentry.io integration for Winter CMS
- Host: GitHub
- URL: https://github.com/wintercms/wn-sentry-plugin
- Owner: wintercms
- License: mit
- Created: 2021-03-15T02:58:18.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-10-22T06:13:43.000Z (9 months ago)
- Last Synced: 2025-04-27T10:04:35.983Z (2 months ago)
- Topics: crash-reporting, hacktoberfest, laravel, sentry
- Language: PHP
- Homepage:
- Size: 33.2 KB
- Stars: 3
- Watchers: 4
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-wintercms - Winter.Sentry - Sentry.io integration. (Uncategorized / Uncategorized)
README
# Sentry Plugin
[](https://github.com/wintercms/wn-sentry-plugin/blob/main/LICENSE)Integrates the [sentry-laravel](https://github.com/getsentry/sentry-laravel) package into Winter CMS.
Supports:
- Performance & Error monitoring via the Sentry Laravel integration
- Performance & Error monitoring via the Sentry JS integration## Installation
This plugin is available for installation via [Composer](http://getcomposer.org/).
```bash
composer require winter/wn-sentry-plugin
```After installing the plugin you will need to run the migrations and (if you are using a [public folder](https://wintercms.com/docs/develop/docs/setup/configuration#using-a-public-folder)) [republish your public directory](https://wintercms.com/docs/develop/docs/console/setup-maintenance#mirror-public-files).
```bash
php artisan migrate
```## Configuration
If you are using the [`.env` file](https://wintercms.com/docs/setup/configuration#dotenv-configuration) for configuration, simply add your Sentry DSN to the environment file as `SENTRY_LARAVEL_DSN` or `SENTRY_DSN`. If you are not using the `.env` file, simply copy `plugins/winter/sentry/config/config.php` to `config/winter/sentry/config.php` and change the value of `dsn`.
After you have provided the DSN, you can go to `example.com/debug-sentry` to test that exceptions are being reported to Sentry. Note that by default this route is only enabled when debug mode is enabled, although you can set it to be explicitly enabled or disabled by changing `enableTestRoute` in `config/winter/sentry/config.php`.