Skip to content

Conversation

@fengzhou-msft
Copy link
Member

@fengzhou-msft fengzhou-msft commented Apr 8, 2021

Description

Existing code will only add Context.Default.AzureCLI.ExtensionManagementDetail after the extension is installed. This PR extracts extension name and version from source url and add to telemetry so that these data will be sent by telemetry even when the install of extension fails.

Testing Guide

In a virtual env, downgrade pip: python -m pip -U pip==18.0.

Run az extension add -s https://azurecliext.blob.core.windows.net/release/azure_cli_ml-1.21.0-py3-none-any.whl -y.

The install will fail, check the telemetry record in ~/.azure/telemetry/cache, you should see "Context.Default.AzureCLI.ExtensionManagementDetail": "[email protected]".

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change.
[Component Name 2] az command b: Add some customer-facing feature.


This checklist is used to make sure that common guidelines for a pull request are followed.

@fengzhou-msft fengzhou-msft requested a review from msyyc as a code owner April 8, 2021 06:59
@fengzhou-msft fengzhou-msft self-assigned this Apr 8, 2021
@fengzhou-msft fengzhou-msft added this to the S185 milestone Apr 8, 2021
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

version may be None, the information will be overwritten if the extension is resolved from index. If before that, the command exits, then the information set here can be useful.

@yonzhan yonzhan requested a review from jiasli April 8, 2021 07:54
@fengzhou-msft fengzhou-msft force-pushed the add_telemetry_when_extension_install_fail branch from 5dd85b0 to bf61c81 Compare April 8, 2021 08:49
@fengzhou-msft fengzhou-msft merged commit a9e5c85 into Azure:dev Apr 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants