Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Report LSP loading telemetry #75402

Merged
merged 7 commits into from
Oct 15, 2024
Merged

Conversation

dibarbet
Copy link
Member

@dibarbet dibarbet commented Oct 5, 2024

For #73224

Report telemetry events at various stages of the c# devkit project load process. Also report telemetry on how often we find documents in the correct workspace before and after project load.

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Oct 5, 2024
@dibarbet dibarbet force-pushed the lsp_project_telemetry branch from a4ea1df to 23bd767 Compare October 8, 2024 18:26
@dibarbet dibarbet marked this pull request as ready for review October 8, 2024 20:19
@dibarbet dibarbet requested a review from a team as a code owner October 8, 2024 20:19
@dibarbet dibarbet marked this pull request as draft October 10, 2024 03:02
@dibarbet
Copy link
Member Author

Had to add on a bunch to fix telemetry reporting. Mostly working in VSCode but converting to draft until I can test VS. Also the telemetry structure is changing for a few events, so I need to write test queries to verify its in a compatible shape

@dibarbet dibarbet force-pushed the lsp_project_telemetry branch from b195efa to 478a0e8 Compare October 10, 2024 03:09
@dibarbet dibarbet force-pushed the lsp_project_telemetry branch from 478a0e8 to 47eac67 Compare October 10, 2024 19:30
@dibarbet dibarbet marked this pull request as ready for review October 10, 2024 19:30
@dibarbet
Copy link
Member Author

@JoeRobich @ToddGrun ready for review, I suggest commit at a time

var metricName = usedForkedSolution ? "ForkedCount" : "NonForkedCount";
TelemetryLogging.LogAggregatedCounter(FunctionId.LSP_UsedForkedSolution, KeyValueLogMessage.Create(m =>
{
m[TelemetryLogging.KeyName] = ServerTypeName + "." + metricName;
Copy link
Contributor

Choose a reason for hiding this comment

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

ServerTypeName + "." + metricName;

Should usedForkedSolution be in the name?

Copy link
Member Author

Choose a reason for hiding this comment

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

It is - see metricName on line 51

@dibarbet dibarbet requested a review from ToddGrun October 14, 2024 16:14
Copy link
Contributor

@ToddGrun ToddGrun left a comment

Choose a reason for hiding this comment

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

:shipit:

@dibarbet dibarbet enabled auto-merge October 15, 2024 01:23
@dibarbet dibarbet merged commit 97519a7 into dotnet:main Oct 15, 2024
25 checks passed
@dibarbet dibarbet deleted the lsp_project_telemetry branch October 15, 2024 16:34
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Oct 15, 2024
@akhera99 akhera99 modified the milestones: Next, 17.13 P1 Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead VSCode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants