Skip to content
Draft
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ import java.util.concurrent.TimeUnit
@Timeout(5)
class ApacheHttpAsyncClientCallbackTest extends HttpClientTest implements TestingGenericHttpNamingConventions.ClientV0 {

@Override
String operation() {
"apache-httpasyncclient.request"
}

@Shared
RequestConfig requestConfig = RequestConfig.custom()
.setConnectTimeout(CONNECT_TIMEOUT_MS)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ import spock.lang.Timeout
import java.util.concurrent.Future

@Timeout(5)
class ApacheHttpAsyncClientNullCallbackTest extends HttpClientTest implements TestingGenericHttpNamingConventions.ClientV0{
class ApacheHttpAsyncClientNullCallbackTest extends HttpClientTest implements TestingGenericHttpNamingConventions.ClientV0 {

@Override
String operation() {
"apache-httpasyncclient.request"
}

@Shared
RequestConfig requestConfig = RequestConfig.custom()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ abstract class ApacheHttpAsyncClientTest extends HttpClientTest {
}

class ApacheHttpAsyncClientV0Test extends ApacheHttpAsyncClientTest implements TestingGenericHttpNamingConventions.ClientV0 {
@Override
String operation() {
"apache-httpasyncclient.request"
}
}

class ApacheHttpAsyncClientV1ForkedTest extends ApacheHttpAsyncClientTest implements TestingGenericHttpNamingConventions.ClientV1 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ import spock.lang.Timeout
@Timeout(5)
class ApacheHttpClientResponseHandlerTest extends HttpClientTest implements TestingGenericHttpNamingConventions.ClientV0 {

@Override
String operation() {
"apache-httpclient.request"
}

@Shared
def client = new DefaultHttpClient()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ import spock.lang.Shared
import spock.lang.Timeout

abstract class ApacheHttpClientTest<T extends HttpRequest> extends HttpClientTest implements TestingGenericHttpNamingConventions.ClientV0 {

@Override
String operation() {
"apache-httpclient.request"
}

@Shared
def client = new DefaultHttpClient()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ abstract class ApacheHttpAsyncClient5Test<T extends HttpRequest> extends HttpCli
}

class ApacheHttpAsyncClient5NamingV0Test extends ApacheHttpAsyncClient5Test implements TestingGenericHttpNamingConventions.ClientV0 {
@Override
String operation() {
"apache-httpclient.request"
}
}

class ApacheHttpAsyncClient5NamingV1ForkedTest extends ApacheHttpAsyncClient5Test implements TestingGenericHttpNamingConventions.ClientV1 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ import java.util.concurrent.TimeUnit
@Timeout(5)
class ApacheHttpClientResponseHandlerTest extends HttpClientTest implements TestingGenericHttpNamingConventions.ClientV0 {

@Override
String operation() {
"apache-httpclient.request"
}

@Shared
def client = HttpClients.custom()
.setConnectionManager(new BasicHttpClientConnectionManager())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ import java.util.concurrent.TimeUnit

abstract class ApacheHttpClientTest<T extends HttpRequest> extends HttpClientTest implements TestingGenericHttpNamingConventions.ClientV0 {

@Override
String operation() {
"apache-httpclient.request"
}

@Shared
def client = HttpClients.custom()
.setConnectionManager(new BasicHttpClientConnectionManager())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ class LegacyAWS1ClientForkedTest extends InstrumentationSpecification {
}
}
span {
operationName "http.request"
operationName "apache-httpclient.request"
resourceName "$method $path"
spanType DDSpanTypes.HTTP_CLIENT
errored false
Expand Down Expand Up @@ -291,7 +291,7 @@ class LegacyAWS1ClientForkedTest extends InstrumentationSpecification {
}
}
span {
operationName "http.request"
operationName "apache-httpclient.request"
resourceName "$method /$url"
spanType DDSpanTypes.HTTP_CLIENT
errored true
Expand Down Expand Up @@ -418,7 +418,7 @@ class LegacyAWS1ClientForkedTest extends InstrumentationSpecification {
}
(1..4).each {
span {
operationName "http.request"
operationName "apache-httpclient.request"
resourceName "GET /someBucket/someKey"
spanType DDSpanTypes.HTTP_CLIENT
errored true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class LegacyAWS0ClientForkedTest extends InstrumentationSpecification {
}
}
span {
operationName "http.request"
operationName "apache-httpclient.request"
resourceName "$method $path"
spanType DDSpanTypes.HTTP_CLIENT
errored false
Expand Down Expand Up @@ -207,7 +207,7 @@ class LegacyAWS0ClientForkedTest extends InstrumentationSpecification {
}
}
span {
operationName "http.request"
operationName "apache-httpclient.request"
resourceName "$method /$url"
spanType DDSpanTypes.HTTP_CLIENT
errored true
Expand Down Expand Up @@ -331,7 +331,7 @@ class LegacyAWS0ClientForkedTest extends InstrumentationSpecification {
}
(1..4).each {
span {
operationName "http.request"
operationName "apache-httpclient.request"
resourceName "GET /someBucket/someKey"
spanType DDSpanTypes.HTTP_CLIENT
errored true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ class LegacyAws2ClientForkedTest extends InstrumentationSpecification {
}
}
span {
operationName "http.request"
operationName "apache-httpclient.request"
resourceName "$method $path"
spanType DDSpanTypes.HTTP_CLIENT
errored false
Expand Down Expand Up @@ -421,7 +421,7 @@ class LegacyAws2ClientForkedTest extends InstrumentationSpecification {
}
(1..4).each {
span {
operationName "http.request"
operationName "apache-httpclient.request"
resourceName "GET /somebucket/somekey"
spanType DDSpanTypes.HTTP_CLIENT
errored true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ class SnsClientV0Test extends SnsClientTest {
if ("SNS" == awsService) {
return "aws.http"
}
return "http.request"
return "apache-httpclient.request"
}

@Override
Expand Down Expand Up @@ -289,7 +289,7 @@ class SnsClientV0DataStreamsTest extends SnsClientTest {
if ("SNS" == awsService) {
return "aws.http"
}
return "http.request"
return "apache-httpclient.request"
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class LegacySqsClientForkedTest extends InstrumentationSpecification {
}
}
span {
operationName "http.request"
operationName "apache-httpclient.request"
resourceName "POST /?/somequeue"
spanType DDSpanTypes.HTTP_CLIENT
errored false
Expand Down Expand Up @@ -146,7 +146,7 @@ class LegacySqsClientForkedTest extends InstrumentationSpecification {
}
}
span {
operationName "http.request"
operationName "apache-httpclient.request"
resourceName "POST /?/somequeue"
spanType DDSpanTypes.HTTP_CLIENT
errored false
Expand Down Expand Up @@ -229,7 +229,7 @@ class LegacySqsClientForkedTest extends InstrumentationSpecification {
}
}
span {
operationName "http.request"
operationName "apache-httpclient.request"
resourceName "POST /?/somequeue"
spanType DDSpanTypes.HTTP_CLIENT
errored false
Expand Down Expand Up @@ -295,7 +295,7 @@ class LegacySqsClientForkedTest extends InstrumentationSpecification {
}
}
span {
operationName "http.request"
operationName "apache-httpclient.request"
resourceName "POST /?/somequeue"
spanType DDSpanTypes.HTTP_CLIENT
errored false
Expand Down Expand Up @@ -340,7 +340,7 @@ class LegacySqsClientForkedTest extends InstrumentationSpecification {
}
}
span {
operationName "http.request"
operationName "apache-httpclient.request"
resourceName "POST /?/somequeue"
spanType DDSpanTypes.HTTP_CLIENT
errored false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class LegacySqsClientForkedTest extends InstrumentationSpecification {
}
}
span {
operationName "http.request"
operationName "apache-httpclient.request"
resourceName "POST /"
spanType DDSpanTypes.HTTP_CLIENT
errored false
Expand Down Expand Up @@ -149,7 +149,7 @@ class LegacySqsClientForkedTest extends InstrumentationSpecification {
}
}
span {
operationName "http.request"
operationName "apache-httpclient.request"
resourceName "POST /"
spanType DDSpanTypes.HTTP_CLIENT
errored false
Expand Down Expand Up @@ -231,7 +231,7 @@ class LegacySqsClientForkedTest extends InstrumentationSpecification {
}
}
span {
operationName "http.request"
operationName "apache-httpclient.request"
resourceName "POST /"
spanType DDSpanTypes.HTTP_CLIENT
errored false
Expand Down Expand Up @@ -294,7 +294,7 @@ class LegacySqsClientForkedTest extends InstrumentationSpecification {
}
}
span {
operationName "http.request"
operationName "apache-httpclient.request"
resourceName "POST /"
spanType DDSpanTypes.HTTP_CLIENT
errored false
Expand Down Expand Up @@ -339,7 +339,7 @@ class LegacySqsClientForkedTest extends InstrumentationSpecification {
}
}
span {
operationName "http.request"
operationName "apache-httpclient.request"
resourceName "POST /"
spanType DDSpanTypes.HTTP_CLIENT
errored false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ abstract class CommonsHttpClientTest extends HttpClientTest {
}

class CommonsHttpClientV0ForkedTest extends CommonsHttpClientTest implements TestingGenericHttpNamingConventions.ClientV0 {
@Override
String operation() {
"commons-http-client.request"
}
}

class CommonsHttpClientV1ForkedTest extends CommonsHttpClientTest implements TestingGenericHttpNamingConventions.ClientV1 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class Elasticsearch6RestClientTest extends InstrumentationSpecification {
span {
serviceName "elasticsearch"
resourceName "GET /_cluster/health"
operationName "http.request"
operationName "apache-httpasyncclient.request"
spanType DDSpanTypes.HTTP_CLIENT
childOf span(0)
tags {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class Elasticsearch6RestClientTest extends InstrumentationSpecification {
span {
serviceName "elasticsearch"
resourceName "GET _cluster/health"
operationName "http.request"
operationName "apache-httpasyncclient.request"
spanType DDSpanTypes.HTTP_CLIENT
childOf span(0)
tags {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class Elasticsearch6RestClientTest extends InstrumentationSpecification {
span {
serviceName "elasticsearch"
resourceName "GET _cluster/health"
operationName "http.request"
operationName "apache-httpasyncclient.request"
spanType DDSpanTypes.HTTP_CLIENT
childOf span(0)
tags {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class Elasticsearch7RestClientTest extends InstrumentationSpecification {
span {
serviceName "elasticsearch"
resourceName "GET /_cluster/health"
operationName "http.request"
operationName "apache-httpasyncclient.request"
spanType DDSpanTypes.HTTP_CLIENT
childOf span(0)
tags {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ import spock.lang.Timeout
@Flaky
@Timeout(5)
class GoogleHttpClientAsyncTest extends AbstractGoogleHttpClientTest implements TestingGenericHttpNamingConventions.ClientV0 {

@Override
String operation() {
"google-http-client.request"
}

@Override
HttpResponse executeRequest(HttpRequest request) {
return request.executeAsync().get()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ abstract class GoogleHttpClientTest extends AbstractGoogleHttpClientTest {

@Timeout(5)
class GoogleHttpClientV0ForkedTest extends GoogleHttpClientTest implements TestingGenericHttpNamingConventions.ClientV0 {
@Override
String operation() {
"google-http-client.request"
}
}

@Timeout(5)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ abstract class GrizzlyAsyncHttpClientTest extends HttpClientTest {
}

class GrizzlyAsyncHttpClientV0Test extends GrizzlyAsyncHttpClientTest implements TestingGenericHttpNamingConventions.ClientV0 {
@Override
String operation() {
"grizzly-http-async-client.request"
}
}

class GrizzlyAsyncHttpClientV1ForkedTest extends GrizzlyAsyncHttpClientTest implements TestingGenericHttpNamingConventions.ClientV1 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ import datadog.trace.agent.test.naming.TestingGenericHttpNamingConventions
import spock.lang.Timeout

@Timeout(5)
class HttpUrlConnectionConnectFirstTest extends HttpUrlConnectionTest implements TestingGenericHttpNamingConventions.ClientV0{
class HttpUrlConnectionConnectFirstTest extends HttpUrlConnectionTest implements TestingGenericHttpNamingConventions.ClientV0 {

@Override
String operation() {
"http-url-connection.request"
}

@Override
int doRequest(String method, URI uri, Map<String, String> headers, String body, Closure callback) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ import spock.lang.Timeout
@Timeout(5)
class HttpUrlConnectionResponseCodeOnlyTest extends HttpUrlConnectionTest implements TestingGenericHttpNamingConventions.ClientV0 {

@Override
String operation() {
"http-url-connection.request"
}

@Override
int doRequest(String method, URI uri, Map<String, String> headers, String body, Closure callback) {
HttpURLConnection connection = uri.toURL().openConnection()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,12 @@ abstract class HttpUrlConnectionTest extends HttpClientTest {
}
}

class HttpUrlConnectionV0ForkedTest extends HttpUrlConnectionTest implements TestingGenericHttpNamingConventions.ClientV0 {}
class HttpUrlConnectionV0ForkedTest extends HttpUrlConnectionTest implements TestingGenericHttpNamingConventions.ClientV0 {
@Override
String operation() {
"http-url-connection.request"
}
}

class HttpUrlConnectionV1ForkedTest extends HttpUrlConnectionTest implements TestingGenericHttpNamingConventions.ClientV1 {
}
Loading
Loading