diff --git a/Actions/TelemetryHelper.psm1 b/Actions/TelemetryHelper.psm1 index 1e4e8b117..23e35006a 100644 --- a/Actions/TelemetryHelper.psm1 +++ b/Actions/TelemetryHelper.psm1 @@ -75,6 +75,7 @@ function AddTelemetryEvent() ### Add GitHub Repository information Add-TelemetryProperty -Hashtable $Data -Key 'Repository' -Value $ENV:GITHUB_REPOSITORY_ID + Add-TelemetryProperty -Hashtable $Data -Key 'RepositoryOwnerID' -Value $ENV:GITHUB_REPOSITORY_OWNER_ID $repoSettings = ReadSettings if ($repoSettings.microsoftTelemetryConnectionString -ne '') { @@ -84,6 +85,11 @@ function AddTelemetryEvent() $MicrosoftTelemetryClient.Flush() } + ### Add telemetry that is only sent to the partner + Add-TelemetryProperty -Hashtable $Data -Key 'RepositoryOwner' -Value $ENV:GITHUB_REPOSITORY_OWNER + Add-TelemetryProperty -Hashtable $Data -Key 'RepositoryName' -Value $ENV:GITHUB_REPOSITORY + Add-TelemetryProperty -Hashtable $Data -Key 'RefName' -Value $ENV:GITHUB_REF_NAME + if ($repoSettings.partnerTelemetryConnectionString -ne '') { Write-Host "Enabling partner telemetry..." $PartnerTelemetryClient = Get-ApplicationInsightsTelemetryClient -TelemetryConnectionString $repoSettings.partnerTelemetryConnectionString