Missing helpers
MODIFY
dd-java-agent/instrumentation/jax-rs-client/connection-error-handling-jersey/src/main/java/datadog/trace/instrumentation/connection_error/jersey/JerseyClientConnectionErrorInstrumentation.java
dd-java-agent/instrumentation/jax-rs-client/connection-error-handling-jersey/src/main/java/datadog/trace/instrumentation/connection_error/jersey/JerseyClientConnectionErrorInstrumentation.java
package datadog.trace.instrumentation.connection_error.jersey;
+import static io.opentracing.log.Fields.ERROR_OBJECT;
import static net.bytebuddy.matcher.ElementMatchers.isMethod;
import static net.bytebuddy.matcher.ElementMatchers.isPublic;
import static net.bytebuddy.matcher.ElementMatchers.named;
@@ -42,7 +43,9 @@ public final class JerseyClientConnectionErrorInstrumentation extends Instrument
@Override
public String[] helperClassNames() {
- return new String[] {getClass().getName() + "$WrappedFuture"};
+ return new String[] {
+ getClass().getName() + "$WrappedFuture",
+ };
}
@Override
@@ -62,12 +65,11 @@ public final class JerseyClientConnectionErrorInstrumentation extends Instrument
@Advice.FieldValue("requestContext") final ClientRequest context,
@Advice.Thrown final Throwable throwable) {
if (throwable != null) {
-
final Object prop = context.getProperty(ClientTracingFilter.SPAN_PROPERTY_NAME);
if (prop instanceof Span) {
final Span span = (Span) prop;
Tags.ERROR.set(span, true);
- span.log(Collections.singletonMap(Fields.ERROR_OBJECT, throwable));
+ span.log(Collections.singletonMap(ERROR_OBJECT, throwable));
span.finish();
}
}

MODIFY
dd-java-agent/instrumentation/jax-rs-client/connection-error-handling-resteasy/src/main/java/datadog/trace/instrumentation/connection_error/resteasy/ResteasyClientConnectionErrorInstrumentation.java
dd-java-agent/instrumentation/jax-rs-client/connection-error-handling-resteasy/src/main/java/datadog/trace/instrumentation/connection_error/resteasy/ResteasyClientConnectionErrorInstrumentation.java
@@ -43,7 +43,9 @@ public final class ResteasyClientConnectionErrorInstrumentation extends Instrume
@Override
public String[] helperClassNames() {
- return new String[] {getClass().getName() + "$WrappedFuture"};
+ return new String[] {
+ getClass().getName() + "$WrappedFuture",
+ };
}
@Override

MODIFY
dd-java-agent/instrumentation/jax-rs-client/src/main/java/datadog/trace/instrumentation/jaxrs/JaxRsClientInstrumentation.java
dd-java-agent/instrumentation/jax-rs-client/src/main/java/datadog/trace/instrumentation/jaxrs/JaxRsClientInstrumentation.java
@@ -29,9 +29,13 @@ public final class JaxRsClientInstrumentation extends Instrumenter.Default {
@Override
public String[] helperClassNames() {
return new String[] {
- "datadog.trace.instrumentation.jaxrs.ClientTracingFeature",
- "datadog.trace.instrumentation.jaxrs.ClientTracingFilter",
- "datadog.trace.instrumentation.jaxrs.InjectAdapter"
+ "datadog.trace.agent.decorator.BaseDecorator",
+ "datadog.trace.agent.decorator.ClientDecorator",
+ "datadog.trace.agent.decorator.HttpClientDecorator",
+ packageName + ".JaxRsClientDecorator",
+ packageName + ".ClientTracingFeature",
+ packageName + ".ClientTracingFilter",
+ packageName + ".InjectAdapter",
};
}

Missing helpers