Skip to content

Telemetry: log command execution time#165599

Merged
jrieken merged 2 commits intomicrosoft:mainfrom
laurentlb:telemetry
Nov 8, 2022
Merged

Telemetry: log command execution time#165599
jrieken merged 2 commits intomicrosoft:mainfrom
laurentlb:telemetry

Conversation

@laurentlb
Copy link
Contributor

Monitoring execution time can be useful when investigating performance issues and detecting performance regressions.

VS Code already logs the extension activation times (ExtensionActivationTimesClassification). Logging command execution times seems consistent.

Monitoring execution time can be useful when investigating performance issues and detecting performance regressions.

VS Code already logs the extension activation times (ExtensionActivationTimesClassification). Logging command execution times seems consistent.
Copy link
Member

@jrieken jrieken left a comment

Choose a reason for hiding this comment

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

Thanks!

Fixing the classification is important, the nit is optional.

- use try/finally
- mark telemetry as measurement
@jrieken
Copy link
Member

jrieken commented Nov 8, 2022

Thanks @laurentlb

@jrieken jrieken merged commit 57f489b into microsoft:main Nov 8, 2022
@aeschli aeschli added this to the November 2022 milestone Dec 6, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Dec 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants