Skip to content

Commit

Permalink
Add missing telemetry for REPL (microsoft#23591)
Browse files Browse the repository at this point in the history
add missing telemetry for REPL that should have been attached
Resolves: microsoft#23590
  • Loading branch information
anthonykim1 authored and eleanorjboyd committed Jun 28, 2024
1 parent 0d91c1c commit e92bbb3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/client/repl/pythonServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import * as rpc from 'vscode-jsonrpc/node';
import { Disposable, window } from 'vscode';
import { EXTENSION_ROOT_DIR } from '../constants';
import { traceError, traceLog } from '../logging';
import { captureTelemetry } from '../telemetry';
import { EventName } from '../telemetry/constants';

const SERVER_PATH = path.join(EXTENSION_ROOT_DIR, 'python_files', 'python_server.py');
let serverInstance: PythonServer | undefined;
Expand Down Expand Up @@ -49,6 +51,7 @@ class PythonServerImpl implements Disposable {
});
}

@captureTelemetry(EventName.EXECUTION_CODE, { scope: 'selection' }, false)
public execute(code: string): Promise<string> {
return this.connection.sendRequest('execute', code);
}
Expand Down

0 comments on commit e92bbb3

Please sign in to comment.