Skip to content

Commit 03a57f4

Browse files
committed
Align apache http client 5 instrumentation names
1 parent 54cb5c9 commit 03a57f4

3 files changed

Lines changed: 17 additions & 3 deletions

File tree

dd-java-agent/instrumentation/apache-httpclient-5/src/main/java/datadog/trace/instrumentation/apachehttpclient5/ApacheHttpAsyncClientInstrumentation.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ public class ApacheHttpAsyncClientInstrumentation extends Instrumenter.Tracing
2727
implements Instrumenter.CanShortcutTypeMatching {
2828

2929
public ApacheHttpAsyncClientInstrumentation() {
30-
super("httpasyncclient5", "apache-httpasyncclient5");
30+
super(
31+
"httpasyncclient5", "apache-httpasyncclient5", "httpasyncclient", "apache-httpasyncclient");
3132
}
3233

3334
@Override

dd-java-agent/instrumentation/apache-httpclient-5/src/main/java/datadog/trace/instrumentation/apachehttpclient5/ApacheHttpClientDecorator.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,14 @@ public class ApacheHttpClientDecorator extends HttpClientDecorator<HttpRequest,
1717

1818
@Override
1919
protected String[] instrumentationNames() {
20-
return new String[] {"httpclient5", "apache-httpclient5", "apache-http-client5"};
20+
return new String[] {
21+
"httpclient5",
22+
"apache-httpclient5",
23+
"apache-http-client5",
24+
"httpclient",
25+
"apache-httpclient",
26+
"apache-http-client"
27+
};
2128
}
2229

2330
@Override

dd-java-agent/instrumentation/apache-httpclient-5/src/main/java/datadog/trace/instrumentation/apachehttpclient5/ApacheHttpClientInstrumentation.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,13 @@ public class ApacheHttpClientInstrumentation extends Instrumenter.Tracing
2323
implements Instrumenter.CanShortcutTypeMatching {
2424

2525
public ApacheHttpClientInstrumentation() {
26-
super("httpclient5", "apache-httpclient5", "apache-http-client5");
26+
super(
27+
"httpclient5",
28+
"apache-httpclient5",
29+
"apache-http-client5",
30+
"httpclient",
31+
"apache-httpclient",
32+
"apache-http-client");
2733
}
2834

2935
@Override

0 commit comments

Comments
 (0)