Changes to add MCP tool count, and MCP tool name as dimension (#6631)

Co-authored-by: Ravikant Agarwal <ravikantag@google.com>
Co-authored-by: Bryan Morgan <bryanmorgan@google.com>
This commit is contained in:
agarwalravikant
2025-08-20 19:52:22 +05:30
committed by GitHub
parent a773d0887c
commit 6b843ca3a8
7 changed files with 51 additions and 5 deletions

View File

@@ -63,6 +63,7 @@ describe('loggers', () => {
};
beforeEach(() => {
vi.clearAllMocks();
vi.spyOn(sdk, 'isTelemetrySdkInitialized').mockReturnValue(true);
vi.spyOn(logs, 'getLogger').mockReturnValue(mockLogger);
vi.spyOn(uiTelemetry.uiTelemetryService, 'addEvent').mockImplementation(
@@ -161,6 +162,9 @@ describe('loggers', () => {
file_filtering_respect_git_ignore: true,
debug_mode: true,
mcp_servers: 'test-server',
mcp_servers_count: '1',
mcp_tools: undefined,
mcp_tools_count: undefined,
},
});
});