Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 1 addition & 18 deletions eng/common/scripts/azsdk_tool_telemetry.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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"))
Expand All @@ -170,7 +154,6 @@ if ($shouldTrack)
# Build MCP command arguments
$cliArgs = @(
"ingest-telemetry",
"--timestamp", $timestamp,
"--client-type", $clientType
)

Expand Down
Loading