517aefcd9b
Error tracking centralisé (ticket INFRA #146) : remontée des erreurs back (Symfony) et front (Nuxt) vers l'instance GlitchTip auto-hébergée. Backend : - sentry/sentry-symfony ^5.10, bundle enregistré prod-only - config/packages/sentry.yaml : handler Monolog niveau ERROR+, ignore les 4xx/AccessDenied, pas d'APM, release = %app.version% - services.yaml importe version.yaml pour exposer app.version au container - .env : bloc SENTRY_DSN documenté (vide => SDK inerte) Frontend : - @sentry/nuxt ^10.61, module chargé uniquement si NUXT_PUBLIC_SENTRY_DSN défini - runtimeConfig.public.sentry + source maps (hidden) + options d'upload - sentry.client.config.ts : init côté client gardée par if (dsn) DSN vides par défaut : aucune erreur n'est envoyée tant que les projets GlitchTip inventory-api / inventory-front et leurs DSN ne sont pas configurés en prod. Aucun secret commité. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
30 lines
1.2 KiB
PHP
30 lines
1.2 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use ApiPlatform\Symfony\Bundle\ApiPlatformBundle;
|
|
use DAMA\DoctrineTestBundle\DAMADoctrineTestBundle;
|
|
use Doctrine\Bundle\DoctrineBundle\DoctrineBundle;
|
|
use Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle;
|
|
use Nelmio\CorsBundle\NelmioCorsBundle;
|
|
use Sentry\SentryBundle\SentryBundle;
|
|
use Symfony\AI\McpBundle\McpBundle;
|
|
use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
|
|
use Symfony\Bundle\MonologBundle\MonologBundle;
|
|
use Symfony\Bundle\SecurityBundle\SecurityBundle;
|
|
use Symfony\Bundle\TwigBundle\TwigBundle;
|
|
|
|
return [
|
|
FrameworkBundle::class => ['all' => true],
|
|
TwigBundle::class => ['all' => true],
|
|
SecurityBundle::class => ['all' => true],
|
|
DoctrineBundle::class => ['all' => true],
|
|
DoctrineMigrationsBundle::class => ['all' => true],
|
|
NelmioCorsBundle::class => ['all' => true],
|
|
ApiPlatformBundle::class => ['all' => true],
|
|
DAMADoctrineTestBundle::class => ['test' => true],
|
|
McpBundle::class => ['all' => true],
|
|
MonologBundle::class => ['all' => true],
|
|
SentryBundle::class => ['prod' => true],
|
|
];
|