mirror of
https://github.com/MarijnDoeve/TijdVoorDeTest.git
synced 2026-07-06 07:30:17 +02:00
750e8f805c
Add a when@dev block to sentry.yaml that initialises the PHP Sentry SDK with a placeholder DSN and forwards all events to the Spotlight sidecar over the internal Docker network (http://spotlight:8969/stream). The JS SDK already uses localhost:8969 via spotlight:true when no real SENTRY_DSN is set, which is correct since the browser cannot reach the internal Docker hostname.
47 lines
1.9 KiB
YAML
47 lines
1.9 KiB
YAML
when@dev:
|
|
sentry:
|
|
dsn: 'https://placeholder@placeholder.ingest.sentry.io/0'
|
|
options:
|
|
spotlight: 'http://spotlight:8969/stream'
|
|
|
|
when@prod:
|
|
sentry:
|
|
dsn: '%env(SENTRY_DSN)%'
|
|
options:
|
|
# Add request headers, cookies, IP address and the authenticated user
|
|
# see https://docs.sentry.io/platforms/php/data-management/data-collected/ for more info
|
|
# send_default_pii: true
|
|
ignore_exceptions:
|
|
- 'Symfony\Component\ErrorHandler\Error\FatalError'
|
|
- 'Symfony\Component\Debug\Exception\FatalErrorException'
|
|
- 'Symfony\Component\HttpKernel\Exception\NotFoundHttpException'
|
|
#
|
|
# # If you are using Monolog, you also need this additional configuration to log the errors correctly:
|
|
# # https://docs.sentry.io/platforms/php/guides/symfony/integrations/monolog/
|
|
# register_error_listener: false
|
|
# register_error_handler: false
|
|
#
|
|
# monolog:
|
|
# handlers:
|
|
# # Use this only if you don't want to use structured logging and instead receive
|
|
# # certain log levels as errors.
|
|
# sentry:
|
|
# type: service
|
|
# id: Sentry\Monolog\Handler
|
|
#
|
|
# # Use this for structured log integration
|
|
# sentry_logs:
|
|
# type: service
|
|
# id: Sentry\SentryBundle\Monolog\LogsHandler
|
|
#
|
|
# # Enable one of the two services below, depending on your choice above
|
|
# services:
|
|
# Sentry\Monolog\Handler:
|
|
# arguments:
|
|
# $hub: '@Sentry\State\HubInterface'
|
|
# $level: !php/const Monolog\Logger::ERROR
|
|
# $fillExtraContext: true # Enables sending monolog context to Sentry
|
|
# Sentry\SentryBundle\Monolog\LogsHandler:
|
|
# arguments:
|
|
# - !php/const Monolog\Logger::INFO
|