diff --git a/eng/common/scripts/azsdk_tool_telemetry.ps1 b/eng/common/scripts/azsdk_tool_telemetry.ps1 index 563278f448a3..95204ac00468 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")) @@ -170,7 +154,6 @@ if ($shouldTrack) # Build MCP command arguments $cliArgs = @( "ingest-telemetry", - "--timestamp", $timestamp, "--client-type", $clientType )