Add telemetry for Python on Jupyter server startup (#19970)

* add telemetry for python on jupyter server startup

* remove extra lines
This commit is contained in:
Lucy Zhang
2022-07-11 12:20:22 -07:00
committed by GitHub
parent 2265144909
commit b8435a67df
4 changed files with 28 additions and 15 deletions

View File

@@ -16,6 +16,7 @@ import { IServerInstance } from './common';
import { JupyterServerInstallation } from './jupyterServerInstallation';
import * as utils from '../common/utils';
import * as constants from '../common/constants';
import { sendNotebookActionEvent, NbTelemetryView, NbTelemetryAction } from '../telemetry';
const NotebookConfigFilename = 'jupyter_notebook_config.py';
const CustomJsFilename = 'custom.js';
@@ -218,6 +219,7 @@ export class PerFolderServerInstance implements IServerInstance {
// Execute the command
await this.executeStartCommand(startCommand);
sendNotebookActionEvent(NbTelemetryView.Jupyter, NbTelemetryAction.JupyterServerStarted, { pythonVersion: this.options.install.installedPythonVersion, usingExistingPython: String(JupyterServerInstallation.getExistingPythonSetting()), usingConda: String(this.options.install.usingConda) });
}
private executeStartCommand(startCommand: string): Promise<void> {