Skip to content

Commit 9b5ec7f

Browse files
committed
Merged in changes
2 parents 9b49bfa + e91453a commit 9b5ec7f

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
55
## Commands
66

77
### Build & Run
8-
```bashV
8+
```bash
99
# Build entire solution
1010
dotnet build
1111

src/backend/Sudoku.McpServer/Tools/ApplicationInsightsTools.cs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,15 @@ public sealed class ApplicationInsightsTools
2020
public ApplicationInsightsTools(LogsQueryClient logsClient, IConfiguration config)
2121
{
2222
_logsClient = logsClient;
23-
_workspaceId = config["AppInsights:WorkspaceId"]
24-
?? throw new InvalidOperationException(
25-
"AppInsights:WorkspaceId is required. Set it in app settings (Log Analytics workspace GUID).");
23+
24+
var workspaceId = config["AppInsights:WorkspaceId"];
25+
if (string.IsNullOrWhiteSpace(workspaceId))
26+
{
27+
throw new InvalidOperationException(
28+
"AppInsights:WorkspaceId is required and cannot be empty. Set it in app settings (Log Analytics workspace GUID).");
29+
}
30+
31+
_workspaceId = workspaceId;
2632
}
2733

2834
// -------------------------------------------------------------------------

0 commit comments

Comments
 (0)