-
Notifications
You must be signed in to change notification settings - Fork 34.7k
Telemetry Command #76029
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
Telemetry Command #76029
Conversation
@joaomoreno please review the build pipeline changes. |
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 reduce duplication by deferring to script(s) in ./build/azure-pipelines
?
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, feel free to defer the code duplication if you're sure it's good.
Deferring to scripts is good but I won't have adequate testing in time for it to get into the June milestone, so I will look into it for the July one as I know this works and don't want to break anything |
@lramos15 @Tyriar @sbatten I have a few questions:
|
node ./out/cli-extract-extensions.js --sourceDir ./src/telemetry-sources/ --outputDir . --applyEndpoints --includeIsMeasurement | ||
mv declarations-resolved.json ../s/src/telemetry-core.json | ||
mv declarations-extensions-resolved.json ../s/src/telemetry-extensions.json | ||
echo 'Moved Files' |
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.
This should just be removed.
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 Darwin doesn't need a specific build script?
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 mean the echo
. 👍
mergeTelemetry(contents, 'vscode-extensions'); | ||
return JSON.stringify(mergedTelemetry, null, 4); | ||
} catch (err) { | ||
return 'Unable to read VS Code telemetry events!'; |
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.
Just remove the whole try catch
block and let the actual error bubble up and be printed to the console.
I've talked to @kieferrm about this and he helped me understand this better. Answering my own questions:
I'd still highly recommend publishing https://github.com/microsoft/vscode-telemetry-extractor to NPM and locking it in our yarn.lock file. |
Yeah sorry for not explaining it well. Ideally we would only compute this once and copy it somehow to all the platforms, but since each platform is run in parallel I wasn't sure how to accomplish that. You are correct that it should be an NPM package, but the telemetry extractor is not open source yet so the plan was to hold off on releasing an NPM package until the tool was open sourced. |
Then let's lock the clone to a specific commit ID for now. |
@@ -13,6 +13,7 @@ export interface ParsedArgs { | |||
_urls?: string[]; | |||
help?: boolean; | |||
version?: boolean; | |||
telemetry?: boolean; |
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.
@lramos15 shouldn't break anything but missed this arg when removing the command
@@ -62,6 +62,8 @@ const vscodeResources = [ | |||
'out-build/bootstrap-amd.js', | |||
'out-build/bootstrap-window.js', | |||
'out-build/paths.js', | |||
'out-build/telemetry-core.json', | |||
'out-build/telemetry-extensions.json', |
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.
@lramos15 I noticed this code isn't in master anymore but it wasn't removed during the PR to remove the command. What happened to it?
Adds a
--telemetry
command to the VS Code CLI which dumps all the the telemetry events which VS Code collects.