Skip to content

Telemetry: log command execution time#165599

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

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

Conversation

@laurentlb

Copy link
Copy Markdown
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.

@jrieken jrieken left a comment

Copy link
Copy Markdown
Contributor

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.

Comment thread src/vs/workbench/api/common/extHostCommands.ts Outdated
Comment thread src/vs/workbench/api/common/extHostCommands.ts Outdated
- use try/finally
- mark telemetry as measurement
@jrieken

jrieken commented Nov 8, 2022

Copy link
Copy Markdown
Contributor

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