Migrate from TimGroup's java-statsd-client to Datadog's java-dogstatsd-client#3940
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR migrates the StatsD client dependency from TimGroup’s unmaintained java-statsd-client to Datadog’s actively maintained java-dogstatsd-client, updating wiring and tests to match the newer client construction pattern while preserving the existing StatsDClient API usage.
Changes:
- Switched the Gradle version-catalog dependency from
com.timgroup:java-statsd-clienttocom.datadoghq:java-dogstatsd-clientand bumped the version to4.4.5. - Updated
StatsdConfigurationto build the client viaNonBlockingStatsDClientBuilderinstead of the old constructor. - Simplified the unit test to mock
StatsDClientdirectly (removing reliance onConvenienceMethodProvidingStatsDClient).
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| statsd-lib/src/test/java/org/cloudfoundry/identity/statsd/UaaMetricsEmitterTest.java | Updates mocks to target StatsDClient directly for compatibility with the new dependency. |
| statsd-lib/src/main/java/org/cloudfoundry/identity/statsd/StatsdConfiguration.java | Updates StatsD client bean creation to the builder-based API. |
| gradle/libs.versions.toml | Switches module coordinates to Datadog’s client and updates the version to 4.4.5. |
strehle
approved these changes
Jun 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TimGroup java-statsd-client (Current):
Last update: February 19, 2015 (version 3.1.0)
Status: Effectively unmaintained for over 10 years
Update frequency: None - project is dormant
Datadog java-dogstatsd-client (Target):
Latest version: 4.4.5 (August 21, 2025)
Status: Actively maintained and is now the canonical library
Update frequency: Regular releases (typically 3-4 per year) with bug fixes, performance improvements, and new features
Note: This library merged efforts from multiple upstream projects including TimGroup's original library
Key Benefits of Migration
Active maintenance: Regular security patches and bug fixes
Performance improvements: Modern non-blocking implementation with better buffering
Enhanced features: Support for tags, sampling, client-side aggregation, telemetry
Better error handling: Improved error handling and monitoring capabilities
Future compatibility: Continued support and development
Backward Compatibility Assessment
The migration should be very low-risk because:
Note: UAA uses only basic StatsD operations (gauge, count, time)
The Datadog library maintains API compatibility with TimGroup's interface