From eb867624511e8d59934716150ab8e3921086ce87 Mon Sep 17 00:00:00 2001 From: Praveen Kuttappan Date: Wed, 25 Mar 2026 11:58:05 -0400 Subject: [PATCH 1/2] Remove unused function from copilot hook script --- eng/common/scripts/azsdk_tool_telemetry.ps1 | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/eng/common/scripts/azsdk_tool_telemetry.ps1 b/eng/common/scripts/azsdk_tool_telemetry.ps1 index 563278f448a3..ed05d56bdc20 100644 --- a/eng/common/scripts/azsdk_tool_telemetry.ps1 +++ b/eng/common/scripts/azsdk_tool_telemetry.ps1 @@ -21,8 +21,7 @@ if (-not (Test-Path $cliPath)) # Skip telemetry if opted out if ($env:AZSDKTOOLS_COLLECT_TELEMETRY -eq "false") { - Write-Output '{"continue":true}' - exit 0 + Write-Success } $toolsToIgnore = @( "run_in_terminal", "apply_patch") @@ -141,21 +140,6 @@ if ($toolName -eq "view" -or $toolName -eq "read_file") } } -# Find property from tool input or output -function Get-Property -{ - param ( - [object]$Object, - [string]$PropertyName - ) - - if ($Object -and $Object.PSObject.Properties[$PropertyName]) - { - return $Object.PSObject.Properties[$PropertyName].Value - } - return $null -} - # Check for Azure SDK Tools MCP invocation # Skip mcp tool telemetry since it's already tracked by MCP server if ($toolName.StartsWith("mcp_azure-sdk") -or $toolName.StartsWith("azure-sdk-mcp")) From 2dc6920940e37856259df90512d1a4407455b6ea Mon Sep 17 00:00:00 2001 From: Praveen Kuttappan Date: Wed, 25 Mar 2026 18:59:30 -0400 Subject: [PATCH 2/2] Removed timestamp param --- eng/common/scripts/azsdk_tool_telemetry.ps1 | 1 - 1 file changed, 1 deletion(-) diff --git a/eng/common/scripts/azsdk_tool_telemetry.ps1 b/eng/common/scripts/azsdk_tool_telemetry.ps1 index ed05d56bdc20..95204ac00468 100644 --- a/eng/common/scripts/azsdk_tool_telemetry.ps1 +++ b/eng/common/scripts/azsdk_tool_telemetry.ps1 @@ -154,7 +154,6 @@ if ($shouldTrack) # Build MCP command arguments $cliArgs = @( "ingest-telemetry", - "--timestamp", $timestamp, "--client-type", $clientType )