-
Notifications
You must be signed in to change notification settings - Fork 409
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
fix: capture complete extension load time #5397
Conversation
@W-14915912@ add utils to capture ext host log add new function to telemetry to send additional data
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 does not work in apex debugger. It is also missed in visualforce & replay debugger.
packages/salesforcedx-utils-vscode/src/helpers/activationTrackerUtils.ts
Outdated
Show resolved
Hide resolved
@@ -61,7 +61,7 @@ | |||
], | |||
"scripts": { | |||
"bundle:extension": "npm run bundle:extension:build && npm run bundle:extension:copy", | |||
"bundle:extension:build": "esbuild ./src/extension.ts --bundle --outfile=dist/index.js --format=cjs --platform=node --external:vscode --minify", | |||
"bundle:extension:build": "esbuild ./src/extension.ts --bundle --outfile=dist/index.js --format=cjs --platform=node --external:vscode --external:@salesforce/source-tracking --external:@salesforce/core", |
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.
whoops...shouldn't have removed --minify. This was a debugging step
@@ -659,7 +658,7 @@ export async function activate(extensionContext: vscode.ExtensionContext) { | |||
} | |||
}; |
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 object is where you can add modules to expose in the API of the extension.
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.
Loving the consoladation of the TelemetryService. I do think it's the right thing to just have every extension get the TelemetryService from the core extension API. This saves us from having to add the vscode-utils package to the VF extension.
…into phale/w-14915912-update-telemetry # Conflicts: # packages/salesforcedx-vscode-core/src/index.ts
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 a couple of nits
packages/salesforcedx-utils-vscode/src/helpers/activationTracker.ts
Outdated
Show resolved
Hide resolved
packages/salesforcedx-utils-vscode/src/helpers/activationTracker.ts
Outdated
Show resolved
Hide resolved
packages/salesforcedx-utils-vscode/src/helpers/activationTrackerUtils.ts
Outdated
Show resolved
Hide resolved
…er.ts Co-authored-by: Cristina Cañizales <113132642+CristiCanizales@users.noreply.github.com>
Co-authored-by: Cristina Cañizales <113132642+CristiCanizales@users.noreply.github.com>
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!
…into phale/w-14915912-update-telemetry # Conflicts: # packages/salesforcedx-utils-vscode/src/services/telemetry.ts # packages/salesforcedx-utils-vscode/src/telemetry/reporters/appInsights.ts # packages/salesforcedx-utils-vscode/test/jest/telemetry/telemetryReporter.test.ts
…into phale/w-14915912-update-telemetry # Conflicts: # packages/salesforcedx-vscode-core/src/index.ts
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!
-- Capture the timestamp of function entry
-- Capture the timestamp of the extension activation event using util from vscode-utils
-- Time spent in activation function (this is the current data)
-- Timestamp of activate function entry
-- Timestamp of extension activation
-- Time spent for activation (activate function exit timestamp - extension activation event timestamp) in milliseconds
AC:
-- Time spent in activation function (this is the current data)
-- Timestamp of activate function entry
-- Timestamp of extension activation
-- Time spent for activation (activate function exit timestamp - extension activation event timestamp) in milliseconds
@W-14915912@