Fix muzzle for trace-annotation.
MODIFY
dd-java-agent/instrumentation/trace-annotation/src/main/java/datadog/trace/instrumentation/trace_annotation/TraceConfigInstrumentation.java
dd-java-agent/instrumentation/trace-annotation/src/main/java/datadog/trace/instrumentation/trace_annotation/TraceConfigInstrumentation.java
@@ -9,6 +9,7 @@ import com.google.common.collect.Maps;
import com.google.common.collect.Sets;
import datadog.trace.agent.tooling.Instrumenter;
import datadog.trace.api.Config;
+import datadog.trace.api.Trace;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
@@ -116,7 +117,7 @@ public class TraceConfigInstrumentation implements Instrumenter {
/** No-arg constructor only used by muzzle and tests. */
public TracerClassInstrumentation() {
- this("noop", Collections.singleton("noop"));
+ this(Trace.class.getName(), Collections.singleton("noop"));
}
public TracerClassInstrumentation(final String className, final Set<String> methodNames) {

MODIFY
dd-java-agent/instrumentation/trace-annotation/trace-annotation.gradle
dd-java-agent/instrumentation/trace-annotation/trace-annotation.gradle
+muzzle {
+ pass {
+ group = "com.datadoghq"
+ module = "dd-trace-api"
+ versions = "[0.31.0,]"
+ assertInverse = true
+ }
+}
+
apply from: "${rootDir}/gradle/java.gradle"
dependencies {

Fix muzzle for trace-annotation.