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

migrate to github.com/DataDog/datadog-go/v5/statsd #1080

Merged
merged 1 commit into from
Jan 13, 2025

Conversation

jmhodges
Copy link
Contributor

@jmhodges jmhodges commented Dec 11, 2024

This migrates us to the v5 major version channel of DataDog's statsd
client. Specifically, we bump to v5.6.0.

This was done by running:

$ gofmt -w -r '"github.com/DataDog/datadog-go/statsd" -> "github.com/DataDog/datadog-go/v5/statsd"' .
$ go mod tidy
$ go mod vendor

Then, using the new client construction api.

We set the namespace and don't set the buflen size anymore, as the
default is now optimized for each transport. See
statsd.WithBufferPoolSize for more information on that.

Along the way, we updated our mockstatsd with mockgen. See the command
in that comments of that generated file to reproduce that work.

This migrates us to the v5 major version channel of DataDog's statsd
client. Specifically, we bump to v5.6.0.

This was done by running:

```
$ gofmt -w -r '"github.com/DataDog/datadog-go/statsd" -> "github.com/DataDog/datadog-go/v5/statsd"' .
$ go mod tidy
$ go mod vendor
```

Then, using the new client consturction api.

We set the namespace and don't set the buflen size anymore, as the
default is now optimized for each transport. See
statsd.WithBufferPoolSize for more information on that.

Along the way, we updated our mockstatsd with mockgen. See the command
in that comments of that generated file to reproduce that work.
@jmhodges jmhodges force-pushed the upgrade-datadog-explicitly-v5-gnight branch from 63370b0 to 14851a8 Compare January 10, 2025 22:24
@jmhodges jmhodges changed the title upgrade datadog explicitly v5 gnight migrate to github.com/DataDog/datadog-go/v5/statsd Jan 10, 2025
@jmhodges jmhodges marked this pull request as ready for review January 10, 2025 22:40
@jmhodges jmhodges requested review from a team as code owners January 10, 2025 22:40
@jmhodges jmhodges requested review from bhearsum and diox and removed request for a team January 10, 2025 22:40
@say-yawn
Copy link
Contributor

Mostly focused my review in comparing changes on statsd/statsd.go files from each other. They've added new metrics but the existing ones did not get changed much. :shipit:

@jmhodges
Copy link
Contributor Author

Good checks! Thank you

@jmhodges jmhodges merged commit 3f3161e into main Jan 13, 2025
14 checks passed
@jmhodges jmhodges deleted the upgrade-datadog-explicitly-v5-gnight branch January 13, 2025 18:51
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