Update configuration settings and logging behavior for SQL monitoring
- Increased thresholds for maximum query and method executions per window to 500 and 250, respectively, to reduce false positives in loop detection. - Enabled logging of slow queries only, improving performance by reducing log volume. - Adjusted SQL query logging to capture only warnings and errors, further optimizing logging efficiency. - Updated various settings across appsettings files to reflect these changes, ensuring consistency in configuration.
This commit is contained in:
@@ -96,12 +96,12 @@
|
||||
"LoopDetectionEnabled": true,
|
||||
"PerformanceMonitoringEnabled": true,
|
||||
"LoopDetectionWindowSeconds": 60,
|
||||
"MaxQueryExecutionsPesrWindow": 100,
|
||||
"MaxMethodExecutionsPerWindow": 50,
|
||||
"MaxQueryExecutionsPerWindow": 500,
|
||||
"MaxMethodExecutionsPerWindow": 250,
|
||||
"LongRunningQueryThresholdMs": 1000,
|
||||
"SentryAlertThreshold": 5,
|
||||
"SlowQueryThresholdMs": 1500,
|
||||
"LogSlowQueriesOnly": false,
|
||||
"LogSlowQueriesOnly": true,
|
||||
"LogErrorsOnly": false,
|
||||
"DataRetentionMinutes": 300
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user