microsoft / vscode-azureapicenter

MIT License
17 stars 13 forks source link

feat: add telemetry for dataplane #238

Closed wenytang-ms closed 2 months ago

wenytang-ms commented 2 months ago

For data plane, telemetry properties contains runtime url, client id and tenant id. Events:

codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 63.07692% with 24 lines in your changes missing coverage. Please review.

Project coverage is 45.03%. Comparing base (9ff2c47) to head (6040fef). Report is 1 commits behind head on dev.

Files with missing lines Patch % Lines
src/commands/addDataPlaneApis.ts 37.14% 22 Missing :warning:
src/extension.ts 0.00% 2 Missing :warning:
Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/microsoft/vscode-azureapicenter/pull/238/graphs/tree.svg?width=650&height=150&src=pr&token=TIJgHIZNDD&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=microsoft)](https://app.codecov.io/gh/microsoft/vscode-azureapicenter/pull/238?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=microsoft) ```diff @@ Coverage Diff @@ ## dev #238 +/- ## ========================================== + Coverage 43.85% 45.03% +1.18% ========================================== Files 92 92 Lines 5774 5813 +39 Branches 146 152 +6 ========================================== + Hits 2532 2618 +86 + Misses 3241 3193 -48 - Partials 1 2 +1 ``` | [Files with missing lines](https://app.codecov.io/gh/microsoft/vscode-azureapicenter/pull/238?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=microsoft) | Coverage Δ | | |---|---|---| | [src/commands/handleUri.ts](https://app.codecov.io/gh/microsoft/vscode-azureapicenter/pull/238?src=pr&el=tree&filepath=src%2Fcommands%2FhandleUri.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=microsoft#diff-c3JjL2NvbW1hbmRzL2hhbmRsZVVyaS50cw==) | `100.00% <100.00%> (ø)` | | | [src/common/telemetryEvent.ts](https://app.codecov.io/gh/microsoft/vscode-azureapicenter/pull/238?src=pr&el=tree&filepath=src%2Fcommon%2FtelemetryEvent.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=microsoft#diff-c3JjL2NvbW1vbi90ZWxlbWV0cnlFdmVudC50cw==) | `100.00% <100.00%> (ø)` | | | [src/tree/DataPlaneAccount.ts](https://app.codecov.io/gh/microsoft/vscode-azureapicenter/pull/238?src=pr&el=tree&filepath=src%2Ftree%2FDataPlaneAccount.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=microsoft#diff-c3JjL3RyZWUvRGF0YVBsYW5lQWNjb3VudC50cw==) | `64.46% <100.00%> (+27.94%)` | :arrow_up: | | [src/utils/telemetryUtils.ts](https://app.codecov.io/gh/microsoft/vscode-azureapicenter/pull/238?src=pr&el=tree&filepath=src%2Futils%2FtelemetryUtils.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=microsoft#diff-c3JjL3V0aWxzL3RlbGVtZXRyeVV0aWxzLnRz) | `100.00% <100.00%> (ø)` | | | [src/extension.ts](https://app.codecov.io/gh/microsoft/vscode-azureapicenter/pull/238?src=pr&el=tree&filepath=src%2Fextension.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=microsoft#diff-c3JjL2V4dGVuc2lvbi50cw==) | `0.00% <0.00%> (ø)` | | | [src/commands/addDataPlaneApis.ts](https://app.codecov.io/gh/microsoft/vscode-azureapicenter/pull/238?src=pr&el=tree&filepath=src%2Fcommands%2FaddDataPlaneApis.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=microsoft#diff-c3JjL2NvbW1hbmRzL2FkZERhdGFQbGFuZUFwaXMudHM=) | `46.80% <37.14%> (+23.27%)` | :arrow_up: | ... and [3 files with indirect coverage changes](https://app.codecov.io/gh/microsoft/vscode-azureapicenter/pull/238/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=microsoft)