Skip to content

Commit 12bf134

Browse files
committed
Add telemetry for language server OutOfMemory events.
Signed-off-by: Roland Grunberg <[email protected]>
1 parent edf98a9 commit 12bf134

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

USAGE_DATA.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ vscode-java has opt-in telemetry collection, provided by [vscode-redhat-telemetr
2323
* The extension name and the choice made when a recommendation to install a 3rd party extension is proposed
2424
* The name of Java commands being manually executed, and any resulting errors
2525
* The number of results (eg. 20), whether an error occured (eg. false), and duration (in milliseconds) when code assist is activated
26+
* Whether the language server ran out of memory and the maximum allocated memory at which that occured (eg. 200m)
2627

2728
## What's included in the general telemetry data
2829

src/extension.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,6 +1160,9 @@ function registerOutOfMemoryDetection(storagePath: string) {
11601160
maxMem: getMaxMemFromConfiguration(true),
11611161
}
11621162
});
1163+
Telemetry.sendTelemetry("java.process.outofmemory", {
1164+
maxMem: getMaxMemFromConfiguration(true),
1165+
});
11631166
showOOMMessage();
11641167
serverStatusBarProvider.setError();
11651168
activationProgressNotification.hide();

0 commit comments

Comments
 (0)