Skip to content

Commit

Permalink
Merge pull request getsentry#228 from karser/document-configuration
Browse files Browse the repository at this point in the history
Documented most valuable sentry options
  • Loading branch information
Jean85 committed Jul 30, 2019
2 parents bbdb50d + b1c3bb0 commit 5f49fa4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Expand Up @@ -88,8 +88,18 @@ Leaving this value empty (or undeclared) in other environments will effectively
```yaml
sentry:
dsn: "https://public:secret@sentry.example.com/1"
options:
environment: '%kernel.environment%'
release: '%env(VERSION)%' #your app version
excluded_exceptions: #exclude validation errors
- App\Exception\UserNotFoundException
- Symfony\Component\Security\Core\Exception\AccessDeniedException
```

The parameter `options` allows to fine-tune exceptions. To discover more options, please refer to
[the Unified APIs](https://docs.sentry.io/development/sdk-dev/unified-api/#options) options and
the [PHP specific](https://docs.sentry.io/platforms/php/#php-specific-options) ones.

#### Optional: use monolog handler provided by `sentry/sentry`
*Note: this step is optional*

Expand Down

0 comments on commit 5f49fa4

Please sign in to comment.