Azure / azure-powershell

Microsoft Azure PowerShell
Other
4.24k stars 3.84k forks source link

Telemetry data is not correct for cmdlet "Get-AzStreamAnalyticsJob". #23555

Open YanaXu opened 11 months ago

YanaXu commented 11 months ago

Description

I started a Azure PowerShell docker container and ran 2 cmdlets in one PS session.

docker run -it mcr.microsoft.com/azure-powershell:11.0.0-ubuntu-20.04
Here are their information. cmdlet 'x-ms-client-request-id' in debug log 'Date' in debug log
Get-AzStreamAnalyticsJob -debug 19d7a6d4-4885-41bb-81e9-f73aae3d2504 Fri, 24 Nov 2023 05:47:17 GMT
Get-AzAksCluster -debug edb01f39-74c1-4c83-9fa4-5583ff17e49d Fri, 24 Nov 2023 05:47:22 GMT

I can find the record of Get-AzAksCluster -debug in client telemetry but can't find the record of Get-AzStreamAnalyticsJob -debug.

Issue script & Debug output

Get-AzStreamAnalyticsJob -debug
Get-AzAksCluster -debug

Environment data

PS /> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.3.9
PSEdition                      Core
GitCommitId                    7.3.9
OS                             Linux 5.10.102.1-microsoft-standard-WSL2 #1 SMP Wed Mar 2 00:30:59 UTC 2022
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Module versions

PS /> Get-Module Az*

ModuleType Version    PreRelease Name                                ExportedCommands
---------- -------    ---------- ----                                ----------------
Script     2.13.2                Az.Accounts                         {Add-AzEnvironment, Clear-AzConfig, Clear-AzContext, Clear-AzDefault…}
Script     6.0.0                 Az.Aks                              {Disable-AzAksAddOn, Enable-AzAksAddOn, Get-AzAksCluster, Get-AzAksNodePool…}
Script     2.0.0                 Az.StreamAnalytics                  {Get-AzStreamAnalyticsCluster, Get-AzStreamAnalyticsClusterStreamingJob, Get-AzStreamAnalyticsDefaultFunctionDefinition, Get-AzStreamAnalyticsFunction…}

Error output

No response

isra-fel commented 10 months ago

@dolauli please input your findings here.

dolauli commented 10 months ago

"x-ms-request-id" in the response header is used for "x-ms-client-request-id" is used in the telemetry.

https://github.com/Azure/azure-powershell/blob/60ec2dfdae5e2535bd16614ee84628d1e6892734/src/Accounts/Accounts/CommonModule/AzModule.cs#L188-L195