WS-7 Observability — closure #8

Merged
bert.hausmans merged 30 commits from feat/ws-7-observability into main 2026-05-07 22:49:31 +02:00
2 changed files with 9 additions and 1 deletions
Showing only changes of commit 215405ad50 - Show all commits

View File

@@ -201,7 +201,7 @@ class AppServiceProvider extends ServiceProvider
// per-attempt fingerprinting).
\Illuminate\Support\Facades\Event::listen(
\Illuminate\Queue\Events\JobProcessing::class,
\App\Listeners\Observability\TagJobAttemptOnSentry::class,
[\App\Listeners\Observability\TagJobAttemptOnSentry::class, 'handle'],
);
// RFC-WS-7 §3.6 — auth-scope Sentry tags + Log::withContext on

View File

@@ -22,6 +22,14 @@ return Application::configure(basePath: dirname(__DIR__))
health: '/up',
apiPrefix: 'api/v1',
)
// Listener auto-discovery uitgeschakeld — observability listeners (en
// alle andere listeners) worden expliciet geregistreerd in
// AppServiceProvider::boot(). Reden: silent double-registration is
// mogelijk wanneer auto-discovery + explicit listen samen lopen, en
// expliciete registratie is grep-baar / IDE-navigeerbaar / direct
// zichtbaar bij code review. Onder enterprise-grade observability is
// impliciete discovery een stille fault-mode (RFC-WS-7 §3.6, OBS-8).
->withEvents(discover: false)
->withMiddleware(function (Middleware $middleware): void {
// API uses token-based auth, no CSRF needed