-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bbb66ed
commit b9ccce6
Showing
5 changed files
with
30 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Sentry.io for Craft CMS 3.x | ||
# Sentry.io for Craft CMS | ||
|
||
[Sentry.io](https://sentry.io/) integration for Craft CMS. Inspired by [born05/craft-sentry](https://github.com/born05/craft-sentry), but with our own twist. | ||
|
||
|
@@ -21,6 +21,7 @@ return [ | |
'anonymous' => true, | ||
'clientDsn' => getenv('SENTRY_DSN') ?: 'https://[email protected]/123456789', | ||
'excludedCodes' => ['400', '404', '429'], | ||
'excludedExceptions' => [], | ||
'release' => getenv('SENTRY_RELEASE') ?: null, | ||
]; | ||
``` | ||
|
@@ -45,6 +46,14 @@ try { | |
|
||
The plugin works for exceptions thrown in web requests as well as console requests. For web requests, the url where the error happened is included. | ||
|
||
### Excluding specific exceptions | ||
Using the ``excludedExceptions``, you can stop specific types of exceptions from being logged to Sentry, for example: | ||
````php | ||
'excludedExceptions' => [ | ||
\craft\errors\ImageTransformException::class, | ||
], | ||
```` | ||
|
||
--- | ||
|
||
Brought to you by [Statik.be](https://www.statik.be) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,5 +27,6 @@ | |
'anonymous' => true, | ||
'clientDsn' => getenv('SENTRY_DSN') ?: 'https://[email protected]/123456789', | ||
'excludedCodes' => ['400', '404', '429'], | ||
'excludedExceptions' => [], | ||
'release' => getenv('SENTRY_RELEASE') ?: null, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters