Skip to content

Commit 4ec8f47

Browse files
authored
Rename activej instrumentation classes (#13560)
1 parent 2c33335 commit 4ec8f47

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import static io.opentelemetry.javaagent.bootstrap.Java8BytecodeBridge.currentContext;
99
import static io.opentelemetry.javaagent.extension.matcher.AgentElementMatchers.hasClassesNamed;
1010
import static io.opentelemetry.javaagent.extension.matcher.AgentElementMatchers.hasSuperType;
11-
import static io.opentelemetry.javaagent.instrumentation.activejhttp.ActivejHttpServerConnectionSingletons.instrumenter;
11+
import static io.opentelemetry.javaagent.instrumentation.activejhttp.ActivejHttpServerSingletons.instrumenter;
1212
import static net.bytebuddy.matcher.ElementMatchers.isInterface;
1313
import static net.bytebuddy.matcher.ElementMatchers.isMethod;
1414
import static net.bytebuddy.matcher.ElementMatchers.named;
@@ -28,7 +28,7 @@
2828
import net.bytebuddy.description.type.TypeDescription;
2929
import net.bytebuddy.matcher.ElementMatcher;
3030

31-
public class ActivejHttpServerConnectionInstrumentation implements TypeInstrumentation {
31+
public class ActivejAsyncServletInstrumentation implements TypeInstrumentation {
3232

3333
@Override
3434
public ElementMatcher<TypeDescription> typeMatcher() {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import java.util.Map;
1818
import javax.annotation.Nullable;
1919

20-
final class ActivejHttpServerHttpAttributesGetter
20+
final class ActivejHttpServerAttributesGetter
2121
implements HttpServerAttributesGetter<HttpRequest, HttpResponse> {
2222

2323
@Override
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@
1515
import net.bytebuddy.matcher.ElementMatcher;
1616

1717
@AutoService(InstrumentationModule.class)
18-
public class ActivejHttpServerConnectionInstrumentationModule extends InstrumentationModule {
18+
public class ActivejHttpServerInstrumentationModule extends InstrumentationModule {
1919

20-
public ActivejHttpServerConnectionInstrumentationModule() {
20+
public ActivejHttpServerInstrumentationModule() {
2121
super("activej-http", "activej-http-6.0");
2222
}
2323

2424
@Override
2525
public List<TypeInstrumentation> typeInstrumentations() {
26-
return singletonList(new ActivejHttpServerConnectionInstrumentation());
26+
return singletonList(new ActivejAsyncServletInstrumentation());
2727
}
2828

2929
@Override
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import io.opentelemetry.instrumentation.api.instrumenter.Instrumenter;
1111
import io.opentelemetry.javaagent.bootstrap.internal.JavaagentHttpServerInstrumenters;
1212

13-
public final class ActivejHttpServerConnectionSingletons {
13+
public final class ActivejHttpServerSingletons {
1414

1515
private static final String INSTRUMENTATION_NAME = "io.opentelemetry.activej-http-6.0";
1616

@@ -20,13 +20,13 @@ public final class ActivejHttpServerConnectionSingletons {
2020
INSTRUMENTER =
2121
JavaagentHttpServerInstrumenters.create(
2222
INSTRUMENTATION_NAME,
23-
new ActivejHttpServerHttpAttributesGetter(),
23+
new ActivejHttpServerAttributesGetter(),
2424
ActivejHttpServerRequestGetter.INSTANCE);
2525
}
2626

2727
public static Instrumenter<HttpRequest, HttpResponse> instrumenter() {
2828
return INSTRUMENTER;
2929
}
3030

31-
private ActivejHttpServerConnectionSingletons() {}
31+
private ActivejHttpServerSingletons() {}
3232
}

instrumentation/activej-http-6.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/activejhttp/PromiseWrapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
package io.opentelemetry.javaagent.instrumentation.activejhttp;
77

8-
import static io.opentelemetry.javaagent.instrumentation.activejhttp.ActivejHttpServerConnectionSingletons.instrumenter;
8+
import static io.opentelemetry.javaagent.instrumentation.activejhttp.ActivejHttpServerSingletons.instrumenter;
99

1010
import io.activej.http.HttpRequest;
1111
import io.activej.http.HttpResponse;

0 commit comments

Comments
 (0)