-
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
Showing
7 changed files
with
25 additions
and
10 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
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -1,12 +1,23 @@ | ||
parameters: | ||
env(SENTRY_ENVIRONMENT): 'preproduction' | ||
|
||
sentry: | ||
register_error_listener: false | ||
|
||
when@prod: | ||
sentry: | ||
dsn: '%env(SENTRY_DSN)%' | ||
|
||
# If you are using Monolog, you also need this additional configuration to log the errors correctly: | ||
# https://docs.sentry.io/platforms/php/guides/symfony/#monolog-integration | ||
register_error_listener: false | ||
register_error_handler: false | ||
|
||
options: | ||
release: '%env(APP_VERSION)%' | ||
release: '%env(API_VERSION)%' | ||
environment: '%env(SENTRY_ENVIRONMENT)%' | ||
|
||
monolog: | ||
handlers: | ||
sentry: | ||
type: sentry | ||
level: !php/const Monolog\Logger::ERROR | ||
hub_id: Sentry\State\HubInterface | ||
fill_extra_context: true # Enables sending monolog context to Sentry |