Skip to content

Remove unreported telemetry#60321

Closed
CyrusNajmabadi wants to merge 4 commits intodotnet:mainfrom
CyrusNajmabadi:rmTelemetry
Closed

Remove unreported telemetry#60321
CyrusNajmabadi wants to merge 4 commits intodotnet:mainfrom
CyrusNajmabadi:rmTelemetry

Conversation

@CyrusNajmabadi
Copy link
Copy Markdown
Contributor

This telemetry was going into a black hole. We didn't even notice till now, so clearly it was providing zero value. Removing and reclaiming the CPU usage (as well as horizontal space) we were wasting.

@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner March 22, 2022 19:04
@CyrusNajmabadi CyrusNajmabadi requested a review from a team March 22, 2022 19:04
@ghost ghost added the Area-IDE label Mar 22, 2022
Copy link
Copy Markdown
Member

@dibarbet dibarbet left a comment

Choose a reason for hiding this comment

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

In general, not against this change, would be nice to not have to understand which events go to telemetry and which done.

But there might be some diagnostic events here that @mavasani was using for feedback tickets via this logger - https://sourceroslyn.io/#Microsoft.VisualStudio.LanguageServices/Telemetry/FileLogger.cs,21

These events could also be recorded via etwlogger / codemarkerlogger - not sure how important those are.

@CyrusNajmabadi
Copy link
Copy Markdown
Contributor Author

If so, i'd rather those features explicitly use such a logger in a clearly defined fashion. right now there's just no wy to tell from looking at things what the purpose of the calls are, and i know i've certainly created/maintained many telemetry markers with the expectation that they were actually getting reported and that we'd be able to see how things changed over time.

@dibarbet
Copy link
Copy Markdown
Member

If so, i'd rather those features explicitly use such a logger in a clearly defined fashion. right now there's just no wy to tell from looking at things what the purpose of the calls are, and i know i've certainly created/maintained many telemetry markers with the expectation that they were actually getting reported and that we'd be able to see how things changed over time.

Yeah I wonder if our ILogger abstraction is hurting a bit here - it almost seems like we want the log calls themselves ot be explicit in where they log (either telemetry, etw, file diagnostics, etc).

@davidwengier
Copy link
Copy Markdown
Member

Seems like a perfectly reasonable design to me for log messages to declare their verbosity, and loggers to decide which verbosities they care about.

I do think it would be great if the verbosity of the logger was smarter, and could be dialed up or down remotely, or when doing Report a Problem, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants