-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Report LSP loading telemetry #75402
Report LSP loading telemetry #75402
Conversation
a4ea1df
to
23bd767
Compare
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 |
b195efa
to
478a0e8
Compare
it always gets posted
478a0e8
to
47eac67
Compare
@JoeRobich @ToddGrun ready for review, I suggest commit at a time |
...nguageServer/Microsoft.CodeAnalysis.LanguageServer/Telemetry/VSCodeRequestTelemetryLogger.cs
Outdated
Show resolved
Hide resolved
src/VisualStudio/Core/Def/Telemetry/Shared/AbstractAggregatingLog.cs
Outdated
Show resolved
Hide resolved
var metricName = usedForkedSolution ? "ForkedCount" : "NonForkedCount"; | ||
TelemetryLogging.LogAggregatedCounter(FunctionId.LSP_UsedForkedSolution, KeyValueLogMessage.Create(m => | ||
{ | ||
m[TelemetryLogging.KeyName] = ServerTypeName + "." + metricName; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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
src/LanguageServer/Protocol/Handler/Telemetry/RequestTelemetryLogger.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.