Skip to content

Commit cdbfb77

Browse files
authored
Update telemetry property name for Jedi memory use (microsoft#6612)
1 parent 98dd5e6 commit cdbfb77

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

news/2 Fixes/6339.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Update telemetry property name for Jedi memory usage.

src/client/providers/jediProxy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ export class JediProxy implements Disposable {
285285
if (result && result.memory) {
286286
restartJedi = result.memory > limit * 1024 * 1024;
287287
const props = {
288-
memory: result.memory,
288+
mem_use: result.memory,
289289
limit: limit * 1024 * 1024,
290290
isUserDefinedLimit: limit !== 1024,
291291
restart: restartJedi

src/client/telemetry/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,12 +411,12 @@ export interface IEventNamePropertyMapping {
411411
[Telemetry.WebviewStyleUpdate]: never | undefined;
412412
/*
413413
Telemetry event sent with details of Jedi Memory usage.
414-
memory - Memory usage of Process in kb.
414+
mem_use - Memory usage of Process in kb.
415415
limit - Upper bound for memory usage of Jedi process.
416416
isUserDefinedLimit - Whether the user has configfured the upper bound limit.
417417
restart - Whether to restart the Jedi Process (i.e. memory > limit).
418418
*/
419-
[EventName.JEDI_MEMORY]: { memory: number; limit: number; isUserDefinedLimit: boolean; restart: boolean };
419+
[EventName.JEDI_MEMORY]: { mem_use: number; limit: number; isUserDefinedLimit: boolean; restart: boolean };
420420
/*
421421
Telemetry event sent to provide information on whether we have successfully identify the type of shell used.
422422
This information is useful in determining how well we identify shells on users machines.

0 commit comments

Comments
 (0)