Add LLM digest setup and share timestamp context

This commit is contained in:
Rijad Zuzo
2026-05-19 19:17:35 +02:00
parent 9d2da0c600
commit 5d80af375e
42 changed files with 2878 additions and 39 deletions
+30 -1
View File
@@ -11,6 +11,17 @@ class AppConfig {
static const String _defaultSentryDsn = String.fromEnvironment(
'SENTRY_DSN',
defaultValue:
'https://97fb0a56bc35440fba0ba139dc3b1ccc@bugs.zuzo.ch/2',
);
static const String _defaultSentryEnvironment = String.fromEnvironment(
'SENTRY_ENVIRONMENT',
defaultValue: '',
);
static const String _defaultSentryRelease = String.fromEnvironment(
'SENTRY_RELEASE',
defaultValue: '',
);
@@ -53,9 +64,27 @@ class AppConfig {
defaultValue: 180,
);
/// Optional Sentry DSN for release crash/error reporting.
/// Sentry-compatible DSN for release crash/error reporting.
static String get sentryDsn => _defaultSentryDsn.trim();
/// Sentry environment label.
static String get sentryEnvironment {
final String configured = _defaultSentryEnvironment.trim();
if (configured.isNotEmpty) {
return configured;
}
return useFakeBackend ? 'development' : 'production';
}
/// Optional Sentry release identifier.
static String? get sentryRelease {
final String configured = _defaultSentryRelease.trim();
if (configured.isEmpty) {
return null;
}
return configured;
}
/// Runtime override for backend URL (e.g. local settings screen).
static void overrideBackendBaseUrl(String? baseUrl) {
_baseUrlOverride = baseUrl;