Skip to content

Commit b1c3bb0

Browse files
committed
Documented most valuable sentry options
1 parent bbdb50d commit b1c3bb0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,18 @@ Leaving this value empty (or undeclared) in other environments will effectively
8888
```yaml
8989
sentry:
9090
dsn: "https://public:[email protected]/1"
91+
options:
92+
environment: '%kernel.environment%'
93+
release: '%env(VERSION)%' #your app version
94+
excluded_exceptions: #exclude validation errors
95+
- App\Exception\UserNotFoundException
96+
- Symfony\Component\Security\Core\Exception\AccessDeniedException
9197
```
9298
99+
The parameter `options` allows to fine-tune exceptions. To discover more options, please refer to
100+
[the Unified APIs](https://docs.sentry.io/development/sdk-dev/unified-api/#options) options and
101+
the [PHP specific](https://docs.sentry.io/platforms/php/#php-specific-options) ones.
102+
93103
#### Optional: use monolog handler provided by `sentry/sentry`
94104
*Note: this step is optional*
95105

0 commit comments

Comments
 (0)