Skip to content
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

Merged
merged 2 commits into from
Feb 10, 2021

Conversation

IanMatthewHuff
Copy link
Member

For #4649

  • Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR).
  • Title summarizes what is changing.
  • Has a news entry file (remember to thank yourself!).
  • Appropriate comments and documentation strings in the code.
  • Has sufficient logging.
  • Has telemetry for enhancements.
  • Unit tests & system/integration tests are added/updated.
  • Test plan is updated as appropriate.
  • package-lock.json has been regenerated by running npm install (if dependencies have changed).

@IanMatthewHuff
Copy link
Member Author

IanMatthewHuff commented Feb 10, 2021

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)
Copy link
Member Author

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, {
Copy link
Member Author

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.

@IanMatthewHuff IanMatthewHuff marked this pull request as ready for review February 10, 2021 18:21
@IanMatthewHuff IanMatthewHuff requested a review from a team as a code owner February 10, 2021 18:21
@codecov-io
Copy link

Codecov Report

Merging #4740 (2c181b1) into main (85d3303) will increase coverage by 0%.
The diff coverage is 100%.

@@          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     
Impacted Files Coverage Δ
src/client/telemetry/index.ts 77% <ø> (ø)
src/client/datascience/constants.ts 99% <100%> (+<1%) ⬆️
...c/client/datascience/variablesView/variableView.ts 76% <100%> (+<1%) ⬆️
...t/common/application/webviewPanels/webviewPanel.ts 70% <0%> (-8%) ⬇️
...t/datascience/notebook/helpers/executionHelpers.ts 68% <0%> (-4%) ⬇️
src/client/datascience/notebook/helpers/helpers.ts 71% <0%> (-3%) ⬇️
src/client/datascience/raw-kernel/rawSocket.ts 84% <0%> (-2%) ⬇️
src/client/datascience/jupyter/kernels/kernel.ts 83% <0%> (+<1%) ⬆️
...lient/datascience/jupyter/kernels/cellExecution.ts 77% <0%> (+<1%) ⬆️
src/client/datascience/jupyter/kernels/helpers.ts 64% <0%> (+<1%) ⬆️
... and 13 more

@IanMatthewHuff
Copy link
Member Author

Failure looks like the kernel switch flake issue.

@IanMatthewHuff IanMatthewHuff merged commit 656e138 into main Feb 10, 2021
@IanMatthewHuff IanMatthewHuff deleted the dev/ianhu/variableTelemetry branch February 10, 2021 19:45
DonJayamanne pushed a commit that referenced this pull request Feb 11, 2021
Co-authored-by: Ian Huff <ianhuff@Ians-MacBook-Pro.local>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants