Rename kubernetes module
RENAME
instrumentation/kubernetes/kubernetes.gradle
instrumentation/kubernetes-client-7.0/kubernetes-client-7.0.gradle
RENAME
instrumentation/kubernetes/src/main/java/io/opentelemetry/auto/instrumentation/kubernetes/KubernetesClientDecorator.java
instrumentation/kubernetes-client-7.0/src/main/java/io/opentelemetry/auto/instrumentation/kubernetesclient/KubernetesClientDecorator.java
* limitations under the License.
*/
-package io.opentelemetry.auto.instrumentation.kubernetes;
+package io.opentelemetry.auto.instrumentation.kubernetesclient;
import io.opentelemetry.OpenTelemetry;
import io.opentelemetry.auto.bootstrap.instrumentation.decorator.HttpClientDecorator;
@@ -27,7 +27,7 @@ public class KubernetesClientDecorator extends HttpClientDecorator<Request, Resp
public static final KubernetesClientDecorator DECORATE = new KubernetesClientDecorator();
public static final Tracer TRACER =
- OpenTelemetry.getTracerProvider().get("io.opentelemetry.auto.kubernetes");
+ OpenTelemetry.getTracerProvider().get("io.opentelemetry.auto.kubernetes-client-7.0");
@Override
protected String method(final Request httpRequest) {

RENAME
instrumentation/kubernetes/src/main/java/io/opentelemetry/auto/instrumentation/kubernetes/KubernetesClientInstrumentation.java
instrumentation/kubernetes-client-7.0/src/main/java/io/opentelemetry/auto/instrumentation/kubernetesclient/KubernetesClientInstrumentation.java
* limitations under the License.
*/
-package io.opentelemetry.auto.instrumentation.kubernetes;
+package io.opentelemetry.auto.instrumentation.kubernetesclient;
import static io.opentelemetry.auto.tooling.ClassLoaderMatcher.hasClassesNamed;
import static io.opentelemetry.auto.tooling.bytebuddy.matcher.AgentElementMatchers.extendsClass;
@@ -37,7 +37,7 @@ import okhttp3.Interceptor;
public class KubernetesClientInstrumentation extends Instrumenter.Default {
public KubernetesClientInstrumentation() {
- super("kubernetes");
+ super("kubernetes-client");
}
@Override

RENAME
instrumentation/kubernetes/src/main/java/io/opentelemetry/auto/instrumentation/kubernetes/KubernetesRequestDigest.java
instrumentation/kubernetes-client-7.0/src/main/java/io/opentelemetry/auto/instrumentation/kubernetesclient/KubernetesRequestDigest.java
* limitations under the License.
*/
-package io.opentelemetry.auto.instrumentation.kubernetes;
+package io.opentelemetry.auto.instrumentation.kubernetesclient;
import com.google.common.base.Strings;
import java.util.regex.Pattern;

RENAME
instrumentation/kubernetes/src/main/java/io/opentelemetry/auto/instrumentation/kubernetes/KubernetesResource.java
instrumentation/kubernetes-client-7.0/src/main/java/io/opentelemetry/auto/instrumentation/kubernetesclient/KubernetesResource.java
* limitations under the License.
*/
-package io.opentelemetry.auto.instrumentation.kubernetes;
+package io.opentelemetry.auto.instrumentation.kubernetesclient;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

RENAME
instrumentation/kubernetes/src/main/java/io/opentelemetry/auto/instrumentation/kubernetes/KubernetesVerb.java
instrumentation/kubernetes-client-7.0/src/main/java/io/opentelemetry/auto/instrumentation/kubernetesclient/KubernetesVerb.java
* limitations under the License.
*/
-package io.opentelemetry.auto.instrumentation.kubernetes;
+package io.opentelemetry.auto.instrumentation.kubernetesclient;
public enum KubernetesVerb {
GET("get"),

RENAME
instrumentation/kubernetes/src/main/java/io/opentelemetry/auto/instrumentation/kubernetes/ParseKubernetesResourceException.java
instrumentation/kubernetes-client-7.0/src/main/java/io/opentelemetry/auto/instrumentation/kubernetesclient/ParseKubernetesResourceException.java
* limitations under the License.
*/
-package io.opentelemetry.auto.instrumentation.kubernetes;
+package io.opentelemetry.auto.instrumentation.kubernetesclient;
class ParseKubernetesResourceException extends Exception {}

RENAME
instrumentation/kubernetes/src/main/java/io/opentelemetry/auto/instrumentation/kubernetes/TracingInterceptor.java
instrumentation/kubernetes-client-7.0/src/main/java/io/opentelemetry/auto/instrumentation/kubernetesclient/TracingInterceptor.java
* limitations under the License.
*/
-package io.opentelemetry.auto.instrumentation.kubernetes;
+package io.opentelemetry.auto.instrumentation.kubernetesclient;
-import static io.opentelemetry.auto.instrumentation.kubernetes.KubernetesClientDecorator.DECORATE;
-import static io.opentelemetry.auto.instrumentation.kubernetes.KubernetesClientDecorator.TRACER;
+import static io.opentelemetry.auto.instrumentation.kubernetesclient.KubernetesClientDecorator.DECORATE;
+import static io.opentelemetry.auto.instrumentation.kubernetesclient.KubernetesClientDecorator.TRACER;
import static io.opentelemetry.context.ContextUtils.withScopedContext;
import static io.opentelemetry.trace.Span.Kind.CLIENT;
import static io.opentelemetry.trace.TracingContextUtils.withSpan;

RENAME
instrumentation/kubernetes/src/test/groovy/KubernetesRequestUtilsTest.groovy
instrumentation/kubernetes-client-7.0/src/test/groovy/KubernetesRequestUtilsTest.groovy
* limitations under the License.
*/
-import io.opentelemetry.auto.instrumentation.kubernetes.KubernetesRequestDigest
-import io.opentelemetry.auto.instrumentation.kubernetes.KubernetesResource
-import io.opentelemetry.auto.instrumentation.kubernetes.KubernetesVerb
+import io.opentelemetry.auto.instrumentation.kubernetesclient.KubernetesRequestDigest
+import io.opentelemetry.auto.instrumentation.kubernetesclient.KubernetesResource
+import io.opentelemetry.auto.instrumentation.kubernetesclient.KubernetesVerb
import spock.lang.Specification
class KubernetesRequestUtilsTest extends Specification {

MODIFY
settings.gradle
settings.gradle
@@ -109,7 +109,7 @@ include ':instrumentation:jsp-2.3'
include ':instrumentation:kafka-clients-0.11'
include ':instrumentation:kafka-streams-0.11'
include ':instrumentation:khttp-0.1'
-include ':instrumentation:kubernetes'
+include ':instrumentation:kubernetes-client-7.0'
include ':instrumentation:lettuce:lettuce-4.0'
include ':instrumentation:lettuce:lettuce-5.0'
include ':instrumentation:lettuce:lettuce-5.1'

Rename kubernetes module (#804)