question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

2.10.0 breaks my Datadog metrics

See original GitHub issue

So this is how I currently setup my StatsDClient:

new NonBlockingStatsDClient("", "localhost", 8125);

I just tried updating the version to 2.10.0, and I’ve tried using the old deprecated constructor and then this:

new NonBlockingStatsDClientBuilder().prefix("").hostname("localhost").port(8125).build();

And Datadog metrics stopped showing up if I use either of those. And as soon as I downgraded to 2.9.0, metrics started working again. So am I doing something wrong? Is there some additional thing I need to do in 2.10.0? Thanks!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:22 (9 by maintainers)

github_iconTop GitHub Comments

6reactions
truthbkcommented, May 27, 2020

2.10.1 should be available soon. It’s been released but it hasn’t shown up on maven central just yet. I’m waiting to see if it’s an indexing issue or what not. If the fixed lib isn’t available tomorrow morning (EST) I will chase it down.

The issue derived from the fact 2.10.0 was accidentally built atop JDK11 (I had changed the local JDK with jenv to JDK11 and forgot setting it back) and this is what caused the JDK8 problems. The target was 1.7 so I’m still a little surprised. In any case 2.10.1 should now be good. Apologies for the issue.

EDIT: available here - https://mvnrepository.com/artifact/com.datadoghq/java-dogstatsd-client/2.10.1

2reactions
RobMasecommented, May 28, 2020

@truthbk thanks for the fix. One more comment: it would be great if you could keep the code examples on the datadog website up to date. It’s still referring to version 2.8: https://docs.datadoghq.com/developers/dogstatsd/?tab=java

Read more comments on GitHub >

github_iconTop Results From Across the Web

Agent Troubleshooting - Datadog Docs
The first place you should check for metrics is the Metrics Explorer. If you think you might be experiencing issues, follow this checklist...
Read more >
Metrics - Datadog Docs
Anatomy of a metric query. A metric query in Datadog looks like this: Example query with color-coded sections. You can break this query...
Read more >
Investigate Slow Traces or Endpoints - Datadog Docs
Full profile scopes the data to 60 seconds of the whole service process that executed the previously selected span. Break down code performance...
Read more >
Agent Version differences - Datadog Docs
Datadog Agent release numbering follows SemVer rules. Changes between major Agent versions. Agent v7 vs v6; Agent v6 vs v5. Agent v7 is...
Read more >
Monitor Status - Datadog Docs
The monitor's query was recently changed. The monitor's timeframe is too short for a metric that provides data infrequently. A host's name previously...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found