Add LLM digest setup and share timestamp context
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user