Skip to content

Conversation

@sarahchen6
Copy link

@sarahchen6 sarahchen6 commented Mar 25, 2025

This PR introduces native JDK support for UDS, which was added in Java 16: https://openjdk.org/jeps/380. This is done by:

  • Adding a new configuration option enableJdkSocket to enable native JDK support for UDS for compatible versions (Java 16+)
  • Updating primarily NonBlockingStatsDClient, NonBlockingStatsDClientBuilder, and UnixStreamClientChannel. UnixDatagramClientChannel cannot be updated at this time.
  • Adding a VersionUtils file that parses Java versions.

This PR follows DataDog/dd-trace-java#8314, which added native JDK support to dd-trace-java. With native support, we can reduce third party (i.e. jnr-unixsocket) dependencies.

@sarahchen6 sarahchen6 force-pushed the sarahchen6/add-jdk-uds-support-pt2 branch from e356aaf to 675dddf Compare August 22, 2025 20:27
@sarahchen6 sarahchen6 force-pushed the sarahchen6/add-jdk-uds-support-pt2 branch 2 times, most recently from 34af4da to c888794 Compare August 24, 2025 02:06
@sarahchen6 sarahchen6 force-pushed the sarahchen6/add-jdk-uds-support-pt2 branch from c888794 to 619e4d9 Compare August 24, 2025 02:14
@sarahchen6 sarahchen6 marked this pull request as ready for review September 8, 2025 17:10
@sarahchen6 sarahchen6 requested a review from a team as a code owner September 8, 2025 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants