Skip to content

Merge telemetry into main with conflicts resolved #417

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 36 commits into from
May 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
ca6383d
Merge pull request #322 from Achal1607/upgrade-dependency
Achal1607 Nov 7, 2024
52b6a53
Merge pull request #351 from oracle/main
Achal1607 Dec 16, 2024
254a59f
Initial sketch of telemetry
Achal1607 Nov 13, 2024
c86ce81
Merge pull request #342 from Achal1607/telemetry
sid-srini Dec 16, 2024
61e389e
1) Updated debug log env variable
Achal1607 Dec 27, 2024
82149ad
Merge pull request #359 from oracle/main
sid-srini Dec 27, 2024
181172a
Merge pull request #358 from Achal1607/telemetry
sid-srini Dec 28, 2024
1414fbc
Updated start event trigger point and added workspaceChange event re-…
Achal1607 Jan 9, 2025
b2dca8e
Merge pull request #363 from Achal1607/telemetry
Achal1607 Jan 13, 2025
2d51716
Fixes and edits to telemetry code to support JdkFeatureEvent
sid-srini Dec 14, 2024
6d248c4
Merge pull request #360 from sid-srini/telemetry-handle-jdkFeature-event
sid-srini Jan 13, 2025
2c6e8d6
Fixes to TelemetryServerManager to ensure multi-module projects under a
sid-srini Jan 13, 2025
559570c
Addition of the java.lsp.server.telemetry module to obtain Java language
sid-srini Dec 14, 2024
db95afb
Merge pull request #364 from sid-srini/telemetry-fix-gradle-subprojec…
sid-srini Jan 21, 2025
f62ab32
Merge pull request #350 from sid-srini/telemetry-jdk-features
sid-srini Jan 21, 2025
8598e89
Merge branch 'main' into 'telemetry'
sid-srini Jan 22, 2025
2543b27
Merge pull request #372 from oracle/main
Achal1607 Feb 13, 2025
a73ccc0
fixed label and id issue in JDK downloader
Achal1607 Feb 25, 2025
af82913
Merge pull request #379 from Achal1607/telemetry
Achal1607 Feb 25, 2025
83a7672
Fixed label issue in JDK Downloader
Achal1607 Mar 17, 2025
a63ef81
Merge pull request #389 from Achal1607/telemetry
Achal1607 Mar 19, 2025
da7958a
Added 429 error code retryable support
Achal1607 Apr 8, 2025
2639aa8
Merge branch 'main' into 'telemetry'
sid-srini Apr 8, 2025
8863d6f
Merge pull request #399 from sid-srini/telemetry
Achal1607 Apr 8, 2025
6d1c399
Merge pull request #397 from Achal1607/telemetry
Achal1607 Apr 8, 2025
d30e061
updated telemetry prefs and reporter
Achal1607 Apr 15, 2025
efab04d
added telemetry disable strategy
Achal1607 Apr 16, 2025
2c20449
Improved retry mechanism, closeEvent handling and fixed some bugs
Achal1607 Apr 17, 2025
7aa08bb
updated license headers
Achal1607 Apr 17, 2025
546665a
Updated telemetry jdk-features cache expiry time and maintenance as a
sid-srini Apr 24, 2025
13182aa
added some unit test
Achal1607 Apr 18, 2025
3c95bae
Merge pull request #403 from Achal1607/telemetry
Achal1607 Apr 24, 2025
2051a4b
Merge pull request #407 from sid-srini/telemetry-jdkfeatures-cache-up…
Achal1607 Apr 24, 2025
eb9d4f6
Updating telemetry consent messages
sid-srini Apr 8, 2025
78449a3
Merge pull request #409 from sid-srini/update-telemetry-consent-messages
sid-srini Apr 29, 2025
005f0ea
Merge remote-tracking branch 'origin' into telemetry
Achal1607 Apr 30, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
build/
.DS_STORE
.vscode/
.idea/
*.iml
/nbcode/l10n/locale_ja/release/
/nbcode/l10n/locale_zh_CN/release/
/nbcode/l10n/locale_ja/nbproject/private/
/nbcode/l10n/locale_zh_CN/nbproject/private/
telemetryConfig.json
1 change: 1 addition & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
patches/nbjavac-not-required.diff
patches/l10n-licence.diff
patches/dev-dependency-licenses.diff
patches/nb-telemetry.diff
patches/change-method-parameters-refactoring-qualified-names.diff
</string>
<filterchain>
Expand Down
4 changes: 3 additions & 1 deletion nbcode/nbproject/project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,7 @@ auxiliary.org-netbeans-modules-apisupport-installer.os-solaris=false
auxiliary.org-netbeans-modules-apisupport-installer.os-windows=false
auxiliary.org-netbeans-spi-editor-hints-projects.perProjectHintSettingsFile=nbproject/cfg_hints.xml
modules=\
${project.org.netbeans.modules.nbcode.integration}
${project.org.netbeans.modules.nbcode.integration} :\
${project.org.netbeans.modules.nbcode.java.lsp.server.telemetry}
project.org.netbeans.modules.nbcode.integration=integration
project.org.netbeans.modules.nbcode.java.lsp.server.telemetry=telemetry
23 changes: 23 additions & 0 deletions nbcode/telemetry/build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2024-2025, Oracle and/or its affiliates.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<project name="org.netbeans.modules.nbcode.java.lsp.server.telemetry" default="netbeans" basedir=".">
<description>Builds, tests, and runs the project org.netbeans.modules.nbcode.java.lsp.server.telemetry.</description>
<property file="nbproject/suite.properties"/>
<property file="nbproject/project.properties"/>
<property name="nbantext.jar" location="${suite.dir}/../netbeans/nbbuild/build/nbantext.jar" />
<import file="nbproject/build-impl.xml"/>
</project>
6 changes: 6 additions & 0 deletions nbcode/telemetry/manifest.mf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Manifest-Version: 1.0
AutoUpdate-Show-In-Client: false
OpenIDE-Module: org.netbeans.modules.nbcode.java.lsp.server.telemetry
OpenIDE-Module-Implementation-Version: 1
OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/nbcode/java/lsp/server/telemetry/Bundle.properties

56 changes: 56 additions & 0 deletions nbcode/telemetry/nbproject/build-impl.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2024-2025, Oracle and/or its affiliates.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<project name="org.netbeans.modules.nbcode.java.lsp.server.telemetry-impl" basedir="..">
<fail message="Please build using Ant 1.7.1 or higher.">
<condition>
<not>
<antversion atleast="1.7.1"/>
</not>
</condition>
</fail>
<property file="nbproject/private/suite-private.properties"/>
<property file="nbproject/suite.properties"/>
<fail unless="suite.dir">You must set 'suite.dir' to point to your containing module suite</fail>
<property file="${suite.dir}/nbproject/private/platform-private.properties"/>
<property file="${suite.dir}/nbproject/platform.properties"/>
<macrodef name="property" uri="http://www.netbeans.org/ns/nb-module-project/2">
<attribute name="name"/>
<attribute name="value"/>
<sequential>
<property name="@{name}" value="${@{value}}"/>
</sequential>
</macrodef>
<macrodef name="evalprops" uri="http://www.netbeans.org/ns/nb-module-project/2">
<attribute name="property"/>
<attribute name="value"/>
<sequential>
<property name="@{property}" value="@{value}"/>
</sequential>
</macrodef>
<property file="${user.properties.file}"/>
<nbmproject2:property name="harness.dir" value="nbplatform.${nbplatform.active}.harness.dir" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
<nbmproject2:property name="nbplatform.active.dir" value="nbplatform.${nbplatform.active}.netbeans.dest.dir" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
<nbmproject2:evalprops property="cluster.path.evaluated" value="${cluster.path}" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
<fail message="Path to 'platform' cluster missing in $${cluster.path} property or using corrupt Netbeans Platform (missing harness).">
<condition>
<not>
<contains string="${cluster.path.evaluated}" substring="platform"/>
</not>
</condition>
</fail>
<import file="${harness.dir}/build.xml"/>
</project>
23 changes: 23 additions & 0 deletions nbcode/telemetry/nbproject/genfiles.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#
# Copyright (c) 2024-2025, Oracle and/or its affiliates.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
build.xml.data.CRC32=bcbc94fb
build.xml.script.CRC32=f4d83a2b
[email protected]
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
nbproject/build-impl.xml.data.CRC32=decee057
nbproject/build-impl.xml.script.CRC32=547e2c6a
nbproject/[email protected]
30 changes: 30 additions & 0 deletions nbcode/telemetry/nbproject/project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#
# Copyright (c) 2024-2025, Oracle and/or its affiliates.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
javac.source=1.8
requires.nb.javac=true
javac.compilerargs=-Xlint -Xlint:-serial
test.run.args=--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED \
--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED \
--add-exports=jdk.compiler/com.sun.tools.javac.resources=ALL-UNNAMED \
--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED \

test.unit.lib.cp=
test.unit.run.cp.extra=
license.file=../../LICENSE.txt
nbm.homepage=https://github.com/oracle/javavscode/
nbplatform.default.netbeans.dest.dir=${suite.dir}/../netbeans/nbbuild/netbeans
nbplatform.default.harness.dir=${nbplatform.default.netbeans.dest.dir}/harness
spec.version.base=1.0
136 changes: 136 additions & 0 deletions nbcode/telemetry/nbproject/project.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2024-2025, Oracle and/or its affiliates.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<project xmlns="http://www.netbeans.org/ns/project/1">
<type>org.netbeans.modules.apisupport.project</type>
<configuration>
<data xmlns="http://www.netbeans.org/ns/nb-module-project/3">
<code-name-base>org.netbeans.modules.nbcode.java.lsp.server.telemetry</code-name-base>
<suite-component/>
<module-dependencies>
<dependency>
<code-name-base>org.netbeans.api.lsp</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<release-version>1</release-version>
<specification-version>1.28</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.netbeans.libs.javacapi</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<implementation-version/>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.netbeans.modules.editor.mimelookup</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<release-version>1</release-version>
<specification-version>1.65</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.netbeans.modules.java.lsp.server</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<release-version>2</release-version>
<implementation-version/>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.netbeans.modules.java.platform</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<release-version>1</release-version>
<specification-version>1.67</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.netbeans.modules.java.project</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<release-version>1</release-version>
<specification-version>1.97</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.netbeans.modules.java.source.base</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<specification-version>2.68.0.6.4.3.8.1</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.netbeans.modules.projectapi</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<release-version>1</release-version>
<specification-version>1.96</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.openide.filesystems</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<specification-version>9.38</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.openide.util</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<specification-version>9.33</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.openide.util.lookup</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<specification-version>8.59</specification-version>
</run-dependency>
</dependency>
</module-dependencies>
<test-dependencies>
<test-type>
<name>unit</name>
<test-dependency>
<code-name-base>org.netbeans.libs.junit4</code-name-base>
<compile-dependency/>
</test-dependency>
<test-dependency>
<code-name-base>org.netbeans.modules.nbjunit</code-name-base>
<recursive/>
<compile-dependency/>
</test-dependency>
</test-type>
</test-dependencies>
<public-packages/>
</data>
</configuration>
</project>
16 changes: 16 additions & 0 deletions nbcode/telemetry/nbproject/suite.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#
# Copyright (c) 2024-2025, Oracle and/or its affiliates.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
suite.dir=${basedir}/..
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#
# Copyright (c) 2024-2025, Oracle and/or its affiliates.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
OpenIDE-Module-Display-Category=Java
OpenIDE-Module-Name=Java LSP Server - Telemetry
Loading