-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Remove UTC and SQM telemetry code #4190
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 cl 8000 icking “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 UTC and SQM telemetry code #4190
Conversation
@@ -44,8 +46,12 @@ internal sealed partial class ConsoleHost | ||
: | ||
PSHost, | ||
IDisposable, | ||
#if LEGACYTELEMETRY | ||
IHostSupportsInteractiveSession, | ||
IHostProvidesTelemetryData |
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.
Can you rearrange the order to avoid the #else
?
This is done via `#if LEGACYTELEMETRY` to make it easier to bring back at a later time
remove the #else so it's a little cleaner
ee63f52
to
f91ec0b
Compare
@@ -44,8 +46,12 @@ internal sealed partial class ConsoleHost | |||
: | |||
PSHost, | |||
IDisposable, | |||
IHostSupportsInteractiveSession |
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.
I think this should be:
#if LEGACYTELEMETRY
IHostProvidesTelemetryData,
#endif
IHostSupportsInteractiveSession
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.
LGTM
The old telemetry implementation are still kept in code base (PSTelemetryMethods.cs, PSTelemetryWrapper.cs). Shall we delete them in this PR? |
@daxian-dbw current thinking is to keep it for now. We'll likely add more telemetry in 6.1.0 and we can see what we can reuse from the old telemetry and clean up the code completely at that time. |
Implementation of #3807
The historical telemetry code uses WindowsUTC which is not applicable to non-Windows platforms and is superseded by our ApplicationInsight telemetry.
#if LEGACYTELEMETRY
was used to make it easier to track when we add our next round of telemetry.Change should not be visible to the user, unless they were inspecting the eventlog looking for it. Any SQM telemetry appears to have been disabled in June 2016.