Skip to content
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

Fixes and edits to telemetry code to support JdkFeatureEvent #360

Open
wants to merge 1 commit into
base: telemetry
Choose a base branch
from

Conversation

sid-srini
Copy link
Member

@sid-srini sid-srini commented Dec 28, 2024

Prepare the existing telemetry framework to support the handling and reporting of jdkFeature events.
Also, amended utilities to aid in populating fields of the jdkFeature event.

Note: this is the preliminary commit in the PR #350 which provides an implementation for the generation of the jdkFeature event.

1. Amended LspServerTelemetryManager to expose isPreviewEnabled() method
   and associated enums and methods to populate JdkFeatureEvent.
2. Amended NbCodeClientCapabilites.wantsTelemetryEnabled() to avoid an
   NPE in case of null Boolean -> boolean conversion.
3. Fixed handlers.ts to receive jdkFeature event from LSP and send it to
   the telemetry reporter.
4. Fixed jdkFeatures.ts to properly coalesce multiple events.

Signed-off-by: Siddharth Srinivasan <[email protected]>
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Dec 28, 2024
@sid-srini sid-srini requested a review from Achal1607 December 28, 2024 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant