From 750e8f805c22edbcd898a67618ac7d8d6c4fba9b Mon Sep 17 00:00:00 2001 From: Marijn Doeve Date: Sun, 5 Jul 2026 22:23:04 +0200 Subject: [PATCH] feat: route PHP Sentry events to Spotlight in dev 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. --- config/packages/sentry.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config/packages/sentry.yaml b/config/packages/sentry.yaml index aefb61a..8773d61 100644 --- a/config/packages/sentry.yaml +++ b/config/packages/sentry.yaml @@ -1,3 +1,9 @@ +when@dev: + sentry: + dsn: 'https://placeholder@placeholder.ingest.sentry.io/0' + options: + spotlight: 'http://spotlight:8969/stream' + when@prod: sentry: dsn: '%env(SENTRY_DSN)%'