Add Sentry error reporting

This commit is contained in:
2026-08-26 17:08:50 +00:00
parent a92293eefa
commit 1b42150ed6
20 changed files with 86 additions and 3 deletions

View File

@@ -207,6 +207,9 @@ static Task SecretsComeFromConfigurationFile()
"connectionString": "Server=db;Database=enova;User ID=user;Password=sql-z-pliku",
"commandTimeoutSeconds": 30
},
"sentry": {
"dsn": "https://public@example.com/1"
},
"diagnostics": {
"logDirectory": "C:/logs",
"logPrefix": "test"
@@ -214,8 +217,10 @@ static Task SecretsComeFromConfigurationFile()
}
""");
var runtime = ServiceSettings.Load(path).ResolveRuntimeSettings();
var settings = ServiceSettings.Load(path);
var runtime = settings.ResolveRuntimeSettings();
AssertEqual("https://public@example.com/1", settings.Sentry.Dsn, "DSN Sentry");
AssertEqual(
"haslo-z-pliku",
runtime.EnovaConfiguration?.Connection.Password,