Closed
Description
Add a default User-Agent header. This will allow telemetry to be collected and help build a case for making this SDK more official.
User-Agent: <product> / <product-version> <comment>
User-Agent: Mozilla/5.0 (<system-information>) <platform> (<platform-details>) <extensions>
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36
.NET
https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/src/Pipeline/Internal/TelemetryPolicy.cs
https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/avs/Microsoft.Azure.Management.Avs/tests/SessionRecords/AvsTests/AvsCrud.json#L15-L20
"User-Agent": [
"FxVersion/4.6.28928.01",
"OSName/Windows",
"OSVersion/Microsoft.Windows.10.0.19041.",
"Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0"
],
Python
From the az cli:
'User-Agent': 'python/3.6.6 (Windows-10-10.0.19041-SP0) msrest/0.6.13 msrest_azure/0.6.3 avsclient/2020-03-20 Azure-SDK-For-Python AZURECLI/2.5.0 (MSI)'