Enable gRPC instrumentation by default.
MODIFY
dd-java-agent/instrumentation/grpc-1.5/src/main/java/datadog/trace/instrumentation/grpc/client/GrpcClientBuilderInstrumentation.java
dd-java-agent/instrumentation/grpc-1.5/src/main/java/datadog/trace/instrumentation/grpc/client/GrpcClientBuilderInstrumentation.java
@@ -42,11 +42,6 @@ public class GrpcClientBuilderInstrumentation extends Instrumenter.Default {
isMethod().and(named("build")), AddInterceptorAdvice.class.getName());
}
- @Override
- protected boolean defaultEnabled() {
- return false;
- }
-
public static class AddInterceptorAdvice {
@Advice.OnMethodEnter(suppress = Throwable.class)

MODIFY
dd-java-agent/instrumentation/grpc-1.5/src/main/java/datadog/trace/instrumentation/grpc/server/GrpcServerBuilderInstrumentation.java
dd-java-agent/instrumentation/grpc-1.5/src/main/java/datadog/trace/instrumentation/grpc/server/GrpcServerBuilderInstrumentation.java
@@ -40,11 +40,6 @@ public class GrpcServerBuilderInstrumentation extends Instrumenter.Default {
isMethod().and(named("build")), AddInterceptorAdvice.class.getName());
}
- @Override
- protected boolean defaultEnabled() {
- return false;
- }
-
public static class AddInterceptorAdvice {
@Advice.OnMethodEnter(suppress = Throwable.class)

MODIFY
dd-java-agent/instrumentation/grpc-1.5/src/test/groovy/GrpcStreamingTest.groovy
dd-java-agent/instrumentation/grpc-1.5/src/test/groovy/GrpcStreamingTest.groovy
@@ -16,9 +16,6 @@ import java.util.concurrent.TimeUnit
import java.util.concurrent.atomic.AtomicReference
class GrpcStreamingTest extends AgentTestRunner {
- static {
- System.setProperty("dd.integration.grpc.enabled", "true")
- }
def "test conversation #name"() {
setup:

MODIFY
dd-java-agent/instrumentation/grpc-1.5/src/test/groovy/GrpcTest.groovy
dd-java-agent/instrumentation/grpc-1.5/src/test/groovy/GrpcTest.groovy
@@ -16,9 +16,6 @@ import io.opentracing.tag.Tags
import java.util.concurrent.TimeUnit
class GrpcTest extends AgentTestRunner {
- static {
- System.setProperty("dd.integration.grpc.enabled", "true")
- }
def "test request-response"() {
setup:

Enable gRPC instrumentation by default.