-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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
Remove conhost telemetry #16253
Remove conhost telemetry #16253
Conversation
@@ -428,11 +428,6 @@ HRESULT ConsoleCreateIoThread(_In_ HANDLE Server, | |||
[[maybe_unused]] PCONSOLE_API_MSG connectMessage) | |||
try | |||
{ | |||
// Create a telemetry instance here - this singleton is responsible for | |||
// setting up the g_hConhostV2EventTraceProvider, which is otherwise not |
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.
who sets this up now?
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.
So... about that TraceLoggingRegister
call...
mhm
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.
yup!
How did you notice?
src/server/ApiDispatchers.cpp
Outdated
break; | ||
case CONSOLE_REAL_UNICODE: | ||
case CONSOLE_FALSE_UNICODE: | ||
Telemetry::Instance().LogApiCall(Telemetry::ApiCall::ReadConsoleOutputCharacter, true); | ||
break; | ||
} | ||
|
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.
wait somebody's gonna find this in the future and choke on their Soylent
switch (a->StringType)
{
case 1:
break;
case 2:
break;
case 3:
break;
}
complicated no-op. it keeps our enemies off our trail
src/server/ApiDispatchers.cpp
Outdated
@@ -428,14 +419,11 @@ static DWORD TraceGetThreadId(CONSOLE_API_MSG* const m) | |||
switch (a->ElementType) | |||
{ | |||
case CONSOLE_ATTRIBUTE: |
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.
same as below
src/server/ApiDispatchers.cpp
Outdated
} | ||
else | ||
{ | ||
Telemetry::Instance().LogApiCall(Telemetry::ApiCall::ReadConsoleInput, a->Unicode); | ||
} |
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.
rolling on the floor at this point
The
Telemetry
class was implemented as a singleton which stood inmy long-term goal to remove all global variables from the project.
Most telemetry captured by it hasn't been looked at for a long time
and just as much is now pointless (e.g.,
_fCtrlPgUpPgDnUsed
).This removes the code.
Validation Steps Performed