-
Notifications
You must be signed in to change notification settings - Fork 293
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
new UI side telemetry events for variable view #4740
Conversation
The JupyterVariables interface has some telemetry that was already hooked up and working. But on checking added some UI side telemetry for the new variable view. |
@@ -82,6 +82,7 @@ export class VariableView extends WebviewViewHost<IVariableViewPanelMapping> imp | |||
this.dataViewerChecker = new DataViewerChecker(configuration, appShell); | |||
} | |||
|
|||
@captureTelemetry(Telemetry.NativeVariableViewLoaded) |
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 seemed extra useful as we are not using retain context on the webview. Means that it gets loaded fairly often. Here to make sure that this is not taking too long.
@@ -182,6 +184,9 @@ export class VariableView extends WebviewViewHost<IVariableViewPanelMapping> imp | |||
const response = await this.variables.getVariables(args, this.notebookWatcher.activeNotebook); | |||
|
|||
this.postMessage(InteractiveWindowMessages.GetVariablesResponse, response).ignoreErrors(); | |||
sendTelemetryEvent(Telemetry.VariableExplorerVariableCount, undefined, { |
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 is same event in the same spot as with the old webviews, lets us see how many variables we are fetching.
Codecov Report
@@ Coverage Diff @@
## main #4740 +/- ##
=====================================
Coverage 76% 76%
=====================================
Files 400 400
Lines 26254 26258 +4
Branches 3768 3768
=====================================
+ Hits 20096 20144 +48
+ Misses 4597 4561 -36
+ Partials 1561 1553 -8
|
Failure looks like the kernel switch flake issue. |
Co-authored-by: Ian Huff <ianhuff@Ians-MacBook-Pro.local>
For #4649
package-lock.json
has been regenerated by runningnpm install
(if dependencies have changed).