feat(infra): intégration Sentry/GlitchTip complète
- Upgrade Sentry.AspNetCore v6.7.0 → v6.8.0 - Ajout Sentry base package à Infrastructure (pour SentryErrorReporter) - Configuration SDK enrichie dans Web et Agent: - AutoSessionTracking=false (GlitchTip ne supporte pas) - EnableLogs=true (logs structurés) - CaptureBlockingCalls=true (détection .Result/.Wait()) - CaptureFailedRequests=true (capture 4xx/5xx HttpClient) - IncludeActivityData=true (DiagnosticSource) - SetBeforeSend pour nettoyage PII (password, token, secret) - SetBeforeBreadcrumb pour filtrage breadcrumbs - SampleRate, AttachStacktrace, MaxBreadcrumbs configurés - Release depuis la config, Environment auto - StackTraceMode.Enhanced - double.Parse avec CultureInfo.InvariantCulture - UseSentry avec type explicite SentryAspNetCoreOptions - Abstraction IErrorReporter dans Application (0 dép. Sentry) - Implémentation SentryErrorReporter dans Infrastructure - Enregistrement DI dans Infrastructure - DSN de développement dans appsettings.Development.json - .env.example avec Sentry__Dsn et Sentry__TracesSampleRate
This commit is contained in:
1 parent
63d610c303
commit
450e019617
11 files changed
+148
-10
No files matched your search
@@ -4,5 +4,13 @@
|
||||
"Default": "Information",
|
||||
"Microsoft.AspNetCore": "Warning"
|
||||
}
|
||||
},
|
||||
"Sentry": {
|
||||
"Dsn": "https://db94b9fc2f36425f9eb4b9f6f347dc73@glitchtip.tordais.cc/6",
|
||||
"Environment": "Development",
|
||||
"TracesSampleRate": 1.0,
|
||||
"SendDefaultPii": true,
|
||||
"Debug": true,
|
||||
"DiagnosticLevel": "debug"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user