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

HFLL-4001: fixing NoSuchMethodError due to incompatibility with dd-trace-java v0.87+ #113

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions metrics-datadog/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>org.coursera</groupId>
<artifactId>metrics-datadog-parent</artifactId>
<version>2.0.0-RC1</version>
<version>2.0.0-RC2</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand All @@ -30,6 +30,7 @@
<dependency>
<groupId>com.datadoghq</groupId>
<artifactId>java-dogstatsd-client</artifactId>
<version>2.13.0</version>
</dependency>
<dependency>
<groupId>junit</groupId>
Expand All @@ -49,7 +50,7 @@
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>dns-cache-manipulator</artifactId>
<version>1.5.1</version>
<version>1.6.4</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.coursera.metrics.datadog.transport;

import com.timgroup.statsd.NonBlockingStatsDClient;
import com.timgroup.statsd.NonBlockingStatsDClientBuilder;
import com.timgroup.statsd.StatsDClient;
import com.timgroup.statsd.StatsDClientErrorHandler;
import org.coursera.metrics.datadog.model.DatadogCounter;
Expand Down Expand Up @@ -156,7 +157,7 @@ public void send() {
// Visible for testing.
static Callable<SocketAddress> staticAddressResolver(final String host, final int port) {
try {
return NonBlockingStatsDClient.staticAddressResolution(host, port);
return NonBlockingStatsDClientBuilder.staticAddressResolution(host, port);
} catch(final Exception e) {
LOG.error("Error during constructing statsd address resolver.", e);
throw new RuntimeException(e);
Expand All @@ -165,6 +166,6 @@ static Callable<SocketAddress> staticAddressResolver(final String host, final in

// Visible for testing.
static Callable<SocketAddress> volatileAddressResolver(final String host, final int port) {
return NonBlockingStatsDClient.volatileAddressResolution(host, port);
return NonBlockingStatsDClientBuilder.volatileAddressResolution(host, port);
}
}
10 changes: 5 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.coursera</groupId>
<artifactId>metrics-datadog-parent</artifactId>
<version>2.0.0-RC1</version>
<version>2.0.0-RC2</version>
<packaging>pom</packaging>
<name>Datadog Metrics Parent</name>
<url>https://github.com/coursera/metrics-datadog</url>
Expand All @@ -27,9 +27,9 @@
</license>
</licenses>
<scm>
<connection>scm:git:[email protected]:coursera/metrics-datadog.git</connection>
<developerConnection>scm:git:[email protected]:coursera/metrics-datadog.git</developerConnection>
<url>scm:[email protected]:coursera/metrics-datadog.git</url>
<connection>scm:git:[email protected]:PasonSystems/metrics-datadog.git</connection>
<developerConnection>scm:git:[email protected]:PasonSystems/metrics-datadog.git</developerConnection>
<url>scm:[email protected]:PasonSystems/metrics-datadog.git</url>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think you should import these 3 lines.

</scm>
<developers>
<developer>
Expand Down Expand Up @@ -159,7 +159,7 @@
<dependency>
<groupId>com.datadoghq</groupId>
<artifactId>java-dogstatsd-client</artifactId>
<version>2.6.1</version>
<version>2.13.0</version>
</dependency>
<dependency>
<groupId>junit</groupId>
Expand Down