From a7a6457a6b9a036e19b60e8e08aa0d9046b9aa98 Mon Sep 17 00:00:00 2001 From: Stuart Ferguson Date: Sat, 28 Mar 2026 17:22:11 +0000 Subject: [PATCH] Make Sentry options configurable via app settings CaptureBlockingCalls and IncludeActivityData are now read from configuration using ConfigurationReader.GetValueOrDefault, defaulting to false if not set. This allows these Sentry options to be controlled externally rather than hardcoded. --- SecurityService/Program.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SecurityService/Program.cs b/SecurityService/Program.cs index 6943f79..bdb56fd 100644 --- a/SecurityService/Program.cs +++ b/SecurityService/Program.cs @@ -72,7 +72,8 @@ o.Dsn = builtConfig["SentryConfiguration:Dsn"]; o.SendDefaultPii = true; o.MaxRequestBodySize = RequestSize.Always; - o.CaptureBlockingCalls = true; + o.CaptureBlockingCalls = ConfigurationReader.GetValueOrDefault("SentryConfiguration", "CaptureBlockingCalls", false); + o.IncludeActivityData = ConfigurationReader.GetValueOrDefault("SentryConfiguration", "IncludeActivityData", false); o.Release = Assembly.GetExecutingAssembly().GetName().Version?.ToString() ?? "unknown"; }); }