Skip to content

Commit 78449a3

Browse files
authored
Merge pull request #409 from sid-srini/update-telemetry-consent-messages
Updating telemetry consent messages
2 parents 2051a4b + eb9d4f6 commit 78449a3

File tree

9 files changed

+81
-8
lines changed

9 files changed

+81
-8
lines changed

vscode/TELEMETRY.md

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# About Oracle Java Platform Extension for Visual Studio Code use of Telemetry
2+
## First Your Privacy and Anonymity
3+
4+
During startup, close or usage of the Oracle Java Platform extension for Visual Studio Code (hereafter referred to as "JVSCE"), Oracle does not collect or track any personally identifiable information (such as names or email addresses) about you or your source code, or associate your usage of JVSCE with personally identifiable data.
5+
6+
If you choose to enable telemetry collection in JVSCE, we will collect a limited set of information that is not personally identifiable. It is anonymous technical data commonly known as "telemetry". An element-by-element description of what is collected and how it helps us, [is listed below](#specifics-about-java-extension-usage-metrics).
7+
8+
We do not transmit your source code nor the contents of the files you edit with Visual Studio Code.
9+
10+
## We Collect this Data to Measure Our Own Performance, Diagnose Problems, and Improve Your Experience
11+
The purpose of the telemetry transmitted to Oracle during the JVSCE startup, close, or usage, is to find any technical problems or anomalies that occur, so we can understand and correct them; as well as, to understand the usage of Java versions and language features, so we can help improve the platform. It's similar to a car mechanic's practice of plugging into your engine's diagnostic port to identify performance issues (not to identify the car's owner!). The issues we identify could be anything from slow performance or missing platforms for JDK builds to adoption of popular Java language capabilities. Your source code, privacy and anonymity are not compromised by our collecting this telemetry. The information thus collected helps to improve the extension experience and the Java platform.
12+
13+
## If You Would Like to Enable or Disable the Collection of this Data
14+
If you have not already made a choice for this setting, the extension might request that you enable Telemetry via a notification pop-up at the time of activation of the extension.
15+
16+
If you wish to enable or disable the collection and transmission of the telemetry, you may do so from VS Code Settings → [jdk.telemetry.enabled](vscode://settings/jdk.telemetry.enabled).
17+
18+
No information is sent to Oracle prior to you enabling Telemetry.
19+
20+
# Specifics About Java Extension Usage Metrics
21+
## WHO Sends Information to Oracle?
22+
We, the authors of the JVSCE, collect and send information from the Java extension, when it is running in VS Code, only for users who consent to its collection.
23+
24+
## HOW Is Information Sent to Oracle?
25+
Small JSON messages are transported via a secure HTTPS connection over the Internet.
26+
27+
## WHEN Is Information Sent to Oracle?
28+
Information may be sent in one or more separate messages, depending on the events reported by JVSCE.
29+
30+
The following types of messages may be sent if users have consented to telemetry from JVSCE:
31+
1. Start
32+
- When a JVSCE instance is launched in a window, a "Start" event is sent.
33+
- This contains information about the version, language, architecture etc. of JVSCE, VSCode and the OS.
34+
2. Close
35+
- When a JVSCE instance is closed in a window, a "Close" event is sent.
36+
- This contains timing information for the session.
37+
3. Workspace Change
38+
- When a workspace is loaded for which JVSCE is active, a "Workspace Change" event is sent.
39+
- This contains information about the Java version used, build tool used, and performance times.
40+
4. JDK Download
41+
- When a JDK is downloaded and installed using JVSCE, a "JDK Download" event is sent.
42+
- This contains information about the Java version downloaded.
43+
5. JDK Feature
44+
- A "JDK Feature" event is sent when certain Java language features, such as `records`, `switch-expressions`, `pattern-matching` etc., or, functionality introduced in [JEPs](https://openjdk.org/jeps/0), is used while editing a Java file.
45+
- This contains information about the Java version in use and the feature names or JEP numbers used.
46+
47+
## WHAT Information is Sent to Oracle?
48+
Some or all of the following information may be sent to Oracle depending on the type of event triggered:
49+
50+
| Event | Data Name | Value Description |
51+
|-------|----------------|--------------------------------------------------------------|
52+
| _ALL_ | VsCodeId | Anonymous machine identifier generated by VS Code. <br>It cannot be used to track the IP address or identity of the user. <br>Example: `9c5aa07a61ed54bbf61705d17bd214ef269bbed8d5a557ba9e50658b31ffae79` |
53+
| _ALL_ | VscSessionId | Anonymous session identifier generated by VS Code. <br>It cannot be used to track the IP address or identity of the user. <br>Example: `15cf5498-7981-45af-aca3-34e0fa6e906c1716187959345` |
54+
| Start | ExtensionInfo | JVSCE information like extension name, id and version. <br>Example: `Oracle.oracle-java`, `oracle-java`, `23.1.0` |
55+
| Start | VsCodeInfo | VS Code related information like version, language and host-type. <br>Example: `1.97.2`, `en`, `desktop` |
56+
| Start | PlatformInfo | Host platform/OS information like os name, architecture and version. <br>Example: `mac`, `arm64`, `14.6` |
57+
| Start | LocationInfo | Platform location information like language-region and time-zone. <br>Example: `en-US`, `Asia/Jakarta` |
58+
| Close | SessionTime | Indicates the time for which JVSCE was active in a session. |
59+
| Workspace Change | Timing Info | Indicates performance information like the time taken to initialise the language server and the time taken to parse and load the project information |
60+
| Workspace Change | ProjectInfo | Indicates project-related Java and JVSCE information like an anonymous project identifier, Java version, Java VM name, Java preview-feature enablement, build tool and whether project loading had problems. <br>The identifier cannot be used to track the IP address or identity of the user. <br>Example: `[{"id": "02a4eb67236abe93d137136be01f1372b8372e2230896932ef25267df32b4f52", "buildTool": "MavenProject", "isOpenedWithProblems": false, "javaVersion": "21.0.6+8-LTS-jvmci-23.1-b59;Oracle GraalVM 21.0.6+8.1;Java HotSpot(TM) 64-Bit Server VM", "isPreviewEnabled": false}]` |
61+
| JDK Download | Vendor | Indicates the vendor of the JDK downloaded using JVSCE. <br>Example: `OracleJDK` |
62+
| JDK Download | Version | Indicates the version of the JDK downloaded. <br>Example: `21` |
63+
| JDK Download | Platform | Indicates the OS name and architecture of the downloaded JDK. <br>Example: `windows`, `x64` |
64+
| JDK Download | Timing Info | Indicates the time taken to download the JDK. |
65+
| JDK Feature | JEPs | Indicates the Java language features used as denoted by their [JEP numbers](https://openjdk.org/jeps/0). <br>Example: `[477, 395, 394]` |
66+
| JDK Feature | Features | Indicates the Java language features used as denoted by their common names. <br>Example: `["RECORDS", "SWITCH_RULE", "PATTERN_MATCHING_IN_INSTANCEOF"]` |
67+
| JDK Feature | Version | Indicates the Java version and enablement of Java preview-features. <br>Example: `23.0.2+7-58`, `"isPreviewEnabled": true` |
68+
69+
See information on [Oracle Privacy Policies](https://www.oracle.com/legal/privacy/).

vscode/l10n/bundle.l10n.en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,5 +96,5 @@
9696
"jdk.workspace.new.prompt": "Input the directory path where the new file will be generated",
9797
"jdk.extension.utils.error_message.failedHttpsRequest": "Failed to get {url} ({statusCode})",
9898
"jdk.extension.error_msg.notEnabled": "{SERVER_NAME} not enabled",
99-
"jdk.telemetry.consent": "Do you want to enable telemetry for {extensionName} extension? You may opt-out or in at any time from the Settings for jdk.telemetry.enabled."
99+
"jdk.telemetry.consent": "Allow anonymous telemetry data to be reported to Oracle? You may opt-out or in at any time from the Settings for jdk.telemetry.enabled."
100100
}

vscode/l10n/bundle.l10n.ja.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,5 +96,5 @@
9696
"jdk.workspace.new.prompt": "新しいファイルを生成するディレクトリのパスを入力してください",
9797
"jdk.extension.utils.error_message.failedHttpsRequest": "{url}の取得に失敗しました({statusCode})",
9898
"jdk.extension.error_msg.notEnabled": "{SERVER_NAME}が有効化されていません",
99-
"jdk.telemetry.consent": "Do you want to enable telemetry for {extensionName} extension? You may opt-out or in at any time from the Settings for jdk.telemetry.enabled."
99+
"jdk.telemetry.consent": "Allow anonymous telemetry data to be reported to Oracle? You may opt-out or in at any time from the Settings for jdk.telemetry.enabled."
100100
}

vscode/l10n/bundle.l10n.zh-cn.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,5 +96,5 @@
9696
"jdk.workspace.new.prompt": "输入生成新文件的目录路径",
9797
"jdk.extension.utils.error_message.failedHttpsRequest": "无法获取 {url} ({statusCode})",
9898
"jdk.extension.error_msg.notEnabled": "{SERVER_NAME} 未启用",
99-
"jdk.telemetry.consent": "Do you want to enable telemetry for {extensionName} extension? You may opt-out or in at any time from the Settings for jdk.telemetry.enabled."
99+
"jdk.telemetry.consent": "Allow anonymous telemetry data to be reported to Oracle? You may opt-out or in at any time from the Settings for jdk.telemetry.enabled."
100100
}

vscode/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,9 +245,10 @@
245245
"jdk.telemetry.enabled": {
246246
"type": "boolean",
247247
"description": "%jdk.configuration.telemetry.enabled.description%",
248+
"markdownDescription": "%jdk.configuration.telemetry.enabled.markdownDescription%",
248249
"default": false,
249250
"tags": [
250-
"telemetry"
251+
"telemetry"
251252
]
252253
}
253254
}

vscode/package.nls.ja.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646
"jdk.configuration.runConfig.cwd.description": "作業ディレクトリ",
4747
"jdk.configuration.disableNbJavac.description": "拡張オプション: nb-javacライブラリを無効化すると、選択したJDKからのjavacが使用されます。選択したJDKは少なくともJDK 23である必要があります。",
4848
"jdk.configuration.disableProjectSearchLimit.description": "拡張オプション: プロジェクト情報が含まれているフォルダの検索に対する制限を無効化します。",
49-
"jdk.configuration.telemetry.enabled.description": "Allow the Oracle Java Visual Studio Code extension to collect and send usage data to Oracle servers to help improve the Java platform support. No personal information nor source code is collected. You may refer to our general privacy policy at https://www.oracle.com/legal/privacy/services-privacy-policy/",
49+
"jdk.configuration.telemetry.enabled.description": "Allow the Oracle Java extension for Visual Studio Code (\"JVSCE\") to collect and send anonymous technical data commonly known as \"telemetry data\" to Oracle to help improve the Java platform. No personal information nor source code is collected. You may refer to the data collection and privacy policy for JVSCE at https://github.com/oracle/javavscode/blob/main/vscode/TELEMETRY.md",
50+
"jdk.configuration.telemetry.enabled.markdownDescription": "Allow the Oracle Java extension for Visual Studio Code (\"*JVSCE*\") to collect and send anonymous technical data commonly known as \"*telemetry data*\" to Oracle to help improve the Java platform. No personal information nor source code is collected. You may refer to the data collection and privacy policy for JVSCE at [TELEMETRY.md](https://github.com/oracle/javavscode/blob/main/vscode/TELEMETRY.md).",
5051
"jdk.debugger.configuration.mainClass.markdownDescription": "Main class specification. Supported formats:\n - an absolute path\n - a path relative to any of the workspace folders\n - a fully qualified name of a class.",
5152
"jdk.debugger.configuration.classPaths.description": "JVMの起動のためのクラスパス。",
5253
"jdk.debugger.configuration.console.description": "プログラムを起動する指定されたコンソール。",

vscode/package.nls.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646
"jdk.configuration.runConfig.cwd.description": "Working directory",
4747
"jdk.configuration.disableNbJavac.description": "Advanced option: disable nb-javac library, javac from the selected JDK will be used. The selected JDK must be at least JDK 23.",
4848
"jdk.configuration.disableProjectSearchLimit.description": "Advanced option: disable limits on searching in containing folders for project information.",
49-
"jdk.configuration.telemetry.enabled.description": "Allow the Oracle Java Visual Studio Code extension to collect and send usage data to Oracle servers to help improve the Java platform support. No personal information nor source code is collected. You may refer to our general privacy policy at https://www.oracle.com/legal/privacy/services-privacy-policy/",
49+
"jdk.configuration.telemetry.enabled.description": "Allow the Oracle Java extension for Visual Studio Code (\"JVSCE\") to collect and send anonymous technical data commonly known as \"telemetry data\" to Oracle to help improve the Java platform. No personal information nor source code is collected. You may refer to the data collection and privacy policy for JVSCE at https://github.com/oracle/javavscode/blob/main/vscode/TELEMETRY.md",
50+
"jdk.configuration.telemetry.enabled.markdownDescription": "Allow the Oracle Java extension for Visual Studio Code (\"*JVSCE*\") to collect and send anonymous technical data commonly known as \"*telemetry data*\" to Oracle to help improve the Java platform. No personal information nor source code is collected. You may refer to the data collection and privacy policy for JVSCE at [TELEMETRY.md](https://github.com/oracle/javavscode/blob/main/vscode/TELEMETRY.md).",
5051
"jdk.debugger.configuration.mainClass.markdownDescription": "Main class specification. Supported formats:\n - an absolute path\n - a path relative to any of the workspace folders\n - a fully qualified name of a class.",
5152
"jdk.debugger.configuration.classPaths.description": "The classpaths for launching the JVM.",
5253
"jdk.debugger.configuration.console.description": "The specified console to launch the program.",

vscode/package.nls.zh-cn.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646
"jdk.configuration.runConfig.cwd.description": "工作目录",
4747
"jdk.configuration.disableNbJavac.description": "高级选项:禁用 nb-javac 库,将使用来自所选 JDK 的 javac。所选 JDK 必须至少为 JDK 23。",
4848
"jdk.configuration.disableProjectSearchLimit.description": "高级选项:禁用在包含项目信息的文件夹中搜索的限制。",
49-
"jdk.configuration.telemetry.enabled.description": "Allow the Oracle Java Visual Studio Code extension to collect and send usage data to Oracle servers to help improve the Java platform support. No personal information nor source code is collected. You may refer to our general privacy policy at https://www.oracle.com/legal/privacy/services-privacy-policy/",
49+
"jdk.configuration.telemetry.enabled.description": "Allow the Oracle Java extension for Visual Studio Code (\"JVSCE\") to collect and send anonymous technical data commonly known as \"telemetry data\" to Oracle to help improve the Java platform. No personal information nor source code is collected. You may refer to the data collection and privacy policy for JVSCE at https://github.com/oracle/javavscode/blob/main/vscode/TELEMETRY.md",
50+
"jdk.configuration.telemetry.enabled.markdownDescription": "Allow the Oracle Java extension for Visual Studio Code (\"*JVSCE*\") to collect and send anonymous technical data commonly known as \"*telemetry data*\" to Oracle to help improve the Java platform. No personal information nor source code is collected. You may refer to the data collection and privacy policy for JVSCE at [TELEMETRY.md](https://github.com/oracle/javavscode/blob/main/vscode/TELEMETRY.md)",
5051
"jdk.debugger.configuration.mainClass.markdownDescription": "Main class specification. Supported formats:\n - an absolute path\n - a path relative to any of the workspace folders\n - a fully qualified name of a class.",
5152
"jdk.debugger.configuration.classPaths.description": "用于启动 JVM 的类路径。",
5253
"jdk.debugger.configuration.console.description": "用于启动程序的指定控制台。",

vscode/src/telemetry/telemetryManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export class TelemetryManager {
5858

5959
const yesLabel = l10n.value("jdk.downloader.message.confirmation.yes");
6060
const noLabel = l10n.value("jdk.downloader.message.confirmation.no");
61-
const telemetryLabel = l10n.value("jdk.telemetry.consent", { extensionName: this.extensionContextInfo.getPackageJson().name });
61+
const telemetryLabel = l10n.value("jdk.telemetry.consent");
6262

6363
const enable = await window.showInformationMessage(telemetryLabel, yesLabel, noLabel);
6464
if (enable == undefined) {

0 commit comments

Comments
 (0)