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 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 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

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:

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