|
@@ -6,8 +6,10 @@
|
|
|
package io.opentelemetry.javaagent.instrumentation.jaxws.jws.v1_1;
|
|
|
|
|
|
import com.google.auto.service.AutoService;
|
|
|
+import io.opentelemetry.javaagent.bootstrap.internal.ExperimentalConfig;
|
|
|
import io.opentelemetry.javaagent.extension.instrumentation.InstrumentationModule;
|
|
|
import io.opentelemetry.javaagent.extension.instrumentation.TypeInstrumentation;
|
|
|
+import io.opentelemetry.sdk.autoconfigure.spi.ConfigProperties;
|
|
|
import java.util.Collections;
|
|
|
import java.util.List;
|
|
|
|
|
@@ -22,4 +24,10 @@ public class JwsInstrumentationModule extends InstrumentationModule {
|
|
|
public List<TypeInstrumentation> typeInstrumentations() {
|
|
|
return Collections.singletonList(new JwsAnnotationsInstrumentation());
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public boolean defaultEnabled(ConfigProperties config) {
|
|
|
+ // this instrumentation only produces controller telemetry
|
|
|
+ return ExperimentalConfig.get().controllerTelemetryEnabled();
|
|
|
+ }
|
|
|
}
|