Normalize tag verification order

This commit is contained in:
Trask Stalnaker 2019-11-15 13:18:52 -08:00
parent 10b0f35235
commit 1987e86ebf
76 changed files with 836 additions and 834 deletions

View File

@ -65,12 +65,12 @@ class LagomTest extends AgentTestRunner {
spanType DDSpanTypes.HTTP_SERVER spanType DDSpanTypes.HTTP_SERVER
errored false errored false
tags { tags {
defaultTags() "$Tags.COMPONENT" "akka-http-server"
"$Tags.HTTP_STATUS" 101 "$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
"$Tags.HTTP_URL" "ws://localhost:${server.port()}/echo" "$Tags.HTTP_URL" "ws://localhost:${server.port()}/echo"
"$Tags.HTTP_METHOD" "GET" "$Tags.HTTP_METHOD" "GET"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER "$Tags.HTTP_STATUS" 101
"$Tags.COMPONENT" "akka-http-server" defaultTags()
} }
} }
span(1) { span(1) {
@ -104,13 +104,13 @@ class LagomTest extends AgentTestRunner {
spanType DDSpanTypes.HTTP_SERVER spanType DDSpanTypes.HTTP_SERVER
errored true errored true
tags { tags {
defaultTags() "$Tags.COMPONENT" "akka-http-server"
"$Tags.HTTP_STATUS" 500 "$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
"$Tags.HTTP_URL" "ws://localhost:${server.port()}/error" "$Tags.HTTP_URL" "ws://localhost:${server.port()}/error"
"$Tags.HTTP_METHOD" "GET" "$Tags.HTTP_METHOD" "GET"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER "$Tags.HTTP_STATUS" 500
"$Tags.COMPONENT" "akka-http-server"
"$Tags.ERROR" true "$Tags.ERROR" true
defaultTags()
} }
} }
} }

View File

@ -73,11 +73,11 @@ class AkkaHttpClientInstrumentationTest extends HttpClientTest<AkkaHttpClientDec
spanType DDSpanTypes.HTTP_CLIENT spanType DDSpanTypes.HTTP_CLIENT
errored true errored true
tags { tags {
defaultTags()
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.COMPONENT" "akka-http-client" "$Tags.COMPONENT" "akka-http-client"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.ERROR" true "$Tags.ERROR" true
errorTags(NullPointerException) errorTags(NullPointerException)
defaultTags()
} }
} }
} }

View File

@ -49,18 +49,18 @@ abstract class AkkaHttpServerInstrumentationTest extends HttpServerTest<Object,
parent() parent()
} }
tags { tags {
defaultTags(true)
"$Tags.COMPONENT" serverDecorator.component() "$Tags.COMPONENT" serverDecorator.component()
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
"$Tags.HTTP_URL" "${endpoint.resolve(address)}"
"$Tags.HTTP_METHOD" method
"$Tags.HTTP_STATUS" endpoint.status
if (endpoint.errored) { if (endpoint.errored) {
"$Tags.ERROR" endpoint.errored "$Tags.ERROR" endpoint.errored
"error.msg" { it == null || it == EXCEPTION.body } "error.msg" { it == null || it == EXCEPTION.body }
"error.type" { it == null || it == Exception.name } "error.type" { it == null || it == Exception.name }
"error.stack" { it == null || it instanceof String } "error.stack" { it == null || it instanceof String }
} }
"$Tags.HTTP_STATUS" endpoint.status defaultTags(true)
"$Tags.HTTP_URL" "${endpoint.resolve(address)}"
"$Tags.HTTP_METHOD" method
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
} }
} }
} }

View File

@ -135,10 +135,10 @@ class AWSClientTest extends AgentTestRunner {
parent() parent()
tags { tags {
"$Tags.COMPONENT" "java-aws-sdk" "$Tags.COMPONENT" "java-aws-sdk"
"$Tags.HTTP_STATUS" 200 "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.HTTP_URL" "$server.address/" "$Tags.HTTP_URL" "$server.address/"
"$Tags.HTTP_METHOD" "$method" "$Tags.HTTP_METHOD" "$method"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.HTTP_STATUS" 200
"aws.service" { it.contains(service) } "aws.service" { it.contains(service) }
"aws.endpoint" "$server.address" "aws.endpoint" "$server.address"
"aws.operation" "${operation}Request" "aws.operation" "${operation}Request"
@ -154,12 +154,12 @@ class AWSClientTest extends AgentTestRunner {
childOf(span(0)) childOf(span(0))
tags { tags {
"$Tags.COMPONENT" "apache-httpclient" "$Tags.COMPONENT" "apache-httpclient"
"$Tags.HTTP_STATUS" 200 "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.HTTP_URL" "$server.address/$url"
"$Tags.PEER_HOSTNAME" "localhost" "$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_PORT" server.address.port "$Tags.PEER_PORT" server.address.port
"$Tags.HTTP_URL" "$server.address/$url"
"$Tags.HTTP_METHOD" "$method" "$Tags.HTTP_METHOD" "$method"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.HTTP_STATUS" 200
defaultTags() defaultTags()
} }
} }
@ -209,9 +209,9 @@ class AWSClientTest extends AgentTestRunner {
parent() parent()
tags { tags {
"$Tags.COMPONENT" "java-aws-sdk" "$Tags.COMPONENT" "java-aws-sdk"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.HTTP_URL" "http://localhost:${UNUSABLE_PORT}/" "$Tags.HTTP_URL" "http://localhost:${UNUSABLE_PORT}/"
"$Tags.HTTP_METHOD" "$method" "$Tags.HTTP_METHOD" "$method"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"aws.service" { it.contains(service) } "aws.service" { it.contains(service) }
"aws.endpoint" "http://localhost:${UNUSABLE_PORT}" "aws.endpoint" "http://localhost:${UNUSABLE_PORT}"
"aws.operation" "${operation}Request" "aws.operation" "${operation}Request"
@ -228,11 +228,11 @@ class AWSClientTest extends AgentTestRunner {
childOf(span(0)) childOf(span(0))
tags { tags {
"$Tags.COMPONENT" "apache-httpclient" "$Tags.COMPONENT" "apache-httpclient"
"$Tags.HTTP_URL" "http://localhost:${UNUSABLE_PORT}/$url" "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.PEER_HOSTNAME" "localhost" "$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_PORT" UNUSABLE_PORT "$Tags.PEER_PORT" UNUSABLE_PORT
"$Tags.HTTP_URL" "http://localhost:${UNUSABLE_PORT}/$url"
"$Tags.HTTP_METHOD" "$method" "$Tags.HTTP_METHOD" "$method"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
errorTags HttpHostConnectException, ~/Connection refused/ errorTags HttpHostConnectException, ~/Connection refused/
defaultTags() defaultTags()
} }
@ -272,9 +272,9 @@ class AWSClientTest extends AgentTestRunner {
parent() parent()
tags { tags {
"$Tags.COMPONENT" "java-aws-sdk" "$Tags.COMPONENT" "java-aws-sdk"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.HTTP_URL" "https://s3.amazonaws.com/" "$Tags.HTTP_URL" "https://s3.amazonaws.com/"
"$Tags.HTTP_METHOD" "HEAD" "$Tags.HTTP_METHOD" "HEAD"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"aws.service" "Amazon S3" "aws.service" "Amazon S3"
"aws.endpoint" "https://s3.amazonaws.com" "aws.endpoint" "https://s3.amazonaws.com"
"aws.operation" "HeadBucketRequest" "aws.operation" "HeadBucketRequest"
@ -318,9 +318,9 @@ class AWSClientTest extends AgentTestRunner {
parent() parent()
tags { tags {
"$Tags.COMPONENT" "java-aws-sdk" "$Tags.COMPONENT" "java-aws-sdk"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.HTTP_URL" "$server.address/" "$Tags.HTTP_URL" "$server.address/"
"$Tags.HTTP_METHOD" "GET" "$Tags.HTTP_METHOD" "GET"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"aws.service" "Amazon S3" "aws.service" "Amazon S3"
"aws.endpoint" "$server.address" "aws.endpoint" "$server.address"
"aws.operation" "GetObjectRequest" "aws.operation" "GetObjectRequest"
@ -342,11 +342,11 @@ class AWSClientTest extends AgentTestRunner {
childOf(span(0)) childOf(span(0))
tags { tags {
"$Tags.COMPONENT" "apache-httpclient" "$Tags.COMPONENT" "apache-httpclient"
"$Tags.HTTP_URL" "$server.address/someBucket/someKey" "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.PEER_HOSTNAME" "localhost" "$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_PORT" server.address.port "$Tags.PEER_PORT" server.address.port
"$Tags.HTTP_URL" "$server.address/someBucket/someKey"
"$Tags.HTTP_METHOD" "GET" "$Tags.HTTP_METHOD" "GET"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
try { try {
errorTags SocketException, "Socket closed" errorTags SocketException, "Socket closed"
} catch (AssertionError e) { } catch (AssertionError e) {

View File

@ -105,10 +105,10 @@ class AWSClientTest extends AgentTestRunner {
parent() parent()
tags { tags {
"$Tags.COMPONENT" "java-aws-sdk" "$Tags.COMPONENT" "java-aws-sdk"
"$Tags.HTTP_STATUS" 200 "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.HTTP_URL" "$server.address/" "$Tags.HTTP_URL" "$server.address/"
"$Tags.HTTP_METHOD" "$method" "$Tags.HTTP_METHOD" "$method"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.HTTP_STATUS" 200
"aws.service" { it.contains(service) } "aws.service" { it.contains(service) }
"aws.endpoint" "$server.address" "aws.endpoint" "$server.address"
"aws.operation" "${operation}Request" "aws.operation" "${operation}Request"
@ -124,12 +124,12 @@ class AWSClientTest extends AgentTestRunner {
childOf(span(0)) childOf(span(0))
tags { tags {
"$Tags.COMPONENT" "apache-httpclient" "$Tags.COMPONENT" "apache-httpclient"
"$Tags.HTTP_STATUS" 200 "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.HTTP_URL" "$server.address/$url"
"$Tags.PEER_HOSTNAME" "localhost" "$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_PORT" server.address.port "$Tags.PEER_PORT" server.address.port
"$Tags.HTTP_URL" "$server.address/$url"
"$Tags.HTTP_METHOD" "$method" "$Tags.HTTP_METHOD" "$method"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.HTTP_STATUS" 200
defaultTags() defaultTags()
} }
} }
@ -179,9 +179,9 @@ class AWSClientTest extends AgentTestRunner {
parent() parent()
tags { tags {
"$Tags.COMPONENT" "java-aws-sdk" "$Tags.COMPONENT" "java-aws-sdk"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.HTTP_URL" "http://localhost:${UNUSABLE_PORT}/" "$Tags.HTTP_URL" "http://localhost:${UNUSABLE_PORT}/"
"$Tags.HTTP_METHOD" "$method" "$Tags.HTTP_METHOD" "$method"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"aws.service" { it.contains(service) } "aws.service" { it.contains(service) }
"aws.endpoint" "http://localhost:${UNUSABLE_PORT}" "aws.endpoint" "http://localhost:${UNUSABLE_PORT}"
"aws.operation" "${operation}Request" "aws.operation" "${operation}Request"
@ -198,11 +198,11 @@ class AWSClientTest extends AgentTestRunner {
childOf(span(0)) childOf(span(0))
tags { tags {
"$Tags.COMPONENT" "apache-httpclient" "$Tags.COMPONENT" "apache-httpclient"
"$Tags.HTTP_URL" "http://localhost:${UNUSABLE_PORT}/$url" "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.PEER_HOSTNAME" "localhost" "$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_PORT" UNUSABLE_PORT "$Tags.PEER_PORT" UNUSABLE_PORT
"$Tags.HTTP_URL" "http://localhost:${UNUSABLE_PORT}/$url"
"$Tags.HTTP_METHOD" "$method" "$Tags.HTTP_METHOD" "$method"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
errorTags HttpHostConnectException, ~/Connection refused/ errorTags HttpHostConnectException, ~/Connection refused/
defaultTags() defaultTags()
} }
@ -242,9 +242,9 @@ class AWSClientTest extends AgentTestRunner {
parent() parent()
tags { tags {
"$Tags.COMPONENT" "java-aws-sdk" "$Tags.COMPONENT" "java-aws-sdk"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.HTTP_URL" "https://s3.amazonaws.com/" "$Tags.HTTP_URL" "https://s3.amazonaws.com/"
"$Tags.HTTP_METHOD" "GET" "$Tags.HTTP_METHOD" "GET"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"aws.service" "Amazon S3" "aws.service" "Amazon S3"
"aws.endpoint" "https://s3.amazonaws.com" "aws.endpoint" "https://s3.amazonaws.com"
"aws.operation" "GetObjectRequest" "aws.operation" "GetObjectRequest"
@ -288,9 +288,9 @@ class AWSClientTest extends AgentTestRunner {
parent() parent()
tags { tags {
"$Tags.COMPONENT" "java-aws-sdk" "$Tags.COMPONENT" "java-aws-sdk"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.HTTP_URL" "$server.address/" "$Tags.HTTP_URL" "$server.address/"
"$Tags.HTTP_METHOD" "GET" "$Tags.HTTP_METHOD" "GET"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"aws.service" "Amazon S3" "aws.service" "Amazon S3"
"aws.endpoint" "http://localhost:$server.address.port" "aws.endpoint" "http://localhost:$server.address.port"
"aws.operation" "GetObjectRequest" "aws.operation" "GetObjectRequest"
@ -308,11 +308,11 @@ class AWSClientTest extends AgentTestRunner {
childOf(span(0)) childOf(span(0))
tags { tags {
"$Tags.COMPONENT" "apache-httpclient" "$Tags.COMPONENT" "apache-httpclient"
"$Tags.HTTP_URL" "$server.address/someBucket/someKey" "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.PEER_HOSTNAME" "localhost" "$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_PORT" server.address.port "$Tags.PEER_PORT" server.address.port
"$Tags.HTTP_URL" "$server.address/someBucket/someKey"
"$Tags.HTTP_METHOD" "GET" "$Tags.HTTP_METHOD" "GET"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
try { try {
errorTags SocketException, "Socket closed" errorTags SocketException, "Socket closed"
} catch (AssertionError e) { } catch (AssertionError e) {

View File

@ -82,12 +82,12 @@ class AwsClientTest extends AgentTestRunner {
parent() parent()
tags { tags {
"$Tags.COMPONENT" "java-aws-sdk" "$Tags.COMPONENT" "java-aws-sdk"
"$Tags.HTTP_STATUS" 200 "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.HTTP_URL" "${server.address}${path}"
"$Tags.HTTP_METHOD" "$method"
"$Tags.PEER_HOSTNAME" "localhost" "$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_PORT" server.address.port "$Tags.PEER_PORT" server.address.port
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.HTTP_URL" "${server.address}${path}"
"$Tags.HTTP_METHOD" "$method"
"$Tags.HTTP_STATUS" 200
"aws.service" "$service" "aws.service" "$service"
"aws.operation" "${operation}" "aws.operation" "${operation}"
"aws.agent" "java-aws-sdk" "aws.agent" "java-aws-sdk"
@ -114,12 +114,12 @@ class AwsClientTest extends AgentTestRunner {
childOf(span(0)) childOf(span(0))
tags { tags {
"$Tags.COMPONENT" "apache-httpclient" "$Tags.COMPONENT" "apache-httpclient"
"$Tags.HTTP_STATUS" 200 "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.HTTP_URL" "${server.address}${path}"
"$Tags.PEER_HOSTNAME" "localhost" "$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_PORT" server.address.port "$Tags.PEER_PORT" server.address.port
"$Tags.HTTP_URL" "${server.address}${path}"
"$Tags.HTTP_METHOD" "$method" "$Tags.HTTP_METHOD" "$method"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.HTTP_STATUS" 200
defaultTags() defaultTags()
} }
} }
@ -199,12 +199,12 @@ class AwsClientTest extends AgentTestRunner {
parent() parent()
tags { tags {
"$Tags.COMPONENT" "java-aws-sdk" "$Tags.COMPONENT" "java-aws-sdk"
"$Tags.HTTP_STATUS" 200 "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.HTTP_URL" "${server.address}${path}"
"$Tags.HTTP_METHOD" "$method"
"$Tags.PEER_HOSTNAME" "localhost" "$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_PORT" server.address.port "$Tags.PEER_PORT" server.address.port
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.HTTP_URL" "${server.address}${path}"
"$Tags.HTTP_METHOD" "$method"
"$Tags.HTTP_STATUS" 200
"aws.service" "$service" "aws.service" "$service"
"aws.operation" "${operation}" "aws.operation" "${operation}"
"aws.agent" "java-aws-sdk" "aws.agent" "java-aws-sdk"
@ -234,13 +234,13 @@ class AwsClientTest extends AgentTestRunner {
parent() parent()
tags { tags {
"$Tags.COMPONENT" "netty-client" "$Tags.COMPONENT" "netty-client"
"$Tags.HTTP_STATUS" 200 "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.HTTP_URL" "${server.address}${path}"
"$Tags.PEER_HOSTNAME" "localhost" "$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_HOST_IPV4" "127.0.0.1" "$Tags.PEER_HOST_IPV4" "127.0.0.1"
"$Tags.PEER_PORT" server.address.port "$Tags.PEER_PORT" server.address.port
"$Tags.HTTP_URL" "${server.address}${path}"
"$Tags.HTTP_METHOD" "$method" "$Tags.HTTP_METHOD" "$method"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.HTTP_STATUS" 200
defaultTags() defaultTags()
} }
} }
@ -320,11 +320,11 @@ class AwsClientTest extends AgentTestRunner {
parent() parent()
tags { tags {
"$Tags.COMPONENT" "java-aws-sdk" "$Tags.COMPONENT" "java-aws-sdk"
"$Tags.HTTP_URL" "$server.address/somebucket/somekey" "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.HTTP_METHOD" "GET"
"$Tags.PEER_HOSTNAME" "localhost" "$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_PORT" server.address.port "$Tags.PEER_PORT" server.address.port
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.HTTP_URL" "$server.address/somebucket/somekey"
"$Tags.HTTP_METHOD" "GET"
"aws.service" "S3" "aws.service" "S3"
"aws.operation" "GetObject" "aws.operation" "GetObject"
"aws.agent" "java-aws-sdk" "aws.agent" "java-aws-sdk"
@ -342,11 +342,11 @@ class AwsClientTest extends AgentTestRunner {
childOf(span(0)) childOf(span(0))
tags { tags {
"$Tags.COMPONENT" "apache-httpclient" "$Tags.COMPONENT" "apache-httpclient"
"$Tags.HTTP_URL" "$server.address/somebucket/somekey" "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.PEER_HOSTNAME" "localhost" "$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_PORT" server.address.port "$Tags.PEER_PORT" server.address.port
"$Tags.HTTP_URL" "$server.address/somebucket/somekey"
"$Tags.HTTP_METHOD" "GET" "$Tags.HTTP_METHOD" "GET"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
errorTags SocketTimeoutException, "Read timed out" errorTags SocketTimeoutException, "Read timed out"
defaultTags() defaultTags()
} }

View File

@ -148,8 +148,8 @@ abstract class AbstractCouchbaseTest extends AgentTestRunner {
} }
tags { tags {
"$Tags.COMPONENT" "couchbase-client" "$Tags.COMPONENT" "couchbase-client"
"$Tags.DB_TYPE" "couchbase"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "couchbase"
if (bucketName != null) { if (bucketName != null) {
"bucket" bucketName "bucket" bucketName
} }

View File

@ -20,15 +20,18 @@ class CouchbaseSpanUtil {
} }
tags { tags {
"$Tags.COMPONENT" "couchbase-client" "$Tags.COMPONENT" "couchbase-client"
"$Tags.DB_TYPE" "couchbase"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
if (bucketName != null) {
"bucket" bucketName
}
// Because of caching, not all requests hit the server so these tags may be absent // Because of caching, not all requests hit the server so these tags may be absent
"$Tags.PEER_HOSTNAME" { it == "localhost" || it == "127.0.0.1" || it == null } "$Tags.PEER_HOSTNAME" { it == "localhost" || it == "127.0.0.1" || it == null }
"$Tags.PEER_PORT" { it == null || Number } "$Tags.PEER_PORT" { it == null || Number }
"$Tags.DB_TYPE" "couchbase"
if (bucketName != null) {
"bucket" bucketName
}
// Because of caching, not all requests hit the server so this tag may be absent
"local.address" { it == null || String } "local.address" { it == null || String }
// Not all couchbase operations have operation id. Notably, 'ViewQuery's do not // Not all couchbase operations have operation id. Notably, 'ViewQuery's do not

View File

@ -123,11 +123,11 @@ class CassandraClientTest extends AgentTestRunner {
tags { tags {
"$Tags.COMPONENT" "java-cassandra" "$Tags.COMPONENT" "java-cassandra"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_INSTANCE" keyspace
"$Tags.DB_TYPE" "cassandra"
"$Tags.PEER_HOSTNAME" "localhost" "$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_HOST_IPV4" "127.0.0.1" "$Tags.PEER_HOST_IPV4" "127.0.0.1"
"$Tags.PEER_PORT" port "$Tags.PEER_PORT" port
"$Tags.DB_TYPE" "cassandra"
"$Tags.DB_INSTANCE" keyspace
defaultTags() defaultTags()
} }
} }

View File

@ -1,4 +1,5 @@
import datadog.trace.agent.test.AgentTestRunner import datadog.trace.agent.test.AgentTestRunner
import datadog.trace.instrumentation.api.Tags
import io.dropwizard.views.View import io.dropwizard.views.View
import io.dropwizard.views.freemarker.FreemarkerViewRenderer import io.dropwizard.views.freemarker.FreemarkerViewRenderer
import io.dropwizard.views.mustache.MustacheViewRenderer import io.dropwizard.views.mustache.MustacheViewRenderer
@ -30,7 +31,7 @@ class ViewRenderTest extends AgentTestRunner {
operationName "view.render" operationName "view.render"
childOf span(0) childOf span(0)
tags { tags {
"component" "dropwizard-view" "$Tags.COMPONENT" "dropwizard-view"
"span.origin.type" renderer.class.simpleName "span.origin.type" renderer.class.simpleName
defaultTags() defaultTags()
} }

View File

@ -87,12 +87,12 @@ class Elasticsearch6RestClientTest extends AgentTestRunner {
parent() parent()
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.HTTP_METHOD" "GET"
"$Tags.HTTP_URL" "_cluster/health"
"$Tags.PEER_HOSTNAME" "localhost" "$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_PORT" httpPort "$Tags.PEER_PORT" httpPort
"$Tags.HTTP_URL" "_cluster/health"
"$Tags.HTTP_METHOD" "GET"
"$Tags.DB_TYPE" "elasticsearch"
defaultTags() defaultTags()
} }
} }
@ -105,8 +105,8 @@ class Elasticsearch6RestClientTest extends AgentTestRunner {
tags { tags {
"$Tags.COMPONENT" "apache-httpasyncclient" "$Tags.COMPONENT" "apache-httpasyncclient"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.HTTP_METHOD" "GET"
"$Tags.HTTP_URL" "_cluster/health" "$Tags.HTTP_URL" "_cluster/health"
"$Tags.HTTP_METHOD" "GET"
"$Tags.HTTP_STATUS" 200 "$Tags.HTTP_STATUS" 200
defaultTags() defaultTags()
} }

View File

@ -92,12 +92,12 @@ class Elasticsearch5RestClientTest extends AgentTestRunner {
parent() parent()
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.HTTP_METHOD" "GET"
"$Tags.HTTP_URL" "_cluster/health"
"$Tags.PEER_HOSTNAME" "localhost" "$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_PORT" httpPort "$Tags.PEER_PORT" httpPort
"$Tags.HTTP_URL" "_cluster/health"
"$Tags.HTTP_METHOD" "GET"
"$Tags.DB_TYPE" "elasticsearch"
defaultTags() defaultTags()
} }
} }
@ -110,8 +110,8 @@ class Elasticsearch5RestClientTest extends AgentTestRunner {
tags { tags {
"$Tags.COMPONENT" "apache-httpasyncclient" "$Tags.COMPONENT" "apache-httpasyncclient"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.HTTP_METHOD" "GET"
"$Tags.HTTP_URL" "_cluster/health" "$Tags.HTTP_URL" "_cluster/health"
"$Tags.HTTP_METHOD" "GET"
"$Tags.HTTP_STATUS" 200 "$Tags.HTTP_STATUS" 200
defaultTags() defaultTags()
} }

View File

@ -91,12 +91,12 @@ class Elasticsearch6RestClientTest extends AgentTestRunner {
parent() parent()
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.HTTP_METHOD" "GET"
"$Tags.HTTP_URL" "_cluster/health"
"$Tags.PEER_HOSTNAME" "localhost" "$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_PORT" httpPort "$Tags.PEER_PORT" httpPort
"$Tags.HTTP_URL" "_cluster/health"
"$Tags.HTTP_METHOD" "GET"
"$Tags.DB_TYPE" "elasticsearch"
defaultTags() defaultTags()
} }
} }
@ -109,8 +109,8 @@ class Elasticsearch6RestClientTest extends AgentTestRunner {
tags { tags {
"$Tags.COMPONENT" "apache-httpasyncclient" "$Tags.COMPONENT" "apache-httpasyncclient"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.HTTP_METHOD" "GET"
"$Tags.HTTP_URL" "_cluster/health" "$Tags.HTTP_URL" "_cluster/health"
"$Tags.HTTP_METHOD" "GET"
"$Tags.HTTP_STATUS" 200 "$Tags.HTTP_STATUS" 200
defaultTags() defaultTags()
} }

View File

@ -87,12 +87,12 @@ class Elasticsearch6RestClientTest extends AgentTestRunner {
parent() parent()
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.HTTP_METHOD" "GET"
"$Tags.HTTP_URL" "_cluster/health"
"$Tags.PEER_HOSTNAME" "localhost" "$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_PORT" httpPort "$Tags.PEER_PORT" httpPort
"$Tags.HTTP_URL" "_cluster/health"
"$Tags.HTTP_METHOD" "GET"
"$Tags.DB_TYPE" "elasticsearch"
defaultTags() defaultTags()
} }
} }
@ -105,8 +105,8 @@ class Elasticsearch6RestClientTest extends AgentTestRunner {
tags { tags {
"$Tags.COMPONENT" "apache-httpasyncclient" "$Tags.COMPONENT" "apache-httpasyncclient"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.HTTP_METHOD" "GET"
"$Tags.HTTP_URL" "_cluster/health" "$Tags.HTTP_URL" "_cluster/health"
"$Tags.HTTP_METHOD" "GET"
"$Tags.HTTP_STATUS" 200 "$Tags.HTTP_STATUS" 200
defaultTags() defaultTags()
} }

View File

@ -79,8 +79,8 @@ class Elasticsearch2NodeClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "ClusterHealthAction" "elasticsearch.action" "ClusterHealthAction"
"elasticsearch.request" "ClusterHealthRequest" "elasticsearch.request" "ClusterHealthRequest"
defaultTags() defaultTags()
@ -108,8 +108,8 @@ class Elasticsearch2NodeClientTest extends AgentTestRunner {
errored true errored true
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "GetAction" "elasticsearch.action" "GetAction"
"elasticsearch.request" "GetRequest" "elasticsearch.request" "GetRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -180,8 +180,8 @@ class Elasticsearch2NodeClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "CreateIndexAction" "elasticsearch.action" "CreateIndexAction"
"elasticsearch.request" "CreateIndexRequest" "elasticsearch.request" "CreateIndexRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -197,8 +197,8 @@ class Elasticsearch2NodeClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "ClusterHealthAction" "elasticsearch.action" "ClusterHealthAction"
"elasticsearch.request" "ClusterHealthRequest" "elasticsearch.request" "ClusterHealthRequest"
defaultTags() defaultTags()
@ -213,8 +213,8 @@ class Elasticsearch2NodeClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "GetAction" "elasticsearch.action" "GetAction"
"elasticsearch.request" "GetRequest" "elasticsearch.request" "GetRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -233,8 +233,8 @@ class Elasticsearch2NodeClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "PutMappingAction" "elasticsearch.action" "PutMappingAction"
"elasticsearch.request" "PutMappingRequest" "elasticsearch.request" "PutMappingRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -250,8 +250,8 @@ class Elasticsearch2NodeClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "IndexAction" "elasticsearch.action" "IndexAction"
"elasticsearch.request" "IndexRequest" "elasticsearch.request" "IndexRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -268,8 +268,8 @@ class Elasticsearch2NodeClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "GetAction" "elasticsearch.action" "GetAction"
"elasticsearch.request" "GetRequest" "elasticsearch.request" "GetRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName

View File

@ -90,11 +90,11 @@ class Elasticsearch2TransportClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.PEER_HOSTNAME" "localhost" "$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_HOST_IPV4" "127.0.0.1" "$Tags.PEER_HOST_IPV4" "127.0.0.1"
"$Tags.PEER_PORT" tcpPort "$Tags.PEER_PORT" tcpPort
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "ClusterHealthAction" "elasticsearch.action" "ClusterHealthAction"
"elasticsearch.request" "ClusterHealthRequest" "elasticsearch.request" "ClusterHealthRequest"
defaultTags() defaultTags()
@ -122,8 +122,8 @@ class Elasticsearch2TransportClientTest extends AgentTestRunner {
errored true errored true
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "GetAction" "elasticsearch.action" "GetAction"
"elasticsearch.request" "GetRequest" "elasticsearch.request" "GetRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -194,14 +194,14 @@ class Elasticsearch2TransportClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"elasticsearch.action" "CreateIndexAction"
"elasticsearch.request" "CreateIndexRequest"
"elasticsearch.request.indices" indexName
"$Tags.PEER_HOSTNAME" "localhost" "$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_HOST_IPV4" "127.0.0.1" "$Tags.PEER_HOST_IPV4" "127.0.0.1"
"$Tags.PEER_PORT" tcpPort "$Tags.PEER_PORT" tcpPort
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "CreateIndexAction"
"elasticsearch.request" "CreateIndexRequest"
"elasticsearch.request.indices" indexName
defaultTags() defaultTags()
} }
} }
@ -214,13 +214,13 @@ class Elasticsearch2TransportClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"elasticsearch.action" "ClusterHealthAction"
"elasticsearch.request" "ClusterHealthRequest"
"$Tags.PEER_HOSTNAME" "localhost" "$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_HOST_IPV4" "127.0.0.1" "$Tags.PEER_HOST_IPV4" "127.0.0.1"
"$Tags.PEER_PORT" tcpPort "$Tags.PEER_PORT" tcpPort
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "ClusterHealthAction"
"elasticsearch.request" "ClusterHealthRequest"
defaultTags() defaultTags()
} }
} }
@ -233,11 +233,11 @@ class Elasticsearch2TransportClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.PEER_HOSTNAME" "localhost" "$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_HOST_IPV4" "127.0.0.1" "$Tags.PEER_HOST_IPV4" "127.0.0.1"
"$Tags.PEER_PORT" tcpPort "$Tags.PEER_PORT" tcpPort
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "GetAction" "elasticsearch.action" "GetAction"
"elasticsearch.request" "GetRequest" "elasticsearch.request" "GetRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -256,8 +256,8 @@ class Elasticsearch2TransportClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "PutMappingAction" "elasticsearch.action" "PutMappingAction"
"elasticsearch.request" "PutMappingRequest" "elasticsearch.request" "PutMappingRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -273,11 +273,11 @@ class Elasticsearch2TransportClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.PEER_HOSTNAME" "localhost" "$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_HOST_IPV4" "127.0.0.1" "$Tags.PEER_HOST_IPV4" "127.0.0.1"
"$Tags.PEER_PORT" tcpPort "$Tags.PEER_PORT" tcpPort
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "IndexAction" "elasticsearch.action" "IndexAction"
"elasticsearch.request" "IndexRequest" "elasticsearch.request" "IndexRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -294,11 +294,11 @@ class Elasticsearch2TransportClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.PEER_HOSTNAME" "localhost" "$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_HOST_IPV4" "127.0.0.1" "$Tags.PEER_HOST_IPV4" "127.0.0.1"
"$Tags.PEER_PORT" tcpPort "$Tags.PEER_PORT" tcpPort
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "GetAction" "elasticsearch.action" "GetAction"
"elasticsearch.request" "GetRequest" "elasticsearch.request" "GetRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName

View File

@ -45,8 +45,8 @@ class Elasticsearch2SpringRepositoryTest extends AgentTestRunner {
errored false errored false
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "SearchAction" "elasticsearch.action" "SearchAction"
"elasticsearch.request" "SearchRequest" "elasticsearch.request" "SearchRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -77,8 +77,8 @@ class Elasticsearch2SpringRepositoryTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "IndexAction" "elasticsearch.action" "IndexAction"
"elasticsearch.request" "IndexRequest" "elasticsearch.request" "IndexRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -94,8 +94,8 @@ class Elasticsearch2SpringRepositoryTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "RefreshAction" "elasticsearch.action" "RefreshAction"
"elasticsearch.request" "RefreshRequest" "elasticsearch.request" "RefreshRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -122,8 +122,8 @@ class Elasticsearch2SpringRepositoryTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "GetAction" "elasticsearch.action" "GetAction"
"elasticsearch.request" "GetRequest" "elasticsearch.request" "GetRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -153,8 +153,8 @@ class Elasticsearch2SpringRepositoryTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "IndexAction" "elasticsearch.action" "IndexAction"
"elasticsearch.request" "IndexRequest" "elasticsearch.request" "IndexRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -170,8 +170,8 @@ class Elasticsearch2SpringRepositoryTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "RefreshAction" "elasticsearch.action" "RefreshAction"
"elasticsearch.request" "RefreshRequest" "elasticsearch.request" "RefreshRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -190,8 +190,8 @@ class Elasticsearch2SpringRepositoryTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "GetAction" "elasticsearch.action" "GetAction"
"elasticsearch.request" "GetRequest" "elasticsearch.request" "GetRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -220,8 +220,8 @@ class Elasticsearch2SpringRepositoryTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "DeleteAction" "elasticsearch.action" "DeleteAction"
"elasticsearch.request" "DeleteRequest" "elasticsearch.request" "DeleteRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -237,8 +237,8 @@ class Elasticsearch2SpringRepositoryTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "RefreshAction" "elasticsearch.action" "RefreshAction"
"elasticsearch.request" "RefreshRequest" "elasticsearch.request" "RefreshRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -257,8 +257,8 @@ class Elasticsearch2SpringRepositoryTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "SearchAction" "elasticsearch.action" "SearchAction"
"elasticsearch.request" "SearchRequest" "elasticsearch.request" "SearchRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName

View File

@ -85,8 +85,8 @@ class Elasticsearch2SpringTemplateTest extends AgentTestRunner {
errored true errored true
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "RefreshAction" "elasticsearch.action" "RefreshAction"
"elasticsearch.request" "RefreshRequest" "elasticsearch.request" "RefreshRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -148,8 +148,8 @@ class Elasticsearch2SpringTemplateTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "CreateIndexAction" "elasticsearch.action" "CreateIndexAction"
"elasticsearch.request" "CreateIndexRequest" "elasticsearch.request" "CreateIndexRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -165,8 +165,8 @@ class Elasticsearch2SpringTemplateTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "ClusterHealthAction" "elasticsearch.action" "ClusterHealthAction"
"elasticsearch.request" "ClusterHealthRequest" "elasticsearch.request" "ClusterHealthRequest"
defaultTags() defaultTags()
@ -181,8 +181,8 @@ class Elasticsearch2SpringTemplateTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "SearchAction" "elasticsearch.action" "SearchAction"
"elasticsearch.request" "SearchRequest" "elasticsearch.request" "SearchRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -199,8 +199,8 @@ class Elasticsearch2SpringTemplateTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "PutMappingAction" "elasticsearch.action" "PutMappingAction"
"elasticsearch.request" "PutMappingRequest" "elasticsearch.request" "PutMappingRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -216,8 +216,8 @@ class Elasticsearch2SpringTemplateTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "IndexAction" "elasticsearch.action" "IndexAction"
"elasticsearch.request" "IndexRequest" "elasticsearch.request" "IndexRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -234,8 +234,8 @@ class Elasticsearch2SpringTemplateTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "RefreshAction" "elasticsearch.action" "RefreshAction"
"elasticsearch.request" "RefreshRequest" "elasticsearch.request" "RefreshRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -254,8 +254,8 @@ class Elasticsearch2SpringTemplateTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "SearchAction" "elasticsearch.action" "SearchAction"
"elasticsearch.request" "SearchRequest" "elasticsearch.request" "SearchRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -338,8 +338,8 @@ class Elasticsearch2SpringTemplateTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "SearchAction" "elasticsearch.action" "SearchAction"
"elasticsearch.request" "SearchRequest" "elasticsearch.request" "SearchRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName

View File

@ -79,8 +79,8 @@ class Elasticsearch2NodeClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "ClusterHealthAction" "elasticsearch.action" "ClusterHealthAction"
"elasticsearch.request" "ClusterHealthRequest" "elasticsearch.request" "ClusterHealthRequest"
defaultTags() defaultTags()
@ -108,8 +108,8 @@ class Elasticsearch2NodeClientTest extends AgentTestRunner {
errored true errored true
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "GetAction" "elasticsearch.action" "GetAction"
"elasticsearch.request" "GetRequest" "elasticsearch.request" "GetRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -180,8 +180,8 @@ class Elasticsearch2NodeClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "CreateIndexAction" "elasticsearch.action" "CreateIndexAction"
"elasticsearch.request" "CreateIndexRequest" "elasticsearch.request" "CreateIndexRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -197,8 +197,8 @@ class Elasticsearch2NodeClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "ClusterHealthAction" "elasticsearch.action" "ClusterHealthAction"
"elasticsearch.request" "ClusterHealthRequest" "elasticsearch.request" "ClusterHealthRequest"
defaultTags() defaultTags()
@ -213,11 +213,11 @@ class Elasticsearch2NodeClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.PEER_HOSTNAME" "local" "$Tags.PEER_HOSTNAME" "local"
"$Tags.PEER_HOST_IPV4" "0.0.0.0" "$Tags.PEER_HOST_IPV4" "0.0.0.0"
"$Tags.PEER_PORT" 0 "$Tags.PEER_PORT" 0
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "GetAction" "elasticsearch.action" "GetAction"
"elasticsearch.request" "GetRequest" "elasticsearch.request" "GetRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -236,8 +236,8 @@ class Elasticsearch2NodeClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "PutMappingAction" "elasticsearch.action" "PutMappingAction"
"elasticsearch.request" "PutMappingRequest" "elasticsearch.request" "PutMappingRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -253,11 +253,11 @@ class Elasticsearch2NodeClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.PEER_HOSTNAME" "local" "$Tags.PEER_HOSTNAME" "local"
"$Tags.PEER_HOST_IPV4" "0.0.0.0" "$Tags.PEER_HOST_IPV4" "0.0.0.0"
"$Tags.PEER_PORT" 0 "$Tags.PEER_PORT" 0
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "IndexAction" "elasticsearch.action" "IndexAction"
"elasticsearch.request" "IndexRequest" "elasticsearch.request" "IndexRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -274,11 +274,11 @@ class Elasticsearch2NodeClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.PEER_HOSTNAME" "local" "$Tags.PEER_HOSTNAME" "local"
"$Tags.PEER_HOST_IPV4" "0.0.0.0" "$Tags.PEER_HOST_IPV4" "0.0.0.0"
"$Tags.PEER_PORT" 0 "$Tags.PEER_PORT" 0
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "GetAction" "elasticsearch.action" "GetAction"
"elasticsearch.request" "GetRequest" "elasticsearch.request" "GetRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName

View File

@ -90,11 +90,11 @@ class Elasticsearch2TransportClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.PEER_HOSTNAME" "127.0.0.1" "$Tags.PEER_HOSTNAME" "127.0.0.1"
"$Tags.PEER_HOST_IPV4" "127.0.0.1" "$Tags.PEER_HOST_IPV4" "127.0.0.1"
"$Tags.PEER_PORT" tcpPort "$Tags.PEER_PORT" tcpPort
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "ClusterHealthAction" "elasticsearch.action" "ClusterHealthAction"
"elasticsearch.request" "ClusterHealthRequest" "elasticsearch.request" "ClusterHealthRequest"
defaultTags() defaultTags()
@ -122,8 +122,8 @@ class Elasticsearch2TransportClientTest extends AgentTestRunner {
errored true errored true
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "GetAction" "elasticsearch.action" "GetAction"
"elasticsearch.request" "GetRequest" "elasticsearch.request" "GetRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -194,14 +194,14 @@ class Elasticsearch2TransportClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"elasticsearch.action" "CreateIndexAction"
"elasticsearch.request" "CreateIndexRequest"
"elasticsearch.request.indices" indexName
"$Tags.PEER_HOSTNAME" "127.0.0.1" "$Tags.PEER_HOSTNAME" "127.0.0.1"
"$Tags.PEER_HOST_IPV4" "127.0.0.1" "$Tags.PEER_HOST_IPV4" "127.0.0.1"
"$Tags.PEER_PORT" tcpPort "$Tags.PEER_PORT" tcpPort
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "CreateIndexAction"
"elasticsearch.request" "CreateIndexRequest"
"elasticsearch.request.indices" indexName
defaultTags() defaultTags()
} }
} }
@ -214,13 +214,13 @@ class Elasticsearch2TransportClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"elasticsearch.action" "ClusterHealthAction"
"elasticsearch.request" "ClusterHealthRequest"
"$Tags.PEER_HOSTNAME" "127.0.0.1" "$Tags.PEER_HOSTNAME" "127.0.0.1"
"$Tags.PEER_HOST_IPV4" "127.0.0.1" "$Tags.PEER_HOST_IPV4" "127.0.0.1"
"$Tags.PEER_PORT" tcpPort "$Tags.PEER_PORT" tcpPort
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "ClusterHealthAction"
"elasticsearch.request" "ClusterHealthRequest"
defaultTags() defaultTags()
} }
} }
@ -233,11 +233,11 @@ class Elasticsearch2TransportClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.PEER_HOSTNAME" "127.0.0.1" "$Tags.PEER_HOSTNAME" "127.0.0.1"
"$Tags.PEER_HOST_IPV4" "127.0.0.1" "$Tags.PEER_HOST_IPV4" "127.0.0.1"
"$Tags.PEER_PORT" tcpPort "$Tags.PEER_PORT" tcpPort
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "GetAction" "elasticsearch.action" "GetAction"
"elasticsearch.request" "GetRequest" "elasticsearch.request" "GetRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -256,8 +256,8 @@ class Elasticsearch2TransportClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "PutMappingAction" "elasticsearch.action" "PutMappingAction"
"elasticsearch.request" "PutMappingRequest" "elasticsearch.request" "PutMappingRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -273,11 +273,11 @@ class Elasticsearch2TransportClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.PEER_HOSTNAME" "127.0.0.1" "$Tags.PEER_HOSTNAME" "127.0.0.1"
"$Tags.PEER_HOST_IPV4" "127.0.0.1" "$Tags.PEER_HOST_IPV4" "127.0.0.1"
"$Tags.PEER_PORT" tcpPort "$Tags.PEER_PORT" tcpPort
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "IndexAction" "elasticsearch.action" "IndexAction"
"elasticsearch.request" "IndexRequest" "elasticsearch.request" "IndexRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -294,11 +294,11 @@ class Elasticsearch2TransportClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.PEER_HOSTNAME" "127.0.0.1" "$Tags.PEER_HOSTNAME" "127.0.0.1"
"$Tags.PEER_HOST_IPV4" "127.0.0.1" "$Tags.PEER_HOST_IPV4" "127.0.0.1"
"$Tags.PEER_PORT" tcpPort "$Tags.PEER_PORT" tcpPort
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "GetAction" "elasticsearch.action" "GetAction"
"elasticsearch.request" "GetRequest" "elasticsearch.request" "GetRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName

View File

@ -45,8 +45,8 @@ class Elasticsearch2SpringRepositoryTest extends AgentTestRunner {
errored false errored false
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "SearchAction" "elasticsearch.action" "SearchAction"
"elasticsearch.request" "SearchRequest" "elasticsearch.request" "SearchRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -77,11 +77,11 @@ class Elasticsearch2SpringRepositoryTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.PEER_HOSTNAME" "local" "$Tags.PEER_HOSTNAME" "local"
"$Tags.PEER_HOST_IPV4" "0.0.0.0" "$Tags.PEER_HOST_IPV4" "0.0.0.0"
"$Tags.PEER_PORT" 0 "$Tags.PEER_PORT" 0
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "IndexAction" "elasticsearch.action" "IndexAction"
"elasticsearch.request" "IndexRequest" "elasticsearch.request" "IndexRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -97,8 +97,8 @@ class Elasticsearch2SpringRepositoryTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "RefreshAction" "elasticsearch.action" "RefreshAction"
"elasticsearch.request" "RefreshRequest" "elasticsearch.request" "RefreshRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -125,11 +125,11 @@ class Elasticsearch2SpringRepositoryTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.PEER_HOSTNAME" "local" "$Tags.PEER_HOSTNAME" "local"
"$Tags.PEER_HOST_IPV4" "0.0.0.0" "$Tags.PEER_HOST_IPV4" "0.0.0.0"
"$Tags.PEER_PORT" 0 "$Tags.PEER_PORT" 0
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "GetAction" "elasticsearch.action" "GetAction"
"elasticsearch.request" "GetRequest" "elasticsearch.request" "GetRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -159,11 +159,11 @@ class Elasticsearch2SpringRepositoryTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.PEER_HOSTNAME" "local" "$Tags.PEER_HOSTNAME" "local"
"$Tags.PEER_HOST_IPV4" "0.0.0.0" "$Tags.PEER_HOST_IPV4" "0.0.0.0"
"$Tags.PEER_PORT" 0 "$Tags.PEER_PORT" 0
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "IndexAction" "elasticsearch.action" "IndexAction"
"elasticsearch.request" "IndexRequest" "elasticsearch.request" "IndexRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -179,8 +179,8 @@ class Elasticsearch2SpringRepositoryTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "RefreshAction" "elasticsearch.action" "RefreshAction"
"elasticsearch.request" "RefreshRequest" "elasticsearch.request" "RefreshRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -199,11 +199,11 @@ class Elasticsearch2SpringRepositoryTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.PEER_HOSTNAME" "local" "$Tags.PEER_HOSTNAME" "local"
"$Tags.PEER_HOST_IPV4" "0.0.0.0" "$Tags.PEER_HOST_IPV4" "0.0.0.0"
"$Tags.PEER_PORT" 0 "$Tags.PEER_PORT" 0
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "GetAction" "elasticsearch.action" "GetAction"
"elasticsearch.request" "GetRequest" "elasticsearch.request" "GetRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -232,11 +232,11 @@ class Elasticsearch2SpringRepositoryTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.PEER_HOSTNAME" "local" "$Tags.PEER_HOSTNAME" "local"
"$Tags.PEER_HOST_IPV4" "0.0.0.0" "$Tags.PEER_HOST_IPV4" "0.0.0.0"
"$Tags.PEER_PORT" 0 "$Tags.PEER_PORT" 0
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "DeleteAction" "elasticsearch.action" "DeleteAction"
"elasticsearch.request" "DeleteRequest" "elasticsearch.request" "DeleteRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -252,8 +252,8 @@ class Elasticsearch2SpringRepositoryTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "RefreshAction" "elasticsearch.action" "RefreshAction"
"elasticsearch.request" "RefreshRequest" "elasticsearch.request" "RefreshRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -272,8 +272,8 @@ class Elasticsearch2SpringRepositoryTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "SearchAction" "elasticsearch.action" "SearchAction"
"elasticsearch.request" "SearchRequest" "elasticsearch.request" "SearchRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName

View File

@ -85,8 +85,8 @@ class Elasticsearch2SpringTemplateTest extends AgentTestRunner {
errored true errored true
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "RefreshAction" "elasticsearch.action" "RefreshAction"
"elasticsearch.request" "RefreshRequest" "elasticsearch.request" "RefreshRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -148,8 +148,8 @@ class Elasticsearch2SpringTemplateTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "CreateIndexAction" "elasticsearch.action" "CreateIndexAction"
"elasticsearch.request" "CreateIndexRequest" "elasticsearch.request" "CreateIndexRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -165,8 +165,8 @@ class Elasticsearch2SpringTemplateTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "ClusterHealthAction" "elasticsearch.action" "ClusterHealthAction"
"elasticsearch.request" "ClusterHealthRequest" "elasticsearch.request" "ClusterHealthRequest"
defaultTags() defaultTags()
@ -181,8 +181,8 @@ class Elasticsearch2SpringTemplateTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "SearchAction" "elasticsearch.action" "SearchAction"
"elasticsearch.request" "SearchRequest" "elasticsearch.request" "SearchRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -199,8 +199,8 @@ class Elasticsearch2SpringTemplateTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "PutMappingAction" "elasticsearch.action" "PutMappingAction"
"elasticsearch.request" "PutMappingRequest" "elasticsearch.request" "PutMappingRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -216,11 +216,11 @@ class Elasticsearch2SpringTemplateTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.PEER_HOSTNAME" "local" "$Tags.PEER_HOSTNAME" "local"
"$Tags.PEER_HOST_IPV4" "0.0.0.0" "$Tags.PEER_HOST_IPV4" "0.0.0.0"
"$Tags.PEER_PORT" 0 "$Tags.PEER_PORT" 0
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "IndexAction" "elasticsearch.action" "IndexAction"
"elasticsearch.request" "IndexRequest" "elasticsearch.request" "IndexRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -237,8 +237,8 @@ class Elasticsearch2SpringTemplateTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "RefreshAction" "elasticsearch.action" "RefreshAction"
"elasticsearch.request" "RefreshRequest" "elasticsearch.request" "RefreshRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -257,8 +257,8 @@ class Elasticsearch2SpringTemplateTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "SearchAction" "elasticsearch.action" "SearchAction"
"elasticsearch.request" "SearchRequest" "elasticsearch.request" "SearchRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -338,8 +338,8 @@ class Elasticsearch2SpringTemplateTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "SearchAction" "elasticsearch.action" "SearchAction"
"elasticsearch.request" "SearchRequest" "elasticsearch.request" "SearchRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName

View File

@ -85,8 +85,8 @@ class Elasticsearch53NodeClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "ClusterHealthAction" "elasticsearch.action" "ClusterHealthAction"
"elasticsearch.request" "ClusterHealthRequest" "elasticsearch.request" "ClusterHealthRequest"
defaultTags() defaultTags()
@ -114,8 +114,8 @@ class Elasticsearch53NodeClientTest extends AgentTestRunner {
errored true errored true
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "GetAction" "elasticsearch.action" "GetAction"
"elasticsearch.request" "GetRequest" "elasticsearch.request" "GetRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -187,8 +187,8 @@ class Elasticsearch53NodeClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "CreateIndexAction" "elasticsearch.action" "CreateIndexAction"
"elasticsearch.request" "CreateIndexRequest" "elasticsearch.request" "CreateIndexRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -204,8 +204,8 @@ class Elasticsearch53NodeClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "ClusterHealthAction" "elasticsearch.action" "ClusterHealthAction"
"elasticsearch.request" "ClusterHealthRequest" "elasticsearch.request" "ClusterHealthRequest"
defaultTags() defaultTags()
@ -220,8 +220,8 @@ class Elasticsearch53NodeClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "GetAction" "elasticsearch.action" "GetAction"
"elasticsearch.request" "GetRequest" "elasticsearch.request" "GetRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -240,8 +240,8 @@ class Elasticsearch53NodeClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "PutMappingAction" "elasticsearch.action" "PutMappingAction"
"elasticsearch.request" "PutMappingRequest" "elasticsearch.request" "PutMappingRequest"
defaultTags() defaultTags()
@ -256,8 +256,8 @@ class Elasticsearch53NodeClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "IndexAction" "elasticsearch.action" "IndexAction"
"elasticsearch.request" "IndexRequest" "elasticsearch.request" "IndexRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -279,8 +279,8 @@ class Elasticsearch53NodeClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "GetAction" "elasticsearch.action" "GetAction"
"elasticsearch.request" "GetRequest" "elasticsearch.request" "GetRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName

View File

@ -97,11 +97,11 @@ class Elasticsearch53TransportClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.PEER_HOSTNAME" "localhost" "$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_HOST_IPV4" "127.0.0.1" "$Tags.PEER_HOST_IPV4" "127.0.0.1"
"$Tags.PEER_PORT" tcpPort "$Tags.PEER_PORT" tcpPort
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "ClusterHealthAction" "elasticsearch.action" "ClusterHealthAction"
"elasticsearch.request" "ClusterHealthRequest" "elasticsearch.request" "ClusterHealthRequest"
defaultTags() defaultTags()
@ -129,8 +129,8 @@ class Elasticsearch53TransportClientTest extends AgentTestRunner {
errored true errored true
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "GetAction" "elasticsearch.action" "GetAction"
"elasticsearch.request" "GetRequest" "elasticsearch.request" "GetRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -201,11 +201,11 @@ class Elasticsearch53TransportClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.PEER_HOSTNAME" "localhost" "$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_HOST_IPV4" "127.0.0.1" "$Tags.PEER_HOST_IPV4" "127.0.0.1"
"$Tags.PEER_PORT" tcpPort "$Tags.PEER_PORT" tcpPort
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "CreateIndexAction" "elasticsearch.action" "CreateIndexAction"
"elasticsearch.request" "CreateIndexRequest" "elasticsearch.request" "CreateIndexRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -221,11 +221,11 @@ class Elasticsearch53TransportClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.PEER_HOSTNAME" "localhost" "$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_HOST_IPV4" "127.0.0.1" "$Tags.PEER_HOST_IPV4" "127.0.0.1"
"$Tags.PEER_PORT" tcpPort "$Tags.PEER_PORT" tcpPort
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "GetAction" "elasticsearch.action" "GetAction"
"elasticsearch.request" "GetRequest" "elasticsearch.request" "GetRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -244,8 +244,8 @@ class Elasticsearch53TransportClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "PutMappingAction" "elasticsearch.action" "PutMappingAction"
"elasticsearch.request" "PutMappingRequest" "elasticsearch.request" "PutMappingRequest"
defaultTags() defaultTags()
@ -260,11 +260,11 @@ class Elasticsearch53TransportClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.PEER_HOSTNAME" "localhost" "$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_HOST_IPV4" "127.0.0.1" "$Tags.PEER_HOST_IPV4" "127.0.0.1"
"$Tags.PEER_PORT" tcpPort "$Tags.PEER_PORT" tcpPort
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "IndexAction" "elasticsearch.action" "IndexAction"
"elasticsearch.request" "IndexRequest" "elasticsearch.request" "IndexRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -286,11 +286,11 @@ class Elasticsearch53TransportClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.PEER_HOSTNAME" "localhost" "$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_HOST_IPV4" "127.0.0.1" "$Tags.PEER_HOST_IPV4" "127.0.0.1"
"$Tags.PEER_PORT" tcpPort "$Tags.PEER_PORT" tcpPort
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "GetAction" "elasticsearch.action" "GetAction"
"elasticsearch.request" "GetRequest" "elasticsearch.request" "GetRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName

View File

@ -90,8 +90,8 @@ class Elasticsearch53SpringRepositoryTest extends AgentTestRunner {
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "SearchAction" "elasticsearch.action" "SearchAction"
"elasticsearch.request" "SearchRequest" "elasticsearch.request" "SearchRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -133,8 +133,8 @@ class Elasticsearch53SpringRepositoryTest extends AgentTestRunner {
childOf(span(0)) childOf(span(0))
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "RefreshAction" "elasticsearch.action" "RefreshAction"
"elasticsearch.request" "RefreshRequest" "elasticsearch.request" "RefreshRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -152,8 +152,8 @@ class Elasticsearch53SpringRepositoryTest extends AgentTestRunner {
childOf(span(0)) childOf(span(0))
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "IndexAction" "elasticsearch.action" "IndexAction"
"elasticsearch.request" "IndexRequest" "elasticsearch.request" "IndexRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -194,8 +194,8 @@ class Elasticsearch53SpringRepositoryTest extends AgentTestRunner {
childOf(span(0)) childOf(span(0))
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "GetAction" "elasticsearch.action" "GetAction"
"elasticsearch.request" "GetRequest" "elasticsearch.request" "GetRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -235,8 +235,8 @@ class Elasticsearch53SpringRepositoryTest extends AgentTestRunner {
childOf(span(0)) childOf(span(0))
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "RefreshAction" "elasticsearch.action" "RefreshAction"
"elasticsearch.request" "RefreshRequest" "elasticsearch.request" "RefreshRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -253,8 +253,8 @@ class Elasticsearch53SpringRepositoryTest extends AgentTestRunner {
childOf(span(0)) childOf(span(0))
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "IndexAction" "elasticsearch.action" "IndexAction"
"elasticsearch.request" "IndexRequest" "elasticsearch.request" "IndexRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -287,8 +287,8 @@ class Elasticsearch53SpringRepositoryTest extends AgentTestRunner {
childOf(span(0)) childOf(span(0))
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "GetAction" "elasticsearch.action" "GetAction"
"elasticsearch.request" "GetRequest" "elasticsearch.request" "GetRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -328,8 +328,8 @@ class Elasticsearch53SpringRepositoryTest extends AgentTestRunner {
childOf(span(0)) childOf(span(0))
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "RefreshAction" "elasticsearch.action" "RefreshAction"
"elasticsearch.request" "RefreshRequest" "elasticsearch.request" "RefreshRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -346,8 +346,8 @@ class Elasticsearch53SpringRepositoryTest extends AgentTestRunner {
childOf(span(0)) childOf(span(0))
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "DeleteAction" "elasticsearch.action" "DeleteAction"
"elasticsearch.request" "DeleteRequest" "elasticsearch.request" "DeleteRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -380,8 +380,8 @@ class Elasticsearch53SpringRepositoryTest extends AgentTestRunner {
childOf(span(0)) childOf(span(0))
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "SearchAction" "elasticsearch.action" "SearchAction"
"elasticsearch.request" "SearchRequest" "elasticsearch.request" "SearchRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName

View File

@ -105,8 +105,8 @@ class Elasticsearch53SpringTemplateTest extends AgentTestRunner {
errored true errored true
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "RefreshAction" "elasticsearch.action" "RefreshAction"
"elasticsearch.request" "RefreshRequest" "elasticsearch.request" "RefreshRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -172,8 +172,8 @@ class Elasticsearch53SpringTemplateTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "CreateIndexAction" "elasticsearch.action" "CreateIndexAction"
"elasticsearch.request" "CreateIndexRequest" "elasticsearch.request" "CreateIndexRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -189,8 +189,8 @@ class Elasticsearch53SpringTemplateTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "ClusterHealthAction" "elasticsearch.action" "ClusterHealthAction"
"elasticsearch.request" "ClusterHealthRequest" "elasticsearch.request" "ClusterHealthRequest"
defaultTags() defaultTags()
@ -205,8 +205,8 @@ class Elasticsearch53SpringTemplateTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "SearchAction" "elasticsearch.action" "SearchAction"
"elasticsearch.request" "SearchRequest" "elasticsearch.request" "SearchRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -223,8 +223,8 @@ class Elasticsearch53SpringTemplateTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "PutMappingAction" "elasticsearch.action" "PutMappingAction"
"elasticsearch.request" "PutMappingRequest" "elasticsearch.request" "PutMappingRequest"
defaultTags() defaultTags()
@ -239,8 +239,8 @@ class Elasticsearch53SpringTemplateTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "IndexAction" "elasticsearch.action" "IndexAction"
"elasticsearch.request" "IndexRequest" "elasticsearch.request" "IndexRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -262,8 +262,8 @@ class Elasticsearch53SpringTemplateTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "RefreshAction" "elasticsearch.action" "RefreshAction"
"elasticsearch.request" "RefreshRequest" "elasticsearch.request" "RefreshRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -282,8 +282,8 @@ class Elasticsearch53SpringTemplateTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "SearchAction" "elasticsearch.action" "SearchAction"
"elasticsearch.request" "SearchRequest" "elasticsearch.request" "SearchRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -366,8 +366,8 @@ class Elasticsearch53SpringTemplateTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "SearchAction" "elasticsearch.action" "SearchAction"
"elasticsearch.request" "SearchRequest" "elasticsearch.request" "SearchRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName

View File

@ -85,8 +85,8 @@ class Elasticsearch5NodeClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "ClusterHealthAction" "elasticsearch.action" "ClusterHealthAction"
"elasticsearch.request" "ClusterHealthRequest" "elasticsearch.request" "ClusterHealthRequest"
defaultTags() defaultTags()
@ -114,8 +114,8 @@ class Elasticsearch5NodeClientTest extends AgentTestRunner {
errored true errored true
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "GetAction" "elasticsearch.action" "GetAction"
"elasticsearch.request" "GetRequest" "elasticsearch.request" "GetRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -187,8 +187,8 @@ class Elasticsearch5NodeClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "CreateIndexAction" "elasticsearch.action" "CreateIndexAction"
"elasticsearch.request" "CreateIndexRequest" "elasticsearch.request" "CreateIndexRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -204,8 +204,8 @@ class Elasticsearch5NodeClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "ClusterHealthAction" "elasticsearch.action" "ClusterHealthAction"
"elasticsearch.request" "ClusterHealthRequest" "elasticsearch.request" "ClusterHealthRequest"
defaultTags() defaultTags()
@ -220,8 +220,8 @@ class Elasticsearch5NodeClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "GetAction" "elasticsearch.action" "GetAction"
"elasticsearch.request" "GetRequest" "elasticsearch.request" "GetRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -240,8 +240,8 @@ class Elasticsearch5NodeClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "PutMappingAction" "elasticsearch.action" "PutMappingAction"
"elasticsearch.request" "PutMappingRequest" "elasticsearch.request" "PutMappingRequest"
defaultTags() defaultTags()
@ -256,8 +256,8 @@ class Elasticsearch5NodeClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "IndexAction" "elasticsearch.action" "IndexAction"
"elasticsearch.request" "IndexRequest" "elasticsearch.request" "IndexRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -278,8 +278,8 @@ class Elasticsearch5NodeClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "GetAction" "elasticsearch.action" "GetAction"
"elasticsearch.request" "GetRequest" "elasticsearch.request" "GetRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName

View File

@ -97,11 +97,11 @@ class Elasticsearch5TransportClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.PEER_HOSTNAME" String "$Tags.PEER_HOSTNAME" String
"$Tags.PEER_HOST_IPV4" "127.0.0.1" "$Tags.PEER_HOST_IPV4" "127.0.0.1"
"$Tags.PEER_PORT" tcpPort "$Tags.PEER_PORT" tcpPort
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "ClusterHealthAction" "elasticsearch.action" "ClusterHealthAction"
"elasticsearch.request" "ClusterHealthRequest" "elasticsearch.request" "ClusterHealthRequest"
defaultTags() defaultTags()
@ -129,8 +129,8 @@ class Elasticsearch5TransportClientTest extends AgentTestRunner {
errored true errored true
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "GetAction" "elasticsearch.action" "GetAction"
"elasticsearch.request" "GetRequest" "elasticsearch.request" "GetRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -201,14 +201,14 @@ class Elasticsearch5TransportClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"elasticsearch.action" "CreateIndexAction"
"elasticsearch.request" "CreateIndexRequest"
"elasticsearch.request.indices" indexName
"$Tags.PEER_HOSTNAME" String "$Tags.PEER_HOSTNAME" String
"$Tags.PEER_HOST_IPV4" "127.0.0.1" "$Tags.PEER_HOST_IPV4" "127.0.0.1"
"$Tags.PEER_PORT" tcpPort "$Tags.PEER_PORT" tcpPort
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "CreateIndexAction"
"elasticsearch.request" "CreateIndexRequest"
"elasticsearch.request.indices" indexName
defaultTags() defaultTags()
} }
} }
@ -221,11 +221,11 @@ class Elasticsearch5TransportClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.PEER_HOSTNAME" String "$Tags.PEER_HOSTNAME" String
"$Tags.PEER_HOST_IPV4" "127.0.0.1" "$Tags.PEER_HOST_IPV4" "127.0.0.1"
"$Tags.PEER_PORT" tcpPort "$Tags.PEER_PORT" tcpPort
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "GetAction" "elasticsearch.action" "GetAction"
"elasticsearch.request" "GetRequest" "elasticsearch.request" "GetRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -244,8 +244,8 @@ class Elasticsearch5TransportClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "PutMappingAction" "elasticsearch.action" "PutMappingAction"
"elasticsearch.request" "PutMappingRequest" "elasticsearch.request" "PutMappingRequest"
defaultTags() defaultTags()
@ -260,11 +260,11 @@ class Elasticsearch5TransportClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.PEER_HOSTNAME" String "$Tags.PEER_HOSTNAME" String
"$Tags.PEER_HOST_IPV4" "127.0.0.1" "$Tags.PEER_HOST_IPV4" "127.0.0.1"
"$Tags.PEER_PORT" tcpPort "$Tags.PEER_PORT" tcpPort
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "IndexAction" "elasticsearch.action" "IndexAction"
"elasticsearch.request" "IndexRequest" "elasticsearch.request" "IndexRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -285,11 +285,11 @@ class Elasticsearch5TransportClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.PEER_HOSTNAME" String "$Tags.PEER_HOSTNAME" String
"$Tags.PEER_HOST_IPV4" "127.0.0.1" "$Tags.PEER_HOST_IPV4" "127.0.0.1"
"$Tags.PEER_PORT" tcpPort "$Tags.PEER_PORT" tcpPort
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "GetAction" "elasticsearch.action" "GetAction"
"elasticsearch.request" "GetRequest" "elasticsearch.request" "GetRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName

View File

@ -82,8 +82,8 @@ class Elasticsearch6NodeClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "ClusterHealthAction" "elasticsearch.action" "ClusterHealthAction"
"elasticsearch.request" "ClusterHealthRequest" "elasticsearch.request" "ClusterHealthRequest"
defaultTags() defaultTags()
@ -111,8 +111,8 @@ class Elasticsearch6NodeClientTest extends AgentTestRunner {
errored true errored true
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "GetAction" "elasticsearch.action" "GetAction"
"elasticsearch.request" "GetRequest" "elasticsearch.request" "GetRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -183,8 +183,8 @@ class Elasticsearch6NodeClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "CreateIndexAction" "elasticsearch.action" "CreateIndexAction"
"elasticsearch.request" "CreateIndexRequest" "elasticsearch.request" "CreateIndexRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -200,8 +200,8 @@ class Elasticsearch6NodeClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "GetAction" "elasticsearch.action" "GetAction"
"elasticsearch.request" "GetRequest" "elasticsearch.request" "GetRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -220,8 +220,8 @@ class Elasticsearch6NodeClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "PutMappingAction" "elasticsearch.action" "PutMappingAction"
"elasticsearch.request" "PutMappingRequest" "elasticsearch.request" "PutMappingRequest"
defaultTags() defaultTags()
@ -236,8 +236,8 @@ class Elasticsearch6NodeClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "IndexAction" "elasticsearch.action" "IndexAction"
"elasticsearch.request" "IndexRequest" "elasticsearch.request" "IndexRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -259,8 +259,8 @@ class Elasticsearch6NodeClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "GetAction" "elasticsearch.action" "GetAction"
"elasticsearch.request" "GetRequest" "elasticsearch.request" "GetRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName

View File

@ -94,11 +94,11 @@ class Elasticsearch6TransportClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.PEER_HOSTNAME" "localhost" "$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_HOST_IPV4" "127.0.0.1" "$Tags.PEER_HOST_IPV4" "127.0.0.1"
"$Tags.PEER_PORT" tcpPort "$Tags.PEER_PORT" tcpPort
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "ClusterHealthAction" "elasticsearch.action" "ClusterHealthAction"
"elasticsearch.request" "ClusterHealthRequest" "elasticsearch.request" "ClusterHealthRequest"
defaultTags() defaultTags()
@ -126,8 +126,8 @@ class Elasticsearch6TransportClientTest extends AgentTestRunner {
errored true errored true
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "GetAction" "elasticsearch.action" "GetAction"
"elasticsearch.request" "GetRequest" "elasticsearch.request" "GetRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -198,11 +198,11 @@ class Elasticsearch6TransportClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.PEER_HOSTNAME" "localhost" "$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_HOST_IPV4" "127.0.0.1" "$Tags.PEER_HOST_IPV4" "127.0.0.1"
"$Tags.PEER_PORT" tcpPort "$Tags.PEER_PORT" tcpPort
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "CreateIndexAction" "elasticsearch.action" "CreateIndexAction"
"elasticsearch.request" "CreateIndexRequest" "elasticsearch.request" "CreateIndexRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -218,11 +218,11 @@ class Elasticsearch6TransportClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.PEER_HOSTNAME" "localhost" "$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_HOST_IPV4" "127.0.0.1" "$Tags.PEER_HOST_IPV4" "127.0.0.1"
"$Tags.PEER_PORT" tcpPort "$Tags.PEER_PORT" tcpPort
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "GetAction" "elasticsearch.action" "GetAction"
"elasticsearch.request" "GetRequest" "elasticsearch.request" "GetRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -241,8 +241,8 @@ class Elasticsearch6TransportClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "PutMappingAction" "elasticsearch.action" "PutMappingAction"
"elasticsearch.request" "PutMappingRequest" "elasticsearch.request" "PutMappingRequest"
defaultTags() defaultTags()
@ -257,11 +257,11 @@ class Elasticsearch6TransportClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.PEER_HOSTNAME" "localhost" "$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_HOST_IPV4" "127.0.0.1" "$Tags.PEER_HOST_IPV4" "127.0.0.1"
"$Tags.PEER_PORT" tcpPort "$Tags.PEER_PORT" tcpPort
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "IndexAction" "elasticsearch.action" "IndexAction"
"elasticsearch.request" "IndexRequest" "elasticsearch.request" "IndexRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName
@ -283,11 +283,11 @@ class Elasticsearch6TransportClientTest extends AgentTestRunner {
spanType DDSpanTypes.ELASTICSEARCH spanType DDSpanTypes.ELASTICSEARCH
tags { tags {
"$Tags.COMPONENT" "elasticsearch-java" "$Tags.COMPONENT" "elasticsearch-java"
"$Tags.DB_TYPE" "elasticsearch"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.PEER_HOSTNAME" "localhost" "$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_HOST_IPV4" "127.0.0.1" "$Tags.PEER_HOST_IPV4" "127.0.0.1"
"$Tags.PEER_PORT" tcpPort "$Tags.PEER_PORT" tcpPort
"$Tags.DB_TYPE" "elasticsearch"
"elasticsearch.action" "GetAction" "elasticsearch.action" "GetAction"
"elasticsearch.request" "GetRequest" "elasticsearch.request" "GetRequest"
"elasticsearch.request.indices" indexName "elasticsearch.request.indices" indexName

View File

@ -100,25 +100,24 @@ class GlassFishServerTest extends HttpServerTest<GlassFish, Servlet3Decorator> {
parent() parent()
} }
tags { tags {
"$Tags.COMPONENT" serverDecorator.component()
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
"$Tags.PEER_HOSTNAME" { it == "localhost" || it == "127.0.0.1" }
"$Tags.PEER_HOST_IPV4" { it == null || it == "127.0.0.1" } // Optional
"$Tags.PEER_PORT" Integer
"$Tags.HTTP_STATUS" endpoint.status
"$Tags.HTTP_METHOD" method
"$Tags.HTTP_URL" "${endpoint.resolve(address)}"
"servlet.context" "/$context" "servlet.context" "/$context"
"servlet.path" endpoint.path "servlet.path" endpoint.path
"span.origin.type" { it.startsWith("TestServlets\$") || it == DefaultServlet.name } "span.origin.type" { it.startsWith("TestServlets\$") || it == DefaultServlet.name }
defaultTags(true)
"$Tags.COMPONENT" serverDecorator.component()
if (endpoint.errored) { if (endpoint.errored) {
"$Tags.ERROR" endpoint.errored "$Tags.ERROR" endpoint.errored
"error.msg" { it == null || it == EXCEPTION.body } "error.msg" { it == null || it == EXCEPTION.body }
"error.type" { it == null || it == Exception.name } "error.type" { it == null || it == Exception.name }
"error.stack" { it == null || it instanceof String } "error.stack" { it == null || it instanceof String }
} }
"$Tags.HTTP_STATUS" endpoint.status defaultTags(true)
"$Tags.HTTP_URL" "${endpoint.resolve(address)}"
"$Tags.PEER_HOSTNAME" { it == "localhost" || it == "127.0.0.1" }
"$Tags.PEER_PORT" Integer
"$Tags.PEER_HOST_IPV4" { it == null || it == "127.0.0.1" } // Optional
"$Tags.HTTP_METHOD" method
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
} }
} }
} }

View File

@ -91,9 +91,9 @@ class GrpcStreamingTest extends AgentTestRunner {
childOf trace(1).get(0) childOf trace(1).get(0)
errored false errored false
tags { tags {
"status.code" "OK"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
"$Tags.COMPONENT" "grpc-server" "$Tags.COMPONENT" "grpc-server"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
"status.code" "OK"
defaultTags(true) defaultTags(true)
} }
} }
@ -106,8 +106,8 @@ class GrpcStreamingTest extends AgentTestRunner {
childOf span(0) childOf span(0)
errored false errored false
tags { tags {
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
"$Tags.COMPONENT" "grpc-server" "$Tags.COMPONENT" "grpc-server"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
"message.type" "example.Helloworld\$Response" "message.type" "example.Helloworld\$Response"
defaultTags() defaultTags()
} }
@ -123,9 +123,9 @@ class GrpcStreamingTest extends AgentTestRunner {
parent() parent()
errored false errored false
tags { tags {
"status.code" "OK"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.COMPONENT" "grpc-client" "$Tags.COMPONENT" "grpc-client"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"status.code" "OK"
defaultTags() defaultTags()
} }
} }
@ -138,8 +138,8 @@ class GrpcStreamingTest extends AgentTestRunner {
childOf span(0) childOf span(0)
errored false errored false
tags { tags {
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.COMPONENT" "grpc-client" "$Tags.COMPONENT" "grpc-client"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"message.type" "example.Helloworld\$Response" "message.type" "example.Helloworld\$Response"
defaultTags() defaultTags()
} }

View File

@ -47,9 +47,9 @@ class GrpcTest extends AgentTestRunner {
childOf trace(1).get(0) childOf trace(1).get(0)
errored false errored false
tags { tags {
"status.code" "OK"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
"$Tags.COMPONENT" "grpc-server" "$Tags.COMPONENT" "grpc-server"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
"status.code" "OK"
defaultTags(true) defaultTags(true)
} }
} }
@ -61,8 +61,8 @@ class GrpcTest extends AgentTestRunner {
childOf span(0) childOf span(0)
errored false errored false
tags { tags {
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
"$Tags.COMPONENT" "grpc-server" "$Tags.COMPONENT" "grpc-server"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
"message.type" "example.Helloworld\$Request" "message.type" "example.Helloworld\$Request"
defaultTags() defaultTags()
} }
@ -77,9 +77,9 @@ class GrpcTest extends AgentTestRunner {
parent() parent()
errored false errored false
tags { tags {
"status.code" "OK"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.COMPONENT" "grpc-client" "$Tags.COMPONENT" "grpc-client"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"status.code" "OK"
defaultTags() defaultTags()
} }
} }
@ -91,8 +91,8 @@ class GrpcTest extends AgentTestRunner {
childOf span(0) childOf span(0)
errored false errored false
tags { tags {
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.COMPONENT" "grpc-client" "$Tags.COMPONENT" "grpc-client"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"message.type" "example.Helloworld\$Response" "message.type" "example.Helloworld\$Response"
defaultTags() defaultTags()
} }
@ -139,10 +139,10 @@ class GrpcTest extends AgentTestRunner {
childOf trace(1).get(0) childOf trace(1).get(0)
errored true errored true
tags { tags {
"$Tags.COMPONENT" "grpc-server"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
"status.code" "${status.code.name()}" "status.code" "${status.code.name()}"
"status.description" description "status.description" description
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
"$Tags.COMPONENT" "grpc-server"
if (status.cause != null) { if (status.cause != null) {
errorTags status.cause.class, status.cause.message errorTags status.cause.class, status.cause.message
} else { } else {
@ -159,8 +159,8 @@ class GrpcTest extends AgentTestRunner {
childOf span(0) childOf span(0)
errored false errored false
tags { tags {
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
"$Tags.COMPONENT" "grpc-server" "$Tags.COMPONENT" "grpc-server"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
"message.type" "example.Helloworld\$Request" "message.type" "example.Helloworld\$Request"
defaultTags() defaultTags()
} }
@ -175,10 +175,10 @@ class GrpcTest extends AgentTestRunner {
parent() parent()
errored true errored true
tags { tags {
"$Tags.COMPONENT" "grpc-client"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"status.code" "${status.code.name()}" "status.code" "${status.code.name()}"
"status.description" description "status.description" description
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.COMPONENT" "grpc-client"
tag "error", true tag "error", true
defaultTags() defaultTags()
} }
@ -231,8 +231,8 @@ class GrpcTest extends AgentTestRunner {
childOf trace(1).get(0) childOf trace(1).get(0)
errored true errored true
tags { tags {
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
"$Tags.COMPONENT" "grpc-server" "$Tags.COMPONENT" "grpc-server"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
errorTags error.class, error.message errorTags error.class, error.message
defaultTags(true) defaultTags(true)
} }
@ -245,8 +245,8 @@ class GrpcTest extends AgentTestRunner {
childOf span(0) childOf span(0)
errored false errored false
tags { tags {
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
"$Tags.COMPONENT" "grpc-server" "$Tags.COMPONENT" "grpc-server"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
"message.type" "example.Helloworld\$Request" "message.type" "example.Helloworld\$Request"
defaultTags() defaultTags()
} }
@ -261,9 +261,9 @@ class GrpcTest extends AgentTestRunner {
parent() parent()
errored true errored true
tags { tags {
"status.code" "UNKNOWN"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.COMPONENT" "grpc-client" "$Tags.COMPONENT" "grpc-client"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"status.code" "UNKNOWN"
tag "error", true tag "error", true
defaultTags() defaultTags()
} }

View File

@ -314,10 +314,9 @@ class SessionTest extends AbstractHibernateTest {
childOf span(0) childOf span(0)
errored(true) errored(true)
tags { tags {
errorTags(MappingException, "Unknown entity: java.lang.Long")
"$Tags.COMPONENT" "java-hibernate" "$Tags.COMPONENT" "java-hibernate"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
errorTags(MappingException, "Unknown entity: java.lang.Long")
defaultTags() defaultTags()
} }
} }

View File

@ -247,10 +247,9 @@ class SessionTest extends AbstractHibernateTest {
childOf span(0) childOf span(0)
errored(true) errored(true)
tags { tags {
errorTags(MappingException, "Unknown entity: java.lang.Long")
"$Tags.COMPONENT" "java-hibernate" "$Tags.COMPONENT" "java-hibernate"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
errorTags(MappingException, "Unknown entity: java.lang.Long")
defaultTags() defaultTags()
} }
} }

View File

@ -162,9 +162,9 @@ class ProcedureCallTest extends AgentTestRunner {
childOf span(0) childOf span(0)
errored(true) errored(true)
tags { tags {
errorTags(SQLGrammarException, "could not prepare statement")
"$Tags.COMPONENT" "java-hibernate" "$Tags.COMPONENT" "java-hibernate"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
errorTags(SQLGrammarException, "could not prepare statement")
defaultTags() defaultTags()
} }
} }

View File

@ -98,11 +98,11 @@ class HttpUrlConnectionTest extends HttpClientTest<HttpUrlConnectionDecorator> {
tags { tags {
"$Tags.COMPONENT" "http-url-connection" "$Tags.COMPONENT" "http-url-connection"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_PORT" server.address.port
"$Tags.HTTP_URL" "$url" "$Tags.HTTP_URL" "$url"
"$Tags.HTTP_METHOD" "GET" "$Tags.HTTP_METHOD" "GET"
"$Tags.HTTP_STATUS" STATUS "$Tags.HTTP_STATUS" STATUS
"$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_PORT" server.address.port
defaultTags() defaultTags()
} }
} }
@ -116,11 +116,11 @@ class HttpUrlConnectionTest extends HttpClientTest<HttpUrlConnectionDecorator> {
tags { tags {
"$Tags.COMPONENT" "http-url-connection" "$Tags.COMPONENT" "http-url-connection"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_PORT" server.address.port
"$Tags.HTTP_URL" "$url" "$Tags.HTTP_URL" "$url"
"$Tags.HTTP_METHOD" "GET" "$Tags.HTTP_METHOD" "GET"
"$Tags.HTTP_STATUS" STATUS "$Tags.HTTP_STATUS" STATUS
"$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_PORT" server.address.port
defaultTags() defaultTags()
} }
} }
@ -183,11 +183,11 @@ class HttpUrlConnectionTest extends HttpClientTest<HttpUrlConnectionDecorator> {
tags { tags {
"$Tags.COMPONENT" "http-url-connection" "$Tags.COMPONENT" "http-url-connection"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_PORT" server.address.port
"$Tags.HTTP_URL" "$url" "$Tags.HTTP_URL" "$url"
"$Tags.HTTP_METHOD" "GET" "$Tags.HTTP_METHOD" "GET"
"$Tags.HTTP_STATUS" STATUS "$Tags.HTTP_STATUS" STATUS
"$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_PORT" server.address.port
defaultTags() defaultTags()
} }
} }
@ -201,11 +201,11 @@ class HttpUrlConnectionTest extends HttpClientTest<HttpUrlConnectionDecorator> {
tags { tags {
"$Tags.COMPONENT" "http-url-connection" "$Tags.COMPONENT" "http-url-connection"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_PORT" server.address.port
"$Tags.HTTP_URL" "$url" "$Tags.HTTP_URL" "$url"
"$Tags.HTTP_METHOD" "GET" "$Tags.HTTP_METHOD" "GET"
"$Tags.HTTP_STATUS" STATUS "$Tags.HTTP_STATUS" STATUS
"$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_PORT" server.address.port
defaultTags() defaultTags()
} }
} }
@ -253,11 +253,11 @@ class HttpUrlConnectionTest extends HttpClientTest<HttpUrlConnectionDecorator> {
tags { tags {
"$Tags.COMPONENT" "http-url-connection" "$Tags.COMPONENT" "http-url-connection"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_PORT" server.address.port
"$Tags.HTTP_URL" "$url" "$Tags.HTTP_URL" "$url"
"$Tags.HTTP_METHOD" "GET" "$Tags.HTTP_METHOD" "GET"
"$Tags.HTTP_STATUS" STATUS "$Tags.HTTP_STATUS" STATUS
"$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_PORT" server.address.port
defaultTags() defaultTags()
} }
} }
@ -321,11 +321,11 @@ class HttpUrlConnectionTest extends HttpClientTest<HttpUrlConnectionDecorator> {
tags { tags {
"$Tags.COMPONENT" "http-url-connection" "$Tags.COMPONENT" "http-url-connection"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_PORT" server.address.port
"$Tags.HTTP_URL" "$url" "$Tags.HTTP_URL" "$url"
"$Tags.HTTP_METHOD" "POST" "$Tags.HTTP_METHOD" "POST"
"$Tags.HTTP_STATUS" STATUS "$Tags.HTTP_STATUS" STATUS
"$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_PORT" server.address.port
defaultTags() defaultTags()
} }
} }

View File

@ -50,10 +50,10 @@ class UrlConnectionTest extends AgentTestRunner {
tags { tags {
"$Tags.COMPONENT" "http-url-connection" "$Tags.COMPONENT" "http-url-connection"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.HTTP_URL" "$url/"
"$Tags.HTTP_METHOD" "GET"
"$Tags.PEER_HOSTNAME" "localhost" "$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_PORT" UNUSABLE_PORT "$Tags.PEER_PORT" UNUSABLE_PORT
"$Tags.HTTP_URL" "$url/"
"$Tags.HTTP_METHOD" "GET"
errorTags ConnectException, String errorTags ConnectException, String
defaultTags() defaultTags()
} }
@ -105,9 +105,9 @@ class UrlConnectionTest extends AgentTestRunner {
tags { tags {
"$Tags.COMPONENT" UrlInstrumentation.COMPONENT "$Tags.COMPONENT" UrlInstrumentation.COMPONENT
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.PEER_PORT" 80
// FIXME: These tags really make no sense for non-http connections, why do we set them? // FIXME: These tags really make no sense for non-http connections, why do we set them?
"$Tags.HTTP_URL" "$url" "$Tags.HTTP_URL" "$url"
"$Tags.PEER_PORT" 80
errorTags IllegalArgumentException, String errorTags IllegalArgumentException, String
defaultTags() defaultTags()
} }

View File

@ -90,10 +90,10 @@ class HystrixObservableChainTest extends AgentTestRunner {
childOf span(3) childOf span(3)
errored false errored false
tags { tags {
"$Tags.COMPONENT" "hystrix"
"hystrix.command" "HystrixObservableChainTest\$2" "hystrix.command" "HystrixObservableChainTest\$2"
"hystrix.group" "OtherGroup" "hystrix.group" "OtherGroup"
"hystrix.circuit-open" false "hystrix.circuit-open" false
"$Tags.COMPONENT" "hystrix"
defaultTags() defaultTags()
} }
} }
@ -117,10 +117,10 @@ class HystrixObservableChainTest extends AgentTestRunner {
childOf span(0) childOf span(0)
errored false errored false
tags { tags {
"$Tags.COMPONENT" "hystrix"
"hystrix.command" "HystrixObservableChainTest\$1" "hystrix.command" "HystrixObservableChainTest\$1"
"hystrix.group" "ExampleGroup" "hystrix.group" "ExampleGroup"
"hystrix.circuit-open" false "hystrix.circuit-open" false
"$Tags.COMPONENT" "hystrix"
defaultTags() defaultTags()
} }
} }

View File

@ -82,10 +82,10 @@ class HystrixObservableTest extends AgentTestRunner {
childOf span(0) childOf span(0)
errored false errored false
tags { tags {
"$Tags.COMPONENT" "hystrix"
"hystrix.command" "HystrixObservableTest\$1" "hystrix.command" "HystrixObservableTest\$1"
"hystrix.group" "ExampleGroup" "hystrix.group" "ExampleGroup"
"hystrix.circuit-open" false "hystrix.circuit-open" false
"$Tags.COMPONENT" "hystrix"
defaultTags() defaultTags()
} }
} }
@ -192,10 +192,10 @@ class HystrixObservableTest extends AgentTestRunner {
childOf span(0) childOf span(0)
errored true errored true
tags { tags {
"$Tags.COMPONENT" "hystrix"
"hystrix.command" "HystrixObservableTest\$2" "hystrix.command" "HystrixObservableTest\$2"
"hystrix.group" "ExampleGroup" "hystrix.group" "ExampleGroup"
"hystrix.circuit-open" false "hystrix.circuit-open" false
"$Tags.COMPONENT" "hystrix"
errorTags(IllegalArgumentException) errorTags(IllegalArgumentException)
defaultTags() defaultTags()
} }
@ -208,10 +208,10 @@ class HystrixObservableTest extends AgentTestRunner {
childOf span(1) childOf span(1)
errored false errored false
tags { tags {
"$Tags.COMPONENT" "hystrix"
"hystrix.command" "HystrixObservableTest\$2" "hystrix.command" "HystrixObservableTest\$2"
"hystrix.group" "ExampleGroup" "hystrix.group" "ExampleGroup"
"hystrix.circuit-open" false "hystrix.circuit-open" false
"$Tags.COMPONENT" "hystrix"
defaultTags() defaultTags()
} }
} }
@ -312,10 +312,10 @@ class HystrixObservableTest extends AgentTestRunner {
childOf span(0) childOf span(0)
errored true errored true
tags { tags {
"$Tags.COMPONENT" "hystrix"
"hystrix.command" "HystrixObservableTest\$3" "hystrix.command" "HystrixObservableTest\$3"
"hystrix.group" "FailingGroup" "hystrix.group" "FailingGroup"
"hystrix.circuit-open" false "hystrix.circuit-open" false
"$Tags.COMPONENT" "hystrix"
errorTags(IllegalArgumentException) errorTags(IllegalArgumentException)
defaultTags() defaultTags()
} }
@ -328,10 +328,10 @@ class HystrixObservableTest extends AgentTestRunner {
childOf span(1) childOf span(1)
errored true errored true
tags { tags {
"$Tags.COMPONENT" "hystrix"
"hystrix.command" "HystrixObservableTest\$3" "hystrix.command" "HystrixObservableTest\$3"
"hystrix.group" "FailingGroup" "hystrix.group" "FailingGroup"
"hystrix.circuit-open" false "hystrix.circuit-open" false
"$Tags.COMPONENT" "hystrix"
errorTags(UnsupportedOperationException, "No fallback available.") errorTags(UnsupportedOperationException, "No fallback available.")
defaultTags() defaultTags()
} }

View File

@ -62,10 +62,10 @@ class HystrixTest extends AgentTestRunner {
childOf span(0) childOf span(0)
errored false errored false
tags { tags {
"$Tags.COMPONENT" "hystrix"
"hystrix.command" "HystrixTest\$1" "hystrix.command" "HystrixTest\$1"
"hystrix.group" "ExampleGroup" "hystrix.group" "ExampleGroup"
"hystrix.circuit-open" false "hystrix.circuit-open" false
"$Tags.COMPONENT" "hystrix"
defaultTags() defaultTags()
} }
} }
@ -140,10 +140,10 @@ class HystrixTest extends AgentTestRunner {
childOf span(0) childOf span(0)
errored true errored true
tags { tags {
"$Tags.COMPONENT" "hystrix"
"hystrix.command" "HystrixTest\$2" "hystrix.command" "HystrixTest\$2"
"hystrix.group" "ExampleGroup" "hystrix.group" "ExampleGroup"
"hystrix.circuit-open" false "hystrix.circuit-open" false
"$Tags.COMPONENT" "hystrix"
errorTags(IllegalArgumentException) errorTags(IllegalArgumentException)
defaultTags() defaultTags()
} }
@ -156,10 +156,10 @@ class HystrixTest extends AgentTestRunner {
childOf span(1) childOf span(1)
errored false errored false
tags { tags {
"$Tags.COMPONENT" "hystrix"
"hystrix.command" "HystrixTest\$2" "hystrix.command" "HystrixTest\$2"
"hystrix.group" "ExampleGroup" "hystrix.group" "ExampleGroup"
"hystrix.circuit-open" false "hystrix.circuit-open" false
"$Tags.COMPONENT" "hystrix"
defaultTags() defaultTags()
} }
} }

View File

@ -38,13 +38,10 @@ class SlickTest extends AgentTestRunner {
tags { tags {
"$Tags.COMPONENT" "java-jdbc-prepared_statement" "$Tags.COMPONENT" "java-jdbc-prepared_statement"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" SlickUtils.Driver() "$Tags.DB_TYPE" SlickUtils.Driver()
"$Tags.DB_INSTANCE" SlickUtils.Db()
"$Tags.DB_USER" SlickUtils.Username() "$Tags.DB_USER" SlickUtils.Username()
"db.instance" SlickUtils.Db()
"span.origin.type" "org.h2.jdbc.JdbcPreparedStatement" "span.origin.type" "org.h2.jdbc.JdbcPreparedStatement"
defaultTags() defaultTags()
} }
} }

View File

@ -2,6 +2,7 @@ import datadog.opentracing.DDSpan
import datadog.trace.agent.test.asserts.TraceAssert import datadog.trace.agent.test.asserts.TraceAssert
import datadog.trace.agent.test.base.HttpServerTest import datadog.trace.agent.test.base.HttpServerTest
import datadog.trace.api.DDSpanTypes import datadog.trace.api.DDSpanTypes
import datadog.trace.instrumentation.api.Tags
import datadog.trace.instrumentation.jaxrs2.JaxRsAnnotationsDecorator import datadog.trace.instrumentation.jaxrs2.JaxRsAnnotationsDecorator
import datadog.trace.instrumentation.servlet3.Servlet3Decorator import datadog.trace.instrumentation.servlet3.Servlet3Decorator
import io.dropwizard.Application import io.dropwizard.Application
@ -10,7 +11,6 @@ import io.dropwizard.setup.Bootstrap
import io.dropwizard.setup.Environment import io.dropwizard.setup.Environment
import io.dropwizard.testing.ConfigOverride import io.dropwizard.testing.ConfigOverride
import io.dropwizard.testing.DropwizardTestSupport import io.dropwizard.testing.DropwizardTestSupport
import io.opentracing.tag.Tags
import org.eclipse.jetty.servlet.ServletHandler import org.eclipse.jetty.servlet.ServletHandler
import javax.ws.rs.GET import javax.ws.rs.GET
@ -85,11 +85,11 @@ class DropwizardTest extends HttpServerTest<DropwizardTestSupport, Servlet3Decor
errored endpoint == EXCEPTION errored endpoint == EXCEPTION
childOf(parent as DDSpan) childOf(parent as DDSpan)
tags { tags {
"$Tags.COMPONENT.key" JaxRsAnnotationsDecorator.DECORATE.component() "$Tags.COMPONENT" JaxRsAnnotationsDecorator.DECORATE.component()
defaultTags()
if (endpoint == EXCEPTION) { if (endpoint == EXCEPTION) {
errorTags(Exception, EXCEPTION.body) errorTags(Exception, EXCEPTION.body)
} }
defaultTags()
} }
} }
} }
@ -109,23 +109,22 @@ class DropwizardTest extends HttpServerTest<DropwizardTestSupport, Servlet3Decor
parent() parent()
} }
tags { tags {
"$Tags.COMPONENT" serverDecorator.component()
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
"$Tags.PEER_HOSTNAME" { it == "localhost" || it == "127.0.0.1" }
"$Tags.PEER_HOST_IPV4" { it == null || it == "127.0.0.1" } // Optional
"$Tags.PEER_PORT" Integer
"$Tags.HTTP_URL" "${endpoint.resolve(address)}"
"$Tags.HTTP_METHOD" method
"$Tags.HTTP_STATUS" endpoint.status
"span.origin.type" ServletHandler.CachedChain.name "span.origin.type" ServletHandler.CachedChain.name
defaultTags(true)
"$Tags.COMPONENT.key" serverDecorator.component()
if (endpoint.errored) { if (endpoint.errored) {
"$Tags.ERROR.key" endpoint.errored "$Tags.ERROR" endpoint.errored
"error.msg" { it == null || it == EXCEPTION.body } "error.msg" { it == null || it == EXCEPTION.body }
"error.type" { it == null || it == Exception.name } "error.type" { it == null || it == Exception.name }
"error.stack" { it == null || it instanceof String } "error.stack" { it == null || it instanceof String }
} }
"$Tags.HTTP_STATUS.key" endpoint.status defaultTags(true)
"$Tags.HTTP_URL.key" "${endpoint.resolve(address)}"
"$Tags.PEER_HOSTNAME.key" { it == "localhost" || it == "127.0.0.1" }
"$Tags.PEER_PORT.key" Integer
"$Tags.PEER_HOST_IPV4.key" { it == null || it == "127.0.0.1" } // Optional
"$Tags.HTTP_METHOD.key" method
"$Tags.SPAN_KIND.key" Tags.SPAN_KIND_SERVER
} }
} }
} }

View File

@ -5,13 +5,13 @@ import datadog.trace.agent.test.AgentTestRunner
import datadog.trace.api.Config import datadog.trace.api.Config
import datadog.trace.api.DDSpanTypes import datadog.trace.api.DDSpanTypes
import datadog.trace.instrumentation.api.Tags import datadog.trace.instrumentation.api.Tags
import javax.sql.DataSource
import org.apache.derby.jdbc.EmbeddedDriver import org.apache.derby.jdbc.EmbeddedDriver
import org.h2.Driver import org.h2.Driver
import org.hsqldb.jdbc.JDBCDriver import org.hsqldb.jdbc.JDBCDriver
import spock.lang.Shared import spock.lang.Shared
import spock.lang.Unroll import spock.lang.Unroll
import javax.sql.DataSource
import java.sql.CallableStatement import java.sql.CallableStatement
import java.sql.Connection import java.sql.Connection
import java.sql.PreparedStatement import java.sql.PreparedStatement
@ -176,13 +176,13 @@ class JDBCInstrumentationTest extends AgentTestRunner {
childOf span(0) childOf span(0)
errored false errored false
tags { tags {
"db.type" driver "$Tags.COMPONENT" "java-jdbc-statement"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" driver
"$Tags.DB_INSTANCE" dbName.toLowerCase()
if (username != null) { if (username != null) {
"db.user" username "$Tags.DB_USER" username
} }
"span.kind" Tags.SPAN_KIND_CLIENT
"component" "java-jdbc-statement"
"db.instance" dbName.toLowerCase()
"span.origin.type" String "span.origin.type" String
defaultTags() defaultTags()
} }
@ -236,13 +236,13 @@ class JDBCInstrumentationTest extends AgentTestRunner {
childOf span(0) childOf span(0)
errored false errored false
tags { tags {
"db.type" driver "$Tags.COMPONENT" "java-jdbc-prepared_statement"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" driver
"$Tags.DB_INSTANCE" dbName.toLowerCase()
if (username != null) { if (username != null) {
"db.user" username "$Tags.DB_USER" username
} }
"span.kind" Tags.SPAN_KIND_CLIENT
"component" "java-jdbc-prepared_statement"
"db.instance" dbName.toLowerCase()
"span.origin.type" String "span.origin.type" String
defaultTags() defaultTags()
} }
@ -288,13 +288,13 @@ class JDBCInstrumentationTest extends AgentTestRunner {
childOf span(0) childOf span(0)
errored false errored false
tags { tags {
"db.type" driver "$Tags.COMPONENT" "java-jdbc-prepared_statement"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" driver
"$Tags.DB_INSTANCE" dbName.toLowerCase()
if (username != null) { if (username != null) {
"db.user" username "$Tags.DB_USER" username
} }
"span.kind" Tags.SPAN_KIND_CLIENT
"component" "java-jdbc-prepared_statement"
"db.instance" dbName.toLowerCase()
"span.origin.type" String "span.origin.type" String
defaultTags() defaultTags()
} }
@ -340,13 +340,13 @@ class JDBCInstrumentationTest extends AgentTestRunner {
childOf span(0) childOf span(0)
errored false errored false
tags { tags {
"db.type" driver "$Tags.COMPONENT" "java-jdbc-prepared_statement"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" driver
"$Tags.DB_INSTANCE" dbName.toLowerCase()
if (username != null) { if (username != null) {
"db.user" username "$Tags.DB_USER" username
} }
"span.kind" Tags.SPAN_KIND_CLIENT
"component" "java-jdbc-prepared_statement"
"db.instance" dbName.toLowerCase()
"span.origin.type" String "span.origin.type" String
defaultTags() defaultTags()
} }
@ -392,13 +392,13 @@ class JDBCInstrumentationTest extends AgentTestRunner {
childOf span(0) childOf span(0)
errored false errored false
tags { tags {
"db.type" driver "$Tags.COMPONENT" "java-jdbc-statement"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" driver
"$Tags.DB_INSTANCE" dbName.toLowerCase()
if (username != null) { if (username != null) {
"db.user" username "$Tags.DB_USER" username
} }
"span.kind" Tags.SPAN_KIND_CLIENT
"component" "java-jdbc-statement"
"db.instance" dbName.toLowerCase()
"span.origin.type" String "span.origin.type" String
defaultTags() defaultTags()
} }
@ -447,13 +447,13 @@ class JDBCInstrumentationTest extends AgentTestRunner {
childOf span(0) childOf span(0)
errored false errored false
tags { tags {
"db.type" driver "$Tags.COMPONENT" "java-jdbc-prepared_statement"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" driver
"$Tags.DB_INSTANCE" dbName.toLowerCase()
if (username != null) { if (username != null) {
"db.user" username "$Tags.DB_USER" username
} }
"span.kind" Tags.SPAN_KIND_CLIENT
"component" "java-jdbc-prepared_statement"
"db.instance" dbName.toLowerCase()
"span.origin.type" String "span.origin.type" String
defaultTags() defaultTags()
} }
@ -515,17 +515,17 @@ class JDBCInstrumentationTest extends AgentTestRunner {
childOf span(0) childOf span(0)
errored false errored false
tags { tags {
"db.type" driver
if (username != null) {
"db.user" username
}
if (prepareStatement) { if (prepareStatement) {
"component" "java-jdbc-prepared_statement" "$Tags.COMPONENT" "java-jdbc-prepared_statement"
} else { } else {
"component" "java-jdbc-statement" "$Tags.COMPONENT" "java-jdbc-statement"
}
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" driver
"$Tags.DB_INSTANCE" dbName.toLowerCase()
if (username != null) {
"$Tags.DB_USER" username
} }
"span.kind" Tags.SPAN_KIND_CLIENT
"db.instance" dbName.toLowerCase()
"span.origin.type" String "span.origin.type" String
defaultTags() defaultTags()
} }
@ -590,11 +590,11 @@ class JDBCInstrumentationTest extends AgentTestRunner {
spanType DDSpanTypes.SQL spanType DDSpanTypes.SQL
errored false errored false
tags { tags {
"db.type" dbType "$Tags.COMPONENT" "java-jdbc-prepared_statement"
"db.user" "SA" "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"component" "java-jdbc-prepared_statement" "$Tags.DB_TYPE" dbType
"span.kind" Tags.SPAN_KIND_CLIENT "$Tags.DB_INSTANCE" dbName.toLowerCase()
"db.instance" dbName.toLowerCase() "$Tags.DB_USER" "SA"
"span.origin.type" String "span.origin.type" String
defaultTags() defaultTags()
} }
@ -609,11 +609,11 @@ class JDBCInstrumentationTest extends AgentTestRunner {
spanType DDSpanTypes.SQL spanType DDSpanTypes.SQL
errored false errored false
tags { tags {
"db.type" dbType "$Tags.COMPONENT" "java-jdbc-prepared_statement"
"db.user" "SA" "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"component" "java-jdbc-prepared_statement" "$Tags.DB_TYPE" dbType
"span.kind" Tags.SPAN_KIND_CLIENT "$Tags.DB_INSTANCE" dbName.toLowerCase()
"db.instance" dbName.toLowerCase() "$Tags.DB_USER" "SA"
"span.origin.type" String "span.origin.type" String
defaultTags() defaultTags()
} }

View File

@ -54,8 +54,8 @@ class JedisClientTest extends AgentTestRunner {
spanType DDSpanTypes.REDIS spanType DDSpanTypes.REDIS
tags { tags {
"$Tags.COMPONENT" "redis-command" "$Tags.COMPONENT" "redis-command"
"$Tags.DB_TYPE" "redis"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "redis"
defaultTags() defaultTags()
} }
} }
@ -80,8 +80,8 @@ class JedisClientTest extends AgentTestRunner {
spanType DDSpanTypes.REDIS spanType DDSpanTypes.REDIS
tags { tags {
"$Tags.COMPONENT" "redis-command" "$Tags.COMPONENT" "redis-command"
"$Tags.DB_TYPE" "redis"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "redis"
defaultTags() defaultTags()
} }
} }
@ -94,8 +94,8 @@ class JedisClientTest extends AgentTestRunner {
spanType DDSpanTypes.REDIS spanType DDSpanTypes.REDIS
tags { tags {
"$Tags.COMPONENT" "redis-command" "$Tags.COMPONENT" "redis-command"
"$Tags.DB_TYPE" "redis"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "redis"
defaultTags() defaultTags()
} }
} }
@ -120,8 +120,8 @@ class JedisClientTest extends AgentTestRunner {
spanType DDSpanTypes.REDIS spanType DDSpanTypes.REDIS
tags { tags {
"$Tags.COMPONENT" "redis-command" "$Tags.COMPONENT" "redis-command"
"$Tags.DB_TYPE" "redis"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "redis"
defaultTags() defaultTags()
} }
} }
@ -134,8 +134,8 @@ class JedisClientTest extends AgentTestRunner {
spanType DDSpanTypes.REDIS spanType DDSpanTypes.REDIS
tags { tags {
"$Tags.COMPONENT" "redis-command" "$Tags.COMPONENT" "redis-command"
"$Tags.DB_TYPE" "redis"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "redis"
defaultTags() defaultTags()
} }
} }

View File

@ -124,22 +124,22 @@ class JettyHandlerTest extends HttpServerTest<Server, JettyDecorator> {
parent() parent()
} }
tags { tags {
"span.origin.type" handlerName
defaultTags(true)
"$Tags.COMPONENT" serverDecorator.component() "$Tags.COMPONENT" serverDecorator.component()
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
"$Tags.PEER_HOSTNAME" { it == "localhost" || it == "127.0.0.1" }
"$Tags.PEER_HOST_IPV4" { it == null || it == "127.0.0.1" } // Optional
"$Tags.PEER_PORT" Integer
"$Tags.HTTP_URL" "${endpoint.resolve(address)}"
"$Tags.HTTP_METHOD" method
"$Tags.HTTP_STATUS" endpoint.status
"span.origin.type" handlerName
if (endpoint.errored) { if (endpoint.errored) {
"$Tags.ERROR" endpoint.errored "$Tags.ERROR" endpoint.errored
"error.msg" { it == null || it == EXCEPTION.body } "error.msg" { it == null || it == EXCEPTION.body }
"error.type" { it == null || it == Exception.name } "error.type" { it == null || it == Exception.name }
"error.stack" { it == null || it instanceof String } "error.stack" { it == null || it instanceof String }
} }
"$Tags.HTTP_STATUS" endpoint.status defaultTags(true)
"$Tags.HTTP_URL" "${endpoint.resolve(address)}"
"$Tags.PEER_HOSTNAME" { it == "localhost" || it == "127.0.0.1" }
"$Tags.PEER_PORT" Integer
"$Tags.PEER_HOST_IPV4" { it == null || it == "127.0.0.1" } // Optional
"$Tags.HTTP_METHOD" method
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
} }
} }
} }

View File

@ -163,10 +163,10 @@ class JMS2Test extends AgentTestRunner {
errored false errored false
tags { tags {
defaultTags() "$Tags.COMPONENT" "jms"
"${Tags.COMPONENT}" "jms" "$Tags.SPAN_KIND" Tags.SPAN_KIND_CONSUMER
"${Tags.SPAN_KIND}" "consumer"
"span.origin.type" HornetQMessageConsumer.name "span.origin.type" HornetQMessageConsumer.name
defaultTags()
} }
} }
} }
@ -201,10 +201,10 @@ class JMS2Test extends AgentTestRunner {
errored false errored false
tags { tags {
defaultTags() "$Tags.COMPONENT" "jms"
"${Tags.COMPONENT}" "jms" "$Tags.SPAN_KIND" Tags.SPAN_KIND_CONSUMER
"${Tags.SPAN_KIND}" "consumer"
"span.origin.type" HornetQMessageConsumer.name "span.origin.type" HornetQMessageConsumer.name
defaultTags()
} }
} }
} }
@ -230,10 +230,10 @@ class JMS2Test extends AgentTestRunner {
errored false errored false
tags { tags {
defaultTags() "$Tags.COMPONENT" "jms"
"${Tags.COMPONENT}" "jms" "$Tags.SPAN_KIND" Tags.SPAN_KIND_PRODUCER
"${Tags.SPAN_KIND}" "producer"
"span.origin.type" HornetQMessageProducer.name "span.origin.type" HornetQMessageProducer.name
defaultTags()
} }
} }
} }
@ -255,10 +255,10 @@ class JMS2Test extends AgentTestRunner {
errored false errored false
tags { tags {
defaultTags(true)
"${Tags.COMPONENT}" "jms" "${Tags.COMPONENT}" "jms"
"${Tags.SPAN_KIND}" "consumer" "${Tags.SPAN_KIND}" "consumer"
"span.origin.type" origin.name "span.origin.type" origin.name
defaultTags(true)
} }
} }
} }

View File

@ -126,10 +126,10 @@ class JMS1Test extends AgentTestRunner {
errored false errored false
tags { tags {
defaultTags() "$Tags.COMPONENT" "jms"
"${Tags.COMPONENT}" "jms" "$Tags.SPAN_KIND" Tags.SPAN_KIND_CONSUMER
"${Tags.SPAN_KIND}" "consumer"
"span.origin.type" ActiveMQMessageConsumer.name "span.origin.type" ActiveMQMessageConsumer.name
defaultTags()
} }
} }
} }
@ -164,10 +164,10 @@ class JMS1Test extends AgentTestRunner {
errored false errored false
tags { tags {
defaultTags() "$Tags.COMPONENT" "jms"
"${Tags.COMPONENT}" "jms" "$Tags.SPAN_KIND" Tags.SPAN_KIND_CONSUMER
"${Tags.SPAN_KIND}" "consumer"
"span.origin.type" ActiveMQMessageConsumer.name "span.origin.type" ActiveMQMessageConsumer.name
defaultTags()
} }
} }
} }
@ -215,10 +215,10 @@ class JMS1Test extends AgentTestRunner {
errored false errored false
tags { tags {
defaultTags() "$Tags.COMPONENT" "jms"
"${Tags.COMPONENT}" "jms" "$Tags.SPAN_KIND" Tags.SPAN_KIND_CONSUMER
"${Tags.SPAN_KIND}" "consumer"
"span.origin.type" ActiveMQMessageConsumer.name "span.origin.type" ActiveMQMessageConsumer.name
defaultTags()
} }
} }
} }
@ -247,10 +247,10 @@ class JMS1Test extends AgentTestRunner {
parent() parent()
tags { tags {
defaultTags() "$Tags.COMPONENT" "jms"
"${Tags.COMPONENT}" "jms" "$Tags.SPAN_KIND" Tags.SPAN_KIND_PRODUCER
"${Tags.SPAN_KIND}" "producer"
"span.origin.type" ActiveMQMessageProducer.name "span.origin.type" ActiveMQMessageProducer.name
defaultTags()
} }
} }
} }
@ -272,10 +272,10 @@ class JMS1Test extends AgentTestRunner {
childOf parentSpan childOf parentSpan
tags { tags {
defaultTags(true) "$Tags.COMPONENT" "jms"
"${Tags.COMPONENT}" "jms" "$Tags.SPAN_KIND" Tags.SPAN_KIND_CONSUMER
"${Tags.SPAN_KIND}" "consumer"
"span.origin.type" origin.name "span.origin.type" origin.name
defaultTags(true)
} }
} }
} }

View File

@ -3,6 +3,7 @@ import datadog.trace.agent.test.AgentTestRunner
import datadog.trace.agent.test.utils.OkHttpUtils import datadog.trace.agent.test.utils.OkHttpUtils
import datadog.trace.agent.test.utils.PortUtils import datadog.trace.agent.test.utils.PortUtils
import datadog.trace.api.DDSpanTypes import datadog.trace.api.DDSpanTypes
import datadog.trace.instrumentation.api.Tags
import okhttp3.MultipartBody import okhttp3.MultipartBody
import okhttp3.OkHttpClient import okhttp3.OkHttpClient
import okhttp3.Request import okhttp3.Request
@ -93,17 +94,17 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
spanType DDSpanTypes.HTTP_SERVER spanType DDSpanTypes.HTTP_SERVER
errored false errored false
tags { tags {
"http.url" "http://localhost:$port/$jspWebappContext/$jspFileName" "$Tags.COMPONENT" "java-web-servlet"
"http.method" "GET" "$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
"peer.hostname" "127.0.0.1" "$Tags.PEER_HOSTNAME" "127.0.0.1"
"peer.ipv4" "127.0.0.1" "$Tags.PEER_HOST_IPV4" "127.0.0.1"
"peer.port" Integer "$Tags.PEER_PORT" Integer
"span.kind" "server" "$Tags.HTTP_URL" "http://localhost:$port/$jspWebappContext/$jspFileName"
"component" "java-web-servlet" "$Tags.HTTP_METHOD" "GET"
"$Tags.HTTP_STATUS" 200
"span.origin.type" "org.apache.catalina.core.ApplicationFilterChain" "span.origin.type" "org.apache.catalina.core.ApplicationFilterChain"
"servlet.context" "/$jspWebappContext" "servlet.context" "/$jspWebappContext"
"servlet.path" "/$jspFileName" "servlet.path" "/$jspFileName"
"http.status_code" 200
defaultTags() defaultTags()
} }
} }
@ -114,7 +115,7 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
resourceName "/$jspFileName" resourceName "/$jspFileName"
errored false errored false
tags { tags {
"component" "jsp-http-servlet" "$Tags.COMPONENT" "jsp-http-servlet"
"span.origin.type" jspClassName "span.origin.type" jspClassName
"servlet.context" "/$jspWebappContext" "servlet.context" "/$jspWebappContext"
"jsp.requestURL" reqUrl "jsp.requestURL" reqUrl
@ -128,7 +129,7 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
resourceName "/$jspFileName" resourceName "/$jspFileName"
errored false errored false
tags { tags {
"component" "jsp-http-servlet" "$Tags.COMPONENT" "jsp-http-servlet"
"servlet.context" "/$jspWebappContext" "servlet.context" "/$jspWebappContext"
"jsp.classFQCN" "org.apache.jsp.$jspClassNamePrefix$jspClassName" "jsp.classFQCN" "org.apache.jsp.$jspClassNamePrefix$jspClassName"
"jsp.compiler" "org.apache.jasper.compiler.JDTCompiler" "jsp.compiler" "org.apache.jasper.compiler.JDTCompiler"
@ -169,17 +170,17 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
spanType DDSpanTypes.HTTP_SERVER spanType DDSpanTypes.HTTP_SERVER
errored false errored false
tags { tags {
"http.url" "http://localhost:$port/$jspWebappContext/getQuery.jsp" "$Tags.COMPONENT" "java-web-servlet"
"http.method" "GET" "$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
"peer.hostname" "127.0.0.1" "$Tags.PEER_HOSTNAME" "127.0.0.1"
"peer.ipv4" "127.0.0.1" "$Tags.PEER_HOST_IPV4" "127.0.0.1"
"peer.port" Integer "$Tags.PEER_PORT" Integer
"span.kind" "server" "$Tags.HTTP_URL" "http://localhost:$port/$jspWebappContext/getQuery.jsp"
"component" "java-web-servlet" "$Tags.HTTP_METHOD" "GET"
"$Tags.HTTP_STATUS" 200
"span.origin.type" "org.apache.catalina.core.ApplicationFilterChain" "span.origin.type" "org.apache.catalina.core.ApplicationFilterChain"
"servlet.context" "/$jspWebappContext" "servlet.context" "/$jspWebappContext"
"servlet.path" "/getQuery.jsp" "servlet.path" "/getQuery.jsp"
"http.status_code" 200
defaultTags() defaultTags()
} }
} }
@ -190,7 +191,7 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
resourceName "/getQuery.jsp" resourceName "/getQuery.jsp"
errored false errored false
tags { tags {
"component" "jsp-http-servlet" "$Tags.COMPONENT" "jsp-http-servlet"
"span.origin.type" "getQuery_jsp" "span.origin.type" "getQuery_jsp"
"servlet.context" "/$jspWebappContext" "servlet.context" "/$jspWebappContext"
"jsp.requestURL" reqUrl "jsp.requestURL" reqUrl
@ -204,7 +205,7 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
resourceName "/getQuery.jsp" resourceName "/getQuery.jsp"
errored false errored false
tags { tags {
"component" "jsp-http-servlet" "$Tags.COMPONENT" "jsp-http-servlet"
"servlet.context" "/$jspWebappContext" "servlet.context" "/$jspWebappContext"
"jsp.classFQCN" "org.apache.jsp.getQuery_jsp" "jsp.classFQCN" "org.apache.jsp.getQuery_jsp"
"jsp.compiler" "org.apache.jasper.compiler.JDTCompiler" "jsp.compiler" "org.apache.jasper.compiler.JDTCompiler"
@ -242,17 +243,17 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
spanType DDSpanTypes.HTTP_SERVER spanType DDSpanTypes.HTTP_SERVER
errored false errored false
tags { tags {
"http.url" "http://localhost:$port/$jspWebappContext/post.jsp" "$Tags.COMPONENT" "java-web-servlet"
"http.method" "POST" "$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
"peer.hostname" "127.0.0.1" "$Tags.PEER_HOSTNAME" "127.0.0.1"
"peer.ipv4" "127.0.0.1" "$Tags.PEER_HOST_IPV4" "127.0.0.1"
"peer.port" Integer "$Tags.PEER_PORT" Integer
"span.kind" "server" "$Tags.HTTP_URL" "http://localhost:$port/$jspWebappContext/post.jsp"
"component" "java-web-servlet" "$Tags.HTTP_METHOD" "POST"
"$Tags.HTTP_STATUS" 200
"span.origin.type" "org.apache.catalina.core.ApplicationFilterChain" "span.origin.type" "org.apache.catalina.core.ApplicationFilterChain"
"servlet.context" "/$jspWebappContext" "servlet.context" "/$jspWebappContext"
"servlet.path" "/post.jsp" "servlet.path" "/post.jsp"
"http.status_code" 200
defaultTags() defaultTags()
} }
} }
@ -263,7 +264,7 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
resourceName "/post.jsp" resourceName "/post.jsp"
errored false errored false
tags { tags {
"component" "jsp-http-servlet" "$Tags.COMPONENT" "jsp-http-servlet"
"span.origin.type" "post_jsp" "span.origin.type" "post_jsp"
"servlet.context" "/$jspWebappContext" "servlet.context" "/$jspWebappContext"
"jsp.requestURL" reqUrl "jsp.requestURL" reqUrl
@ -277,7 +278,7 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
resourceName "/post.jsp" resourceName "/post.jsp"
errored false errored false
tags { tags {
"component" "jsp-http-servlet" "$Tags.COMPONENT" "jsp-http-servlet"
"servlet.context" "/$jspWebappContext" "servlet.context" "/$jspWebappContext"
"jsp.classFQCN" "org.apache.jsp.post_jsp" "jsp.classFQCN" "org.apache.jsp.post_jsp"
"jsp.compiler" "org.apache.jasper.compiler.JDTCompiler" "jsp.compiler" "org.apache.jasper.compiler.JDTCompiler"
@ -312,17 +313,17 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
spanType DDSpanTypes.HTTP_SERVER spanType DDSpanTypes.HTTP_SERVER
errored true errored true
tags { tags {
"http.url" "http://localhost:$port/$jspWebappContext/$jspFileName" "$Tags.COMPONENT" "java-web-servlet"
"http.method" "GET" "$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
"peer.hostname" "127.0.0.1" "$Tags.PEER_HOSTNAME" "127.0.0.1"
"peer.ipv4" "127.0.0.1" "$Tags.PEER_HOST_IPV4" "127.0.0.1"
"peer.port" Integer "$Tags.PEER_PORT" Integer
"span.kind" "server" "$Tags.HTTP_URL" "http://localhost:$port/$jspWebappContext/$jspFileName"
"component" "java-web-servlet" "$Tags.HTTP_METHOD" "GET"
"$Tags.HTTP_STATUS" 500
"span.origin.type" "org.apache.catalina.core.ApplicationFilterChain" "span.origin.type" "org.apache.catalina.core.ApplicationFilterChain"
"servlet.context" "/$jspWebappContext" "servlet.context" "/$jspWebappContext"
"servlet.path" "/$jspFileName" "servlet.path" "/$jspFileName"
"http.status_code" 500
"error" true "error" true
"error.type" { String tagExceptionType -> "error.type" { String tagExceptionType ->
return tagExceptionType == exceptionClass.getName() || tagExceptionType.contains(exceptionClass.getSimpleName()) return tagExceptionType == exceptionClass.getName() || tagExceptionType.contains(exceptionClass.getSimpleName())
@ -341,7 +342,7 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
resourceName "/$jspFileName" resourceName "/$jspFileName"
errored true errored true
tags { tags {
"component" "jsp-http-servlet" "$Tags.COMPONENT" "jsp-http-servlet"
"span.origin.type" jspClassName "span.origin.type" jspClassName
"servlet.context" "/$jspWebappContext" "servlet.context" "/$jspWebappContext"
"jsp.requestURL" reqUrl "jsp.requestURL" reqUrl
@ -363,7 +364,7 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
resourceName "/$jspFileName" resourceName "/$jspFileName"
errored false errored false
tags { tags {
"component" "jsp-http-servlet" "$Tags.COMPONENT" "jsp-http-servlet"
"servlet.context" "/$jspWebappContext" "servlet.context" "/$jspWebappContext"
"jsp.classFQCN" "org.apache.jsp.$jspClassName" "jsp.classFQCN" "org.apache.jsp.$jspClassName"
"jsp.compiler" "org.apache.jasper.compiler.JDTCompiler" "jsp.compiler" "org.apache.jasper.compiler.JDTCompiler"
@ -403,17 +404,17 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
spanType DDSpanTypes.HTTP_SERVER spanType DDSpanTypes.HTTP_SERVER
errored false errored false
tags { tags {
"http.url" "http://localhost:$port/$jspWebappContext/includes/includeHtml.jsp" "$Tags.COMPONENT" "java-web-servlet"
"http.method" "GET" "$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
"peer.hostname" "127.0.0.1" "$Tags.PEER_HOSTNAME" "127.0.0.1"
"peer.ipv4" "127.0.0.1" "$Tags.PEER_HOST_IPV4" "127.0.0.1"
"peer.port" Integer "$Tags.PEER_PORT" Integer
"span.kind" "server" "$Tags.HTTP_URL" "http://localhost:$port/$jspWebappContext/includes/includeHtml.jsp"
"component" "java-web-servlet" "$Tags.HTTP_METHOD" "GET"
"$Tags.HTTP_STATUS" 200
"span.origin.type" "org.apache.catalina.core.ApplicationFilterChain" "span.origin.type" "org.apache.catalina.core.ApplicationFilterChain"
"servlet.context" "/$jspWebappContext" "servlet.context" "/$jspWebappContext"
"servlet.path" "/includes/includeHtml.jsp" "servlet.path" "/includes/includeHtml.jsp"
"http.status_code" 200
defaultTags() defaultTags()
} }
} }
@ -424,7 +425,7 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
resourceName "/includes/includeHtml.jsp" resourceName "/includes/includeHtml.jsp"
errored false errored false
tags { tags {
"component" "jsp-http-servlet" "$Tags.COMPONENT" "jsp-http-servlet"
"span.origin.type" "includeHtml_jsp" "span.origin.type" "includeHtml_jsp"
"servlet.context" "/$jspWebappContext" "servlet.context" "/$jspWebappContext"
"jsp.requestURL" reqUrl "jsp.requestURL" reqUrl
@ -438,7 +439,7 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
resourceName "/includes/includeHtml.jsp" resourceName "/includes/includeHtml.jsp"
errored false errored false
tags { tags {
"component" "jsp-http-servlet" "$Tags.COMPONENT" "jsp-http-servlet"
"servlet.context" "/$jspWebappContext" "servlet.context" "/$jspWebappContext"
"jsp.classFQCN" "org.apache.jsp.includes.includeHtml_jsp" "jsp.classFQCN" "org.apache.jsp.includes.includeHtml_jsp"
"jsp.compiler" "org.apache.jasper.compiler.JDTCompiler" "jsp.compiler" "org.apache.jasper.compiler.JDTCompiler"
@ -472,17 +473,17 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
spanType DDSpanTypes.HTTP_SERVER spanType DDSpanTypes.HTTP_SERVER
errored false errored false
tags { tags {
"http.url" "http://localhost:$port/$jspWebappContext/includes/includeMulti.jsp" "$Tags.COMPONENT" "java-web-servlet"
"http.method" "GET" "$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
"peer.hostname" "127.0.0.1" "$Tags.PEER_HOSTNAME" "127.0.0.1"
"peer.ipv4" "127.0.0.1" "$Tags.PEER_HOST_IPV4" "127.0.0.1"
"peer.port" Integer "$Tags.PEER_PORT" Integer
"span.kind" "server" "$Tags.HTTP_URL" "http://localhost:$port/$jspWebappContext/includes/includeMulti.jsp"
"component" "java-web-servlet" "$Tags.HTTP_METHOD" "GET"
"$Tags.HTTP_STATUS" 200
"span.origin.type" "org.apache.catalina.core.ApplicationFilterChain" "span.origin.type" "org.apache.catalina.core.ApplicationFilterChain"
"servlet.context" "/$jspWebappContext" "servlet.context" "/$jspWebappContext"
"servlet.path" "/includes/includeMulti.jsp" "servlet.path" "/includes/includeMulti.jsp"
"http.status_code" 200
defaultTags() defaultTags()
} }
} }
@ -493,7 +494,7 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
resourceName "/includes/includeMulti.jsp" resourceName "/includes/includeMulti.jsp"
errored false errored false
tags { tags {
"component" "jsp-http-servlet" "$Tags.COMPONENT" "jsp-http-servlet"
"span.origin.type" "includeMulti_jsp" "span.origin.type" "includeMulti_jsp"
"servlet.context" "/$jspWebappContext" "servlet.context" "/$jspWebappContext"
"jsp.requestURL" reqUrl "jsp.requestURL" reqUrl
@ -507,7 +508,7 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
resourceName "/common/javaLoopH2.jsp" resourceName "/common/javaLoopH2.jsp"
errored false errored false
tags { tags {
"component" "jsp-http-servlet" "$Tags.COMPONENT" "jsp-http-servlet"
"span.origin.type" "javaLoopH2_jsp" "span.origin.type" "javaLoopH2_jsp"
"servlet.context" "/$jspWebappContext" "servlet.context" "/$jspWebappContext"
"jsp.requestURL" reqUrl "jsp.requestURL" reqUrl
@ -521,7 +522,7 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
resourceName "/common/javaLoopH2.jsp" resourceName "/common/javaLoopH2.jsp"
errored false errored false
tags { tags {
"component" "jsp-http-servlet" "$Tags.COMPONENT" "jsp-http-servlet"
"servlet.context" "/$jspWebappContext" "servlet.context" "/$jspWebappContext"
"jsp.classFQCN" "org.apache.jsp.common.javaLoopH2_jsp" "jsp.classFQCN" "org.apache.jsp.common.javaLoopH2_jsp"
"jsp.compiler" "org.apache.jasper.compiler.JDTCompiler" "jsp.compiler" "org.apache.jasper.compiler.JDTCompiler"
@ -535,7 +536,7 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
resourceName "/common/javaLoopH2.jsp" resourceName "/common/javaLoopH2.jsp"
errored false errored false
tags { tags {
"component" "jsp-http-servlet" "$Tags.COMPONENT" "jsp-http-servlet"
"span.origin.type" "javaLoopH2_jsp" "span.origin.type" "javaLoopH2_jsp"
"servlet.context" "/$jspWebappContext" "servlet.context" "/$jspWebappContext"
"jsp.requestURL" reqUrl "jsp.requestURL" reqUrl
@ -549,7 +550,7 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
resourceName "/common/javaLoopH2.jsp" resourceName "/common/javaLoopH2.jsp"
errored false errored false
tags { tags {
"component" "jsp-http-servlet" "$Tags.COMPONENT" "jsp-http-servlet"
"servlet.context" "/$jspWebappContext" "servlet.context" "/$jspWebappContext"
"jsp.classFQCN" "org.apache.jsp.common.javaLoopH2_jsp" "jsp.classFQCN" "org.apache.jsp.common.javaLoopH2_jsp"
"jsp.compiler" "org.apache.jasper.compiler.JDTCompiler" "jsp.compiler" "org.apache.jasper.compiler.JDTCompiler"
@ -563,7 +564,7 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
resourceName "/includes/includeMulti.jsp" resourceName "/includes/includeMulti.jsp"
errored false errored false
tags { tags {
"component" "jsp-http-servlet" "$Tags.COMPONENT" "jsp-http-servlet"
"servlet.context" "/$jspWebappContext" "servlet.context" "/$jspWebappContext"
"jsp.classFQCN" "org.apache.jsp.includes.includeMulti_jsp" "jsp.classFQCN" "org.apache.jsp.includes.includeMulti_jsp"
"jsp.compiler" "org.apache.jasper.compiler.JDTCompiler" "jsp.compiler" "org.apache.jasper.compiler.JDTCompiler"
@ -597,17 +598,17 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
spanType DDSpanTypes.HTTP_SERVER spanType DDSpanTypes.HTTP_SERVER
errored true errored true
tags { tags {
"http.url" "http://localhost:$port/$jspWebappContext/$jspFileName" "$Tags.COMPONENT" "java-web-servlet"
"http.method" "GET" "$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
"peer.hostname" "127.0.0.1" "$Tags.PEER_HOSTNAME" "127.0.0.1"
"peer.ipv4" "127.0.0.1" "$Tags.PEER_HOST_IPV4" "127.0.0.1"
"peer.port" Integer "$Tags.PEER_PORT" Integer
"span.kind" "server" "$Tags.HTTP_URL" "http://localhost:$port/$jspWebappContext/$jspFileName"
"component" "java-web-servlet" "$Tags.HTTP_METHOD" "GET"
"$Tags.HTTP_STATUS" 500
"span.origin.type" "org.apache.catalina.core.ApplicationFilterChain" "span.origin.type" "org.apache.catalina.core.ApplicationFilterChain"
"servlet.context" "/$jspWebappContext" "servlet.context" "/$jspWebappContext"
"servlet.path" "/$jspFileName" "servlet.path" "/$jspFileName"
"http.status_code" 500
errorTags(JasperException, String) errorTags(JasperException, String)
defaultTags() defaultTags()
} }
@ -619,7 +620,7 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
resourceName "/$jspFileName" resourceName "/$jspFileName"
errored true errored true
tags { tags {
"component" "jsp-http-servlet" "$Tags.COMPONENT" "jsp-http-servlet"
"servlet.context" "/$jspWebappContext" "servlet.context" "/$jspWebappContext"
"jsp.classFQCN" "org.apache.jsp.$jspClassNamePrefix$jspClassName" "jsp.classFQCN" "org.apache.jsp.$jspClassNamePrefix$jspClassName"
"jsp.compiler" "org.apache.jasper.compiler.JDTCompiler" "jsp.compiler" "org.apache.jasper.compiler.JDTCompiler"

View File

@ -3,6 +3,7 @@ import datadog.trace.agent.test.AgentTestRunner
import datadog.trace.agent.test.utils.OkHttpUtils import datadog.trace.agent.test.utils.OkHttpUtils
import datadog.trace.agent.test.utils.PortUtils import datadog.trace.agent.test.utils.PortUtils
import datadog.trace.api.DDSpanTypes import datadog.trace.api.DDSpanTypes
import datadog.trace.instrumentation.api.Tags
import okhttp3.OkHttpClient import okhttp3.OkHttpClient
import okhttp3.Request import okhttp3.Request
import okhttp3.Response import okhttp3.Response
@ -92,17 +93,17 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
spanType DDSpanTypes.HTTP_SERVER spanType DDSpanTypes.HTTP_SERVER
errored false errored false
tags { tags {
"http.url" "http://localhost:$port/$jspWebappContext/$forwardFromFileName" "$Tags.COMPONENT" "java-web-servlet"
"http.method" "GET" "$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
"peer.hostname" "127.0.0.1" "$Tags.PEER_HOSTNAME" "127.0.0.1"
"peer.ipv4" "127.0.0.1" "$Tags.PEER_HOST_IPV4" "127.0.0.1"
"peer.port" Integer "$Tags.PEER_PORT" Integer
"span.kind" "server" "$Tags.HTTP_URL" "http://localhost:$port/$jspWebappContext/$forwardFromFileName"
"component" "java-web-servlet" "$Tags.HTTP_METHOD" "GET"
"$Tags.HTTP_STATUS" 200
"span.origin.type" "org.apache.catalina.core.ApplicationFilterChain" "span.origin.type" "org.apache.catalina.core.ApplicationFilterChain"
"servlet.context" "/$jspWebappContext" "servlet.context" "/$jspWebappContext"
"servlet.path" "/$forwardFromFileName" "servlet.path" "/$forwardFromFileName"
"http.status_code" 200
defaultTags() defaultTags()
} }
} }
@ -113,7 +114,7 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
resourceName "/$forwardFromFileName" resourceName "/$forwardFromFileName"
errored false errored false
tags { tags {
"component" "jsp-http-servlet" "$Tags.COMPONENT" "jsp-http-servlet"
"span.origin.type" jspForwardFromClassName "span.origin.type" jspForwardFromClassName
"servlet.context" "/$jspWebappContext" "servlet.context" "/$jspWebappContext"
"jsp.requestURL" reqUrl "jsp.requestURL" reqUrl
@ -127,7 +128,7 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
resourceName "/$forwardDestFileName" resourceName "/$forwardDestFileName"
errored false errored false
tags { tags {
"component" "jsp-http-servlet" "$Tags.COMPONENT" "jsp-http-servlet"
"span.origin.type" jspForwardDestClassName "span.origin.type" jspForwardDestClassName
"servlet.context" "/$jspWebappContext" "servlet.context" "/$jspWebappContext"
"jsp.forwardOrigin" "/$forwardFromFileName" "jsp.forwardOrigin" "/$forwardFromFileName"
@ -142,7 +143,7 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
resourceName "/$forwardDestFileName" resourceName "/$forwardDestFileName"
errored false errored false
tags { tags {
"component" "jsp-http-servlet" "$Tags.COMPONENT" "jsp-http-servlet"
"servlet.context" "/$jspWebappContext" "servlet.context" "/$jspWebappContext"
"jsp.classFQCN" "org.apache.jsp.$jspForwardDestClassPrefix$jspForwardDestClassName" "jsp.classFQCN" "org.apache.jsp.$jspForwardDestClassPrefix$jspForwardDestClassName"
"jsp.compiler" "org.apache.jasper.compiler.JDTCompiler" "jsp.compiler" "org.apache.jasper.compiler.JDTCompiler"
@ -156,7 +157,7 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
resourceName "/$forwardFromFileName" resourceName "/$forwardFromFileName"
errored false errored false
tags { tags {
"component" "jsp-http-servlet" "$Tags.COMPONENT" "jsp-http-servlet"
"servlet.context" "/$jspWebappContext" "servlet.context" "/$jspWebappContext"
"jsp.classFQCN" "org.apache.jsp.$jspForwardFromClassPrefix$jspForwardFromClassName" "jsp.classFQCN" "org.apache.jsp.$jspForwardFromClassPrefix$jspForwardFromClassName"
"jsp.compiler" "org.apache.jasper.compiler.JDTCompiler" "jsp.compiler" "org.apache.jasper.compiler.JDTCompiler"
@ -195,17 +196,17 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
spanType DDSpanTypes.HTTP_SERVER spanType DDSpanTypes.HTTP_SERVER
errored false errored false
tags { tags {
"http.url" "http://localhost:$port/$jspWebappContext/forwards/forwardToHtml.jsp" "$Tags.COMPONENT" "java-web-servlet"
"http.method" "GET" "$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
"peer.hostname" "127.0.0.1" "$Tags.PEER_HOSTNAME" "127.0.0.1"
"peer.ipv4" "127.0.0.1" "$Tags.PEER_HOST_IPV4" "127.0.0.1"
"peer.port" Integer "$Tags.PEER_PORT" Integer
"span.kind" "server" "$Tags.HTTP_URL" "http://localhost:$port/$jspWebappContext/forwards/forwardToHtml.jsp"
"component" "java-web-servlet" "$Tags.HTTP_METHOD" "GET"
"$Tags.HTTP_STATUS" 200
"span.origin.type" "org.apache.catalina.core.ApplicationFilterChain" "span.origin.type" "org.apache.catalina.core.ApplicationFilterChain"
"servlet.context" "/$jspWebappContext" "servlet.context" "/$jspWebappContext"
"servlet.path" "/forwards/forwardToHtml.jsp" "servlet.path" "/forwards/forwardToHtml.jsp"
"http.status_code" 200
defaultTags() defaultTags()
} }
} }
@ -216,7 +217,7 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
resourceName "/forwards/forwardToHtml.jsp" resourceName "/forwards/forwardToHtml.jsp"
errored false errored false
tags { tags {
"component" "jsp-http-servlet" "$Tags.COMPONENT" "jsp-http-servlet"
"span.origin.type" "forwardToHtml_jsp" "span.origin.type" "forwardToHtml_jsp"
"servlet.context" "/$jspWebappContext" "servlet.context" "/$jspWebappContext"
"jsp.requestURL" reqUrl "jsp.requestURL" reqUrl
@ -230,7 +231,7 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
resourceName "/forwards/forwardToHtml.jsp" resourceName "/forwards/forwardToHtml.jsp"
errored false errored false
tags { tags {
"component" "jsp-http-servlet" "$Tags.COMPONENT" "jsp-http-servlet"
"servlet.context" "/$jspWebappContext" "servlet.context" "/$jspWebappContext"
"jsp.classFQCN" "org.apache.jsp.forwards.forwardToHtml_jsp" "jsp.classFQCN" "org.apache.jsp.forwards.forwardToHtml_jsp"
"jsp.compiler" "org.apache.jasper.compiler.JDTCompiler" "jsp.compiler" "org.apache.jasper.compiler.JDTCompiler"
@ -264,17 +265,17 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
spanType DDSpanTypes.HTTP_SERVER spanType DDSpanTypes.HTTP_SERVER
errored false errored false
tags { tags {
"http.url" "http://localhost:$port/$jspWebappContext/forwards/forwardToIncludeMulti.jsp" "$Tags.COMPONENT" "java-web-servlet"
"http.method" "GET" "$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
"peer.hostname" "127.0.0.1" "$Tags.PEER_HOSTNAME" "127.0.0.1"
"peer.ipv4" "127.0.0.1" "$Tags.PEER_HOST_IPV4" "127.0.0.1"
"peer.port" Integer "$Tags.PEER_PORT" Integer
"span.kind" "server" "$Tags.HTTP_URL" "http://localhost:$port/$jspWebappContext/forwards/forwardToIncludeMulti.jsp"
"component" "java-web-servlet" "$Tags.HTTP_METHOD" "GET"
"$Tags.HTTP_STATUS" 200
"span.origin.type" "org.apache.catalina.core.ApplicationFilterChain" "span.origin.type" "org.apache.catalina.core.ApplicationFilterChain"
"servlet.context" "/$jspWebappContext" "servlet.context" "/$jspWebappContext"
"servlet.path" "/forwards/forwardToIncludeMulti.jsp" "servlet.path" "/forwards/forwardToIncludeMulti.jsp"
"http.status_code" 200
defaultTags() defaultTags()
} }
} }
@ -285,7 +286,7 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
resourceName "/forwards/forwardToIncludeMulti.jsp" resourceName "/forwards/forwardToIncludeMulti.jsp"
errored false errored false
tags { tags {
"component" "jsp-http-servlet" "$Tags.COMPONENT" "jsp-http-servlet"
"span.origin.type" "forwardToIncludeMulti_jsp" "span.origin.type" "forwardToIncludeMulti_jsp"
"servlet.context" "/$jspWebappContext" "servlet.context" "/$jspWebappContext"
"jsp.requestURL" reqUrl "jsp.requestURL" reqUrl
@ -299,7 +300,7 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
resourceName "/includes/includeMulti.jsp" resourceName "/includes/includeMulti.jsp"
errored false errored false
tags { tags {
"component" "jsp-http-servlet" "$Tags.COMPONENT" "jsp-http-servlet"
"span.origin.type" "includeMulti_jsp" "span.origin.type" "includeMulti_jsp"
"servlet.context" "/$jspWebappContext" "servlet.context" "/$jspWebappContext"
"jsp.forwardOrigin" "/forwards/forwardToIncludeMulti.jsp" "jsp.forwardOrigin" "/forwards/forwardToIncludeMulti.jsp"
@ -314,7 +315,7 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
resourceName "/common/javaLoopH2.jsp" resourceName "/common/javaLoopH2.jsp"
errored false errored false
tags { tags {
"component" "jsp-http-servlet" "$Tags.COMPONENT" "jsp-http-servlet"
"span.origin.type" "javaLoopH2_jsp" "span.origin.type" "javaLoopH2_jsp"
"servlet.context" "/$jspWebappContext" "servlet.context" "/$jspWebappContext"
"jsp.forwardOrigin" "/forwards/forwardToIncludeMulti.jsp" "jsp.forwardOrigin" "/forwards/forwardToIncludeMulti.jsp"
@ -329,7 +330,7 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
resourceName "/common/javaLoopH2.jsp" resourceName "/common/javaLoopH2.jsp"
errored false errored false
tags { tags {
"component" "jsp-http-servlet" "$Tags.COMPONENT" "jsp-http-servlet"
"servlet.context" "/$jspWebappContext" "servlet.context" "/$jspWebappContext"
"jsp.classFQCN" "org.apache.jsp.common.javaLoopH2_jsp" "jsp.classFQCN" "org.apache.jsp.common.javaLoopH2_jsp"
"jsp.compiler" "org.apache.jasper.compiler.JDTCompiler" "jsp.compiler" "org.apache.jasper.compiler.JDTCompiler"
@ -343,7 +344,7 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
resourceName "/common/javaLoopH2.jsp" resourceName "/common/javaLoopH2.jsp"
errored false errored false
tags { tags {
"component" "jsp-http-servlet" "$Tags.COMPONENT" "jsp-http-servlet"
"span.origin.type" "javaLoopH2_jsp" "span.origin.type" "javaLoopH2_jsp"
"servlet.context" "/$jspWebappContext" "servlet.context" "/$jspWebappContext"
"jsp.forwardOrigin" "/forwards/forwardToIncludeMulti.jsp" "jsp.forwardOrigin" "/forwards/forwardToIncludeMulti.jsp"
@ -358,7 +359,7 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
resourceName "/common/javaLoopH2.jsp" resourceName "/common/javaLoopH2.jsp"
errored false errored false
tags { tags {
"component" "jsp-http-servlet" "$Tags.COMPONENT" "jsp-http-servlet"
"servlet.context" "/$jspWebappContext" "servlet.context" "/$jspWebappContext"
"jsp.classFQCN" "org.apache.jsp.common.javaLoopH2_jsp" "jsp.classFQCN" "org.apache.jsp.common.javaLoopH2_jsp"
"jsp.compiler" "org.apache.jasper.compiler.JDTCompiler" "jsp.compiler" "org.apache.jasper.compiler.JDTCompiler"
@ -372,7 +373,7 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
resourceName "/includes/includeMulti.jsp" resourceName "/includes/includeMulti.jsp"
errored false errored false
tags { tags {
"component" "jsp-http-servlet" "$Tags.COMPONENT" "jsp-http-servlet"
"servlet.context" "/$jspWebappContext" "servlet.context" "/$jspWebappContext"
"jsp.classFQCN" "org.apache.jsp.includes.includeMulti_jsp" "jsp.classFQCN" "org.apache.jsp.includes.includeMulti_jsp"
"jsp.compiler" "org.apache.jasper.compiler.JDTCompiler" "jsp.compiler" "org.apache.jasper.compiler.JDTCompiler"
@ -386,7 +387,7 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
resourceName "/forwards/forwardToIncludeMulti.jsp" resourceName "/forwards/forwardToIncludeMulti.jsp"
errored false errored false
tags { tags {
"component" "jsp-http-servlet" "$Tags.COMPONENT" "jsp-http-servlet"
"servlet.context" "/$jspWebappContext" "servlet.context" "/$jspWebappContext"
"jsp.classFQCN" "org.apache.jsp.forwards.forwardToIncludeMulti_jsp" "jsp.classFQCN" "org.apache.jsp.forwards.forwardToIncludeMulti_jsp"
"jsp.compiler" "org.apache.jasper.compiler.JDTCompiler" "jsp.compiler" "org.apache.jasper.compiler.JDTCompiler"
@ -420,17 +421,17 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
spanType DDSpanTypes.HTTP_SERVER spanType DDSpanTypes.HTTP_SERVER
errored false errored false
tags { tags {
"http.url" "http://localhost:$port/$jspWebappContext/forwards/forwardToJspForward.jsp" "$Tags.COMPONENT" "java-web-servlet"
"http.method" "GET" "$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
"peer.hostname" "127.0.0.1" "$Tags.PEER_HOSTNAME" "127.0.0.1"
"peer.ipv4" "127.0.0.1" "$Tags.PEER_HOST_IPV4" "127.0.0.1"
"peer.port" Integer "$Tags.PEER_PORT" Integer
"span.kind" "server" "$Tags.HTTP_URL" "http://localhost:$port/$jspWebappContext/forwards/forwardToJspForward.jsp"
"component" "java-web-servlet" "$Tags.HTTP_METHOD" "GET"
"$Tags.HTTP_STATUS" 200
"span.origin.type" "org.apache.catalina.core.ApplicationFilterChain" "span.origin.type" "org.apache.catalina.core.ApplicationFilterChain"
"servlet.context" "/$jspWebappContext" "servlet.context" "/$jspWebappContext"
"servlet.path" "/forwards/forwardToJspForward.jsp" "servlet.path" "/forwards/forwardToJspForward.jsp"
"http.status_code" 200
defaultTags() defaultTags()
} }
} }
@ -441,7 +442,7 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
resourceName "/forwards/forwardToJspForward.jsp" resourceName "/forwards/forwardToJspForward.jsp"
errored false errored false
tags { tags {
"component" "jsp-http-servlet" "$Tags.COMPONENT" "jsp-http-servlet"
"span.origin.type" "forwardToJspForward_jsp" "span.origin.type" "forwardToJspForward_jsp"
"servlet.context" "/$jspWebappContext" "servlet.context" "/$jspWebappContext"
"jsp.requestURL" reqUrl "jsp.requestURL" reqUrl
@ -455,7 +456,7 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
resourceName "/forwards/forwardToSimpleJava.jsp" resourceName "/forwards/forwardToSimpleJava.jsp"
errored false errored false
tags { tags {
"component" "jsp-http-servlet" "$Tags.COMPONENT" "jsp-http-servlet"
"span.origin.type" "forwardToSimpleJava_jsp" "span.origin.type" "forwardToSimpleJava_jsp"
"servlet.context" "/$jspWebappContext" "servlet.context" "/$jspWebappContext"
"jsp.forwardOrigin" "/forwards/forwardToJspForward.jsp" "jsp.forwardOrigin" "/forwards/forwardToJspForward.jsp"
@ -470,7 +471,7 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
resourceName "/common/loop.jsp" resourceName "/common/loop.jsp"
errored false errored false
tags { tags {
"component" "jsp-http-servlet" "$Tags.COMPONENT" "jsp-http-servlet"
"span.origin.type" "loop_jsp" "span.origin.type" "loop_jsp"
"servlet.context" "/$jspWebappContext" "servlet.context" "/$jspWebappContext"
"jsp.forwardOrigin" "/forwards/forwardToJspForward.jsp" "jsp.forwardOrigin" "/forwards/forwardToJspForward.jsp"
@ -485,7 +486,7 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
resourceName "/common/loop.jsp" resourceName "/common/loop.jsp"
errored false errored false
tags { tags {
"component" "jsp-http-servlet" "$Tags.COMPONENT" "jsp-http-servlet"
"servlet.context" "/$jspWebappContext" "servlet.context" "/$jspWebappContext"
"jsp.classFQCN" "org.apache.jsp.common.loop_jsp" "jsp.classFQCN" "org.apache.jsp.common.loop_jsp"
"jsp.compiler" "org.apache.jasper.compiler.JDTCompiler" "jsp.compiler" "org.apache.jasper.compiler.JDTCompiler"
@ -499,7 +500,7 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
resourceName "/forwards/forwardToSimpleJava.jsp" resourceName "/forwards/forwardToSimpleJava.jsp"
errored false errored false
tags { tags {
"component" "jsp-http-servlet" "$Tags.COMPONENT" "jsp-http-servlet"
"servlet.context" "/$jspWebappContext" "servlet.context" "/$jspWebappContext"
"jsp.classFQCN" "org.apache.jsp.forwards.forwardToSimpleJava_jsp" "jsp.classFQCN" "org.apache.jsp.forwards.forwardToSimpleJava_jsp"
"jsp.compiler" "org.apache.jasper.compiler.JDTCompiler" "jsp.compiler" "org.apache.jasper.compiler.JDTCompiler"
@ -513,7 +514,7 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
resourceName "/forwards/forwardToJspForward.jsp" resourceName "/forwards/forwardToJspForward.jsp"
errored false errored false
tags { tags {
"component" "jsp-http-servlet" "$Tags.COMPONENT" "jsp-http-servlet"
"servlet.context" "/$jspWebappContext" "servlet.context" "/$jspWebappContext"
"jsp.classFQCN" "org.apache.jsp.forwards.forwardToJspForward_jsp" "jsp.classFQCN" "org.apache.jsp.forwards.forwardToJspForward_jsp"
"jsp.compiler" "org.apache.jasper.compiler.JDTCompiler" "jsp.compiler" "org.apache.jasper.compiler.JDTCompiler"
@ -547,17 +548,17 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
spanType DDSpanTypes.HTTP_SERVER spanType DDSpanTypes.HTTP_SERVER
errored true errored true
tags { tags {
"http.url" "http://localhost:$port/$jspWebappContext/forwards/forwardToCompileError.jsp" "$Tags.COMPONENT" "java-web-servlet"
"http.method" "GET" "$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
"peer.hostname" "127.0.0.1" "$Tags.PEER_HOSTNAME" "127.0.0.1"
"peer.ipv4" "127.0.0.1" "$Tags.PEER_HOST_IPV4" "127.0.0.1"
"peer.port" Integer "$Tags.PEER_PORT" Integer
"span.kind" "server" "$Tags.HTTP_URL" "http://localhost:$port/$jspWebappContext/forwards/forwardToCompileError.jsp"
"component" "java-web-servlet" "$Tags.HTTP_METHOD" "GET"
"$Tags.HTTP_STATUS" 500
"span.origin.type" "org.apache.catalina.core.ApplicationFilterChain" "span.origin.type" "org.apache.catalina.core.ApplicationFilterChain"
"servlet.context" "/$jspWebappContext" "servlet.context" "/$jspWebappContext"
"servlet.path" "/forwards/forwardToCompileError.jsp" "servlet.path" "/forwards/forwardToCompileError.jsp"
"http.status_code" 500
errorTags(JasperException, String) errorTags(JasperException, String)
defaultTags() defaultTags()
} }
@ -569,7 +570,7 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
resourceName "/forwards/forwardToCompileError.jsp" resourceName "/forwards/forwardToCompileError.jsp"
errored true errored true
tags { tags {
"component" "jsp-http-servlet" "$Tags.COMPONENT" "jsp-http-servlet"
"span.origin.type" "forwardToCompileError_jsp" "span.origin.type" "forwardToCompileError_jsp"
"servlet.context" "/$jspWebappContext" "servlet.context" "/$jspWebappContext"
"jsp.requestURL" reqUrl "jsp.requestURL" reqUrl
@ -584,7 +585,7 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
resourceName "/compileError.jsp" resourceName "/compileError.jsp"
errored true errored true
tags { tags {
"component" "jsp-http-servlet" "$Tags.COMPONENT" "jsp-http-servlet"
"servlet.context" "/$jspWebappContext" "servlet.context" "/$jspWebappContext"
"jsp.classFQCN" "org.apache.jsp.compileError_jsp" "jsp.classFQCN" "org.apache.jsp.compileError_jsp"
"jsp.compiler" "org.apache.jasper.compiler.JDTCompiler" "jsp.compiler" "org.apache.jasper.compiler.JDTCompiler"
@ -599,7 +600,7 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
resourceName "/forwards/forwardToCompileError.jsp" resourceName "/forwards/forwardToCompileError.jsp"
errored false errored false
tags { tags {
"component" "jsp-http-servlet" "$Tags.COMPONENT" "jsp-http-servlet"
"servlet.context" "/$jspWebappContext" "servlet.context" "/$jspWebappContext"
"jsp.classFQCN" "org.apache.jsp.forwards.forwardToCompileError_jsp" "jsp.classFQCN" "org.apache.jsp.forwards.forwardToCompileError_jsp"
"jsp.compiler" "org.apache.jasper.compiler.JDTCompiler" "jsp.compiler" "org.apache.jasper.compiler.JDTCompiler"
@ -633,17 +634,17 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
spanType DDSpanTypes.HTTP_SERVER spanType DDSpanTypes.HTTP_SERVER
errored false errored false
tags { tags {
"http.url" "http://localhost:$port/$jspWebappContext/forwards/forwardToNonExistent.jsp" "$Tags.COMPONENT" "java-web-servlet"
"http.method" "GET" "$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
"peer.hostname" "127.0.0.1" "$Tags.PEER_HOSTNAME" "127.0.0.1"
"peer.ipv4" "127.0.0.1" "$Tags.PEER_HOST_IPV4" "127.0.0.1"
"peer.port" Integer "$Tags.PEER_PORT" Integer
"span.kind" "server" "$Tags.HTTP_URL" "http://localhost:$port/$jspWebappContext/forwards/forwardToNonExistent.jsp"
"component" "java-web-servlet" "$Tags.HTTP_METHOD" "GET"
"$Tags.HTTP_STATUS" 404
"span.origin.type" "org.apache.catalina.core.ApplicationFilterChain" "span.origin.type" "org.apache.catalina.core.ApplicationFilterChain"
"servlet.context" "/$jspWebappContext" "servlet.context" "/$jspWebappContext"
"servlet.path" "/forwards/forwardToNonExistent.jsp" "servlet.path" "/forwards/forwardToNonExistent.jsp"
"http.status_code" 404
defaultTags() defaultTags()
} }
} }
@ -654,7 +655,7 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
resourceName "/forwards/forwardToNonExistent.jsp" resourceName "/forwards/forwardToNonExistent.jsp"
errored false errored false
tags { tags {
"component" "jsp-http-servlet" "$Tags.COMPONENT" "jsp-http-servlet"
"span.origin.type" "forwardToNonExistent_jsp" "span.origin.type" "forwardToNonExistent_jsp"
"servlet.context" "/$jspWebappContext" "servlet.context" "/$jspWebappContext"
"jsp.requestURL" reqUrl "jsp.requestURL" reqUrl
@ -668,7 +669,7 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
resourceName "/forwards/forwardToNonExistent.jsp" resourceName "/forwards/forwardToNonExistent.jsp"
errored false errored false
tags { tags {
"component" "jsp-http-servlet" "$Tags.COMPONENT" "jsp-http-servlet"
"servlet.context" "/$jspWebappContext" "servlet.context" "/$jspWebappContext"
"jsp.classFQCN" "org.apache.jsp.forwards.forwardToNonExistent_jsp" "jsp.classFQCN" "org.apache.jsp.forwards.forwardToNonExistent_jsp"
"jsp.compiler" "org.apache.jasper.compiler.JDTCompiler" "jsp.compiler" "org.apache.jasper.compiler.JDTCompiler"

View File

@ -1,4 +1,5 @@
import datadog.trace.agent.test.AgentTestRunner import datadog.trace.agent.test.AgentTestRunner
import datadog.trace.instrumentation.api.Tags
import org.apache.kafka.clients.consumer.ConsumerConfig import org.apache.kafka.clients.consumer.ConsumerConfig
import org.apache.kafka.clients.consumer.ConsumerRecord import org.apache.kafka.clients.consumer.ConsumerRecord
import org.apache.kafka.clients.consumer.KafkaConsumer import org.apache.kafka.clients.consumer.KafkaConsumer
@ -88,8 +89,8 @@ class KafkaClientTest extends AgentTestRunner {
errored false errored false
parent() parent()
tags { tags {
"component" "java-kafka" "$Tags.COMPONENT" "java-kafka"
"span.kind" "producer" "$Tags.SPAN_KIND" Tags.SPAN_KIND_PRODUCER
defaultTags() defaultTags()
} }
} }
@ -104,8 +105,8 @@ class KafkaClientTest extends AgentTestRunner {
errored false errored false
childOf TEST_WRITER[0][0] childOf TEST_WRITER[0][0]
tags { tags {
"component" "java-kafka" "$Tags.COMPONENT" "java-kafka"
"span.kind" "consumer" "$Tags.SPAN_KIND" Tags.SPAN_KIND_CONSUMER
"partition" { it >= 0 } "partition" { it >= 0 }
"offset" 0 "offset" 0
defaultTags(true) defaultTags(true)
@ -170,8 +171,8 @@ class KafkaClientTest extends AgentTestRunner {
errored false errored false
parent() parent()
tags { tags {
"component" "java-kafka" "$Tags.COMPONENT" "java-kafka"
"span.kind" "producer" "$Tags.SPAN_KIND" Tags.SPAN_KIND_PRODUCER
"kafka.partition" { it >= 0 } "kafka.partition" { it >= 0 }
defaultTags(true) defaultTags(true)
} }
@ -187,8 +188,8 @@ class KafkaClientTest extends AgentTestRunner {
errored false errored false
childOf TEST_WRITER[0][0] childOf TEST_WRITER[0][0]
tags { tags {
"component" "java-kafka" "$Tags.COMPONENT" "java-kafka"
"span.kind" "consumer" "$Tags.SPAN_KIND" Tags.SPAN_KIND_CONSUMER
"partition" { it >= 0 } "partition" { it >= 0 }
"offset" 0 "offset" 0
defaultTags(true) defaultTags(true)

View File

@ -1,4 +1,5 @@
import datadog.trace.agent.test.AgentTestRunner import datadog.trace.agent.test.AgentTestRunner
import datadog.trace.instrumentation.api.Tags
import org.apache.kafka.clients.consumer.ConsumerRecord import org.apache.kafka.clients.consumer.ConsumerRecord
import org.apache.kafka.common.serialization.Serdes import org.apache.kafka.common.serialization.Serdes
import org.apache.kafka.streams.KafkaStreams import org.apache.kafka.streams.KafkaStreams
@ -133,8 +134,8 @@ class KafkaStreamsTest extends AgentTestRunner {
errored false errored false
parent() parent()
tags { tags {
"component" "java-kafka" "$Tags.COMPONENT" "java-kafka"
"span.kind" "producer" "$Tags.SPAN_KIND" Tags.SPAN_KIND_PRODUCER
defaultTags() defaultTags()
} }
} }
@ -149,8 +150,8 @@ class KafkaStreamsTest extends AgentTestRunner {
errored false errored false
childOf TEST_WRITER[0][0] childOf TEST_WRITER[0][0]
tags { tags {
"component" "java-kafka" "$Tags.COMPONENT" "java-kafka"
"span.kind" "consumer" "$Tags.SPAN_KIND" Tags.SPAN_KIND_CONSUMER
"partition" { it >= 0 } "partition" { it >= 0 }
"offset" 0 "offset" 0
defaultTags(true) defaultTags(true)
@ -169,8 +170,8 @@ class KafkaStreamsTest extends AgentTestRunner {
childOf span(1) childOf span(1)
tags { tags {
"component" "java-kafka" "$Tags.COMPONENT" "java-kafka"
"span.kind" "producer" "$Tags.SPAN_KIND" Tags.SPAN_KIND_PRODUCER
defaultTags() defaultTags()
} }
} }
@ -185,12 +186,12 @@ class KafkaStreamsTest extends AgentTestRunner {
childOf TEST_WRITER[0][0] childOf TEST_WRITER[0][0]
tags { tags {
"component" "java-kafka" "$Tags.COMPONENT" "java-kafka"
"span.kind" "consumer" "$Tags.SPAN_KIND" Tags.SPAN_KIND_CONSUMER
"partition" { it >= 0 } "partition" { it >= 0 }
"offset" 0 "offset" 0
defaultTags(true)
"asdf" "testing" "asdf" "testing"
defaultTags(true)
} }
} }
} }
@ -204,12 +205,12 @@ class KafkaStreamsTest extends AgentTestRunner {
errored false errored false
childOf TEST_WRITER[2][0] childOf TEST_WRITER[2][0]
tags { tags {
"component" "java-kafka" "$Tags.COMPONENT" "java-kafka"
"span.kind" "consumer" "$Tags.SPAN_KIND" Tags.SPAN_KIND_CONSUMER
"partition" { it >= 0 } "partition" { it >= 0 }
"offset" 0 "offset" 0
defaultTags(true)
"testing" 123 "testing" 123
defaultTags(true)
} }
} }
} }

View File

@ -1,6 +1,7 @@
import datadog.trace.agent.test.AgentTestRunner import datadog.trace.agent.test.AgentTestRunner
import datadog.trace.agent.test.utils.PortUtils import datadog.trace.agent.test.utils.PortUtils
import datadog.trace.api.DDSpanTypes import datadog.trace.api.DDSpanTypes
import datadog.trace.instrumentation.api.Tags
import io.lettuce.core.ClientOptions import io.lettuce.core.ClientOptions
import io.lettuce.core.ConnectionFuture import io.lettuce.core.ConnectionFuture
import io.lettuce.core.RedisClient import io.lettuce.core.RedisClient
@ -121,13 +122,13 @@ class LettuceAsyncClientTest extends AgentTestRunner {
errored false errored false
tags { tags {
defaultTags() "$Tags.COMPONENT" "redis-client"
"component" "redis-client" "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.PEER_HOSTNAME" HOST
"$Tags.PEER_PORT" port
"$Tags.DB_TYPE" "redis"
"db.redis.dbIndex" 0 "db.redis.dbIndex" 0
"db.type" "redis" defaultTags()
"peer.hostname" HOST
"peer.port" port
"span.kind" "client"
} }
} }
} }
@ -160,14 +161,14 @@ class LettuceAsyncClientTest extends AgentTestRunner {
errored true errored true
tags { tags {
defaultTags() "$Tags.COMPONENT" "redis-client"
"component" "redis-client" "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.PEER_HOSTNAME" HOST
"$Tags.PEER_PORT" incorrectPort
"$Tags.DB_TYPE" "redis"
"db.redis.dbIndex" 0 "db.redis.dbIndex" 0
"db.type" "redis"
errorTags CompletionException, String errorTags CompletionException, String
"peer.hostname" HOST defaultTags()
"peer.port" incorrectPort
"span.kind" "client"
} }
} }
} }
@ -191,10 +192,10 @@ class LettuceAsyncClientTest extends AgentTestRunner {
errored false errored false
tags { tags {
"$Tags.COMPONENT" "redis-client"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "redis"
defaultTags() defaultTags()
"component" "redis-client"
"db.type" "redis"
"span.kind" "client"
} }
} }
} }
@ -229,10 +230,10 @@ class LettuceAsyncClientTest extends AgentTestRunner {
errored false errored false
tags { tags {
"$Tags.COMPONENT" "redis-client"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "redis"
defaultTags() defaultTags()
"component" "redis-client"
"db.type" "redis"
"span.kind" "client"
} }
} }
} }
@ -281,10 +282,10 @@ class LettuceAsyncClientTest extends AgentTestRunner {
errored false errored false
tags { tags {
"$Tags.COMPONENT" "redis-client"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "redis"
defaultTags() defaultTags()
"component" "redis-client"
"db.type" "redis"
"span.kind" "client"
} }
} }
} }
@ -319,10 +320,10 @@ class LettuceAsyncClientTest extends AgentTestRunner {
errored false errored false
tags { tags {
"$Tags.COMPONENT" "redis-client"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "redis"
defaultTags() defaultTags()
"component" "redis-client"
"db.type" "redis"
"span.kind" "client"
} }
} }
} }
@ -376,10 +377,10 @@ class LettuceAsyncClientTest extends AgentTestRunner {
errored false errored false
tags { tags {
"$Tags.COMPONENT" "redis-client"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "redis"
defaultTags() defaultTags()
"component" "redis-client"
"db.type" "redis"
"span.kind" "client"
} }
} }
} }
@ -392,10 +393,10 @@ class LettuceAsyncClientTest extends AgentTestRunner {
errored false errored false
tags { tags {
"$Tags.COMPONENT" "redis-client"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "redis"
defaultTags() defaultTags()
"component" "redis-client"
"db.type" "redis"
"span.kind" "client"
} }
} }
} }
@ -438,11 +439,11 @@ class LettuceAsyncClientTest extends AgentTestRunner {
errored true errored true
tags { tags {
defaultTags() "$Tags.COMPONENT" "redis-client"
"component" "redis-client" "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"db.type" "redis" "$Tags.DB_TYPE" "redis"
errorTags(IllegalStateException, "TestException") errorTags(IllegalStateException, "TestException")
"span.kind" "client" defaultTags()
} }
} }
} }
@ -479,11 +480,11 @@ class LettuceAsyncClientTest extends AgentTestRunner {
errored false errored false
tags { tags {
defaultTags() "$Tags.COMPONENT" "redis-client"
"component" "redis-client" "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"db.type" "redis" "$Tags.DB_TYPE" "redis"
"db.command.cancelled" true "db.command.cancelled" true
"span.kind" "client" defaultTags()
} }
} }
} }
@ -505,10 +506,10 @@ class LettuceAsyncClientTest extends AgentTestRunner {
errored false errored false
tags { tags {
"$Tags.COMPONENT" "redis-client"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "redis"
defaultTags() defaultTags()
"component" "redis-client"
"db.type" "redis"
"span.kind" "client"
} }
} }
} }
@ -531,10 +532,10 @@ class LettuceAsyncClientTest extends AgentTestRunner {
errored false errored false
tags { tags {
"$Tags.COMPONENT" "redis-client"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "redis"
defaultTags() defaultTags()
"component" "redis-client"
"db.type" "redis"
"span.kind" "client"
} }
} }
} }

View File

@ -1,6 +1,7 @@
import datadog.trace.agent.test.AgentTestRunner import datadog.trace.agent.test.AgentTestRunner
import datadog.trace.agent.test.utils.PortUtils import datadog.trace.agent.test.utils.PortUtils
import datadog.trace.api.DDSpanTypes import datadog.trace.api.DDSpanTypes
import datadog.trace.instrumentation.api.Tags
import io.lettuce.core.ClientOptions import io.lettuce.core.ClientOptions
import io.lettuce.core.RedisClient import io.lettuce.core.RedisClient
import io.lettuce.core.api.StatefulConnection import io.lettuce.core.api.StatefulConnection
@ -94,10 +95,10 @@ class LettuceReactiveClientTest extends AgentTestRunner {
errored false errored false
tags { tags {
"$Tags.COMPONENT" "redis-client"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "redis"
defaultTags() defaultTags()
"component" "redis-client"
"db.type" "redis"
"span.kind" "client"
} }
} }
} }
@ -123,10 +124,10 @@ class LettuceReactiveClientTest extends AgentTestRunner {
errored false errored false
tags { tags {
"$Tags.COMPONENT" "redis-client"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "redis"
defaultTags() defaultTags()
"component" "redis-client"
"db.type" "redis"
"span.kind" "client"
} }
} }
} }
@ -160,10 +161,10 @@ class LettuceReactiveClientTest extends AgentTestRunner {
errored false errored false
tags { tags {
"$Tags.COMPONENT" "redis-client"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "redis"
defaultTags() defaultTags()
"component" "redis-client"
"db.type" "redis"
"span.kind" "client"
} }
} }
} }
@ -195,10 +196,10 @@ class LettuceReactiveClientTest extends AgentTestRunner {
errored false errored false
tags { tags {
"$Tags.COMPONENT" "redis-client"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "redis"
defaultTags() defaultTags()
"component" "redis-client"
"db.type" "redis"
"span.kind" "client"
} }
} }
} }
@ -220,11 +221,11 @@ class LettuceReactiveClientTest extends AgentTestRunner {
errored false errored false
tags { tags {
defaultTags() "$Tags.COMPONENT" "redis-client"
"component" "redis-client" "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"db.type" "redis" "$Tags.DB_TYPE" "redis"
"db.command.results.count" 157 "db.command.results.count" 157
"span.kind" "client" defaultTags()
} }
} }
} }
@ -246,12 +247,12 @@ class LettuceReactiveClientTest extends AgentTestRunner {
errored false errored false
tags { tags {
defaultTags() "$Tags.COMPONENT" "redis-client"
"component" "redis-client" "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"db.type" "redis" "$Tags.DB_TYPE" "redis"
"db.command.cancelled" true "db.command.cancelled" true
"db.command.results.count" 2 "db.command.results.count" 2
"span.kind" "client" defaultTags()
} }
} }
} }
@ -285,10 +286,10 @@ class LettuceReactiveClientTest extends AgentTestRunner {
errored false errored false
tags { tags {
"$Tags.COMPONENT" "redis-client"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "redis"
defaultTags() defaultTags()
"component" "redis-client"
"db.type" "redis"
"span.kind" "client"
} }
} }
} }
@ -310,10 +311,10 @@ class LettuceReactiveClientTest extends AgentTestRunner {
errored false errored false
tags { tags {
"$Tags.COMPONENT" "redis-client"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "redis"
defaultTags() defaultTags()
"component" "redis-client"
"db.type" "redis"
"span.kind" "client"
} }
} }
} }

View File

@ -1,6 +1,7 @@
import datadog.trace.agent.test.AgentTestRunner import datadog.trace.agent.test.AgentTestRunner
import datadog.trace.agent.test.utils.PortUtils import datadog.trace.agent.test.utils.PortUtils
import datadog.trace.api.DDSpanTypes import datadog.trace.api.DDSpanTypes
import datadog.trace.instrumentation.api.Tags
import io.lettuce.core.ClientOptions import io.lettuce.core.ClientOptions
import io.lettuce.core.RedisClient import io.lettuce.core.RedisClient
import io.lettuce.core.RedisConnectionException import io.lettuce.core.RedisConnectionException
@ -101,13 +102,13 @@ class LettuceSyncClientTest extends AgentTestRunner {
errored false errored false
tags { tags {
defaultTags() "$Tags.COMPONENT" "redis-client"
"component" "redis-client" "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.PEER_HOSTNAME" HOST
"$Tags.PEER_PORT" port
"$Tags.DB_TYPE" "redis"
"db.redis.dbIndex" 0 "db.redis.dbIndex" 0
"db.type" "redis" defaultTags()
"peer.hostname" HOST
"peer.port" port
"span.kind" "client"
} }
} }
} }
@ -137,14 +138,14 @@ class LettuceSyncClientTest extends AgentTestRunner {
errored true errored true
tags { tags {
defaultTags() "$Tags.COMPONENT" "redis-client"
"component" "redis-client" "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.PEER_HOSTNAME" HOST
"$Tags.PEER_PORT" incorrectPort
"$Tags.DB_TYPE" "redis"
"db.redis.dbIndex" 0 "db.redis.dbIndex" 0
"db.type" "redis"
errorTags CompletionException, String errorTags CompletionException, String
"peer.hostname" HOST defaultTags()
"peer.port" incorrectPort
"span.kind" "client"
} }
} }
} }
@ -167,10 +168,10 @@ class LettuceSyncClientTest extends AgentTestRunner {
errored false errored false
tags { tags {
"$Tags.COMPONENT" "redis-client"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "redis"
defaultTags() defaultTags()
"component" "redis-client"
"db.type" "redis"
"span.kind" "client"
} }
} }
} }
@ -193,10 +194,10 @@ class LettuceSyncClientTest extends AgentTestRunner {
errored false errored false
tags { tags {
"$Tags.COMPONENT" "redis-client"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "redis"
defaultTags() defaultTags()
"component" "redis-client"
"db.type" "redis"
"span.kind" "client"
} }
} }
} }
@ -219,10 +220,10 @@ class LettuceSyncClientTest extends AgentTestRunner {
errored false errored false
tags { tags {
"$Tags.COMPONENT" "redis-client"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "redis"
defaultTags() defaultTags()
"component" "redis-client"
"db.type" "redis"
"span.kind" "client"
} }
} }
} }
@ -245,10 +246,10 @@ class LettuceSyncClientTest extends AgentTestRunner {
errored false errored false
tags { tags {
"$Tags.COMPONENT" "redis-client"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "redis"
defaultTags() defaultTags()
"component" "redis-client"
"db.type" "redis"
"span.kind" "client"
} }
} }
} }
@ -271,10 +272,10 @@ class LettuceSyncClientTest extends AgentTestRunner {
errored false errored false
tags { tags {
"$Tags.COMPONENT" "redis-client"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "redis"
defaultTags() defaultTags()
"component" "redis-client"
"db.type" "redis"
"span.kind" "client"
} }
} }
} }
@ -297,10 +298,10 @@ class LettuceSyncClientTest extends AgentTestRunner {
errored false errored false
tags { tags {
"$Tags.COMPONENT" "redis-client"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "redis"
defaultTags() defaultTags()
"component" "redis-client"
"db.type" "redis"
"span.kind" "client"
} }
} }
} }
@ -323,10 +324,10 @@ class LettuceSyncClientTest extends AgentTestRunner {
errored false errored false
tags { tags {
"$Tags.COMPONENT" "redis-client"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "redis"
defaultTags() defaultTags()
"component" "redis-client"
"db.type" "redis"
"span.kind" "client"
} }
} }
} }
@ -348,10 +349,10 @@ class LettuceSyncClientTest extends AgentTestRunner {
errored false errored false
tags { tags {
"$Tags.COMPONENT" "redis-client"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "redis"
defaultTags() defaultTags()
"component" "redis-client"
"db.type" "redis"
"span.kind" "client"
} }
} }
} }
@ -373,10 +374,10 @@ class LettuceSyncClientTest extends AgentTestRunner {
errored false errored false
tags { tags {
"$Tags.COMPONENT" "redis-client"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_TYPE" "redis"
defaultTags() defaultTags()
"component" "redis-client"
"db.type" "redis"
"span.kind" "client"
} }
} }
} }

View File

@ -250,14 +250,14 @@ class MongoClientTest extends MongoBaseTest {
tags { tags {
"$Tags.COMPONENT" "java-mongo" "$Tags.COMPONENT" "java-mongo"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_INSTANCE" instance "$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_HOST_IPV4" "127.0.0.1"
"$Tags.PEER_PORT" port
"$Tags.DB_STATEMENT" { "$Tags.DB_STATEMENT" {
it.replace(" ", "") == statement it.replace(" ", "") == statement
} }
"$Tags.DB_TYPE" "mongo" "$Tags.DB_TYPE" "mongo"
"$Tags.PEER_HOSTNAME" "localhost" "$Tags.DB_INSTANCE" instance
"$Tags.PEER_HOST_IPV4" "127.0.0.1"
"$Tags.PEER_PORT" port
defaultTags() defaultTags()
} }
} }

View File

@ -285,12 +285,12 @@ class MongoAsyncClientTest extends MongoBaseTest {
tags { tags {
"$Tags.COMPONENT" "java-mongo" "$Tags.COMPONENT" "java-mongo"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.DB_INSTANCE" instance
"$Tags.DB_STATEMENT" statementEval
"$Tags.DB_TYPE" "mongo"
"$Tags.PEER_HOSTNAME" "localhost" "$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_HOST_IPV4" "127.0.0.1" "$Tags.PEER_HOST_IPV4" "127.0.0.1"
"$Tags.PEER_PORT" port "$Tags.PEER_PORT" port
"$Tags.DB_STATEMENT" statementEval
"$Tags.DB_TYPE" "mongo"
"$Tags.DB_INSTANCE" instance
defaultTags() defaultTags()
} }
} }

View File

@ -199,8 +199,8 @@ class Netty41ClientTest extends HttpClientTest<NettyHttpClientDecorator> {
resourceName "AnnotatedClass.makeRequestUnderTrace" resourceName "AnnotatedClass.makeRequestUnderTrace"
errored false errored false
tags { tags {
defaultTags()
"$Tags.COMPONENT" "trace" "$Tags.COMPONENT" "trace"
defaultTags()
} }
} }
clientSpan(it, 2, span(1), method) clientSpan(it, 2, span(1), method)

View File

@ -88,17 +88,17 @@ class PlayServerTest extends HttpServerTest<Server, NettyHttpServerDecorator> {
childOf(parent as DDSpan) childOf(parent as DDSpan)
tags { tags {
"$Tags.COMPONENT" PlayHttpServerDecorator.DECORATE.component() "$Tags.COMPONENT" PlayHttpServerDecorator.DECORATE.component()
"$Tags.HTTP_STATUS" Integer
"$Tags.HTTP_URL" String
"$Tags.PEER_HOST_IPV4" { it == null || it == "127.0.0.1" } // Optional
"$Tags.HTTP_METHOD" String
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER "$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
defaultTags() "$Tags.PEER_HOST_IPV4" { it == null || it == "127.0.0.1" } // Optional
"$Tags.HTTP_URL" String
"$Tags.HTTP_METHOD" String
"$Tags.HTTP_STATUS" Integer
if (endpoint == ERROR) { if (endpoint == ERROR) {
"$Tags.ERROR" true "$Tags.ERROR" true
} else if (endpoint == EXCEPTION) { } else if (endpoint == EXCEPTION) {
errorTags(Exception, EXCEPTION.body) errorTags(Exception, EXCEPTION.body)
} }
defaultTags()
} }
} }
} }

View File

@ -90,17 +90,17 @@ class PlayServerTest extends HttpServerTest<Server, AkkaHttpServerDecorator> {
childOf(parent as DDSpan) childOf(parent as DDSpan)
tags { tags {
"$Tags.COMPONENT" PlayHttpServerDecorator.DECORATE.component() "$Tags.COMPONENT" PlayHttpServerDecorator.DECORATE.component()
"$Tags.HTTP_STATUS" Integer
"$Tags.HTTP_URL" String
"$Tags.PEER_HOST_IPV4" { it == null || it == "127.0.0.1" } // Optional
"$Tags.HTTP_METHOD" String
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER "$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
defaultTags() "$Tags.PEER_HOST_IPV4" { it == null || it == "127.0.0.1" } // Optional
"$Tags.HTTP_URL" String
"$Tags.HTTP_METHOD" String
"$Tags.HTTP_STATUS" Integer
if (endpoint == ERROR) { if (endpoint == ERROR) {
"$Tags.ERROR" true "$Tags.ERROR" true
} else if (endpoint == EXCEPTION) { } else if (endpoint == EXCEPTION) {
errorTags(Exception, EXCEPTION.body) errorTags(Exception, EXCEPTION.body)
} }
defaultTags()
} }
} }
} }
@ -119,18 +119,18 @@ class PlayServerTest extends HttpServerTest<Server, AkkaHttpServerDecorator> {
parent() parent()
} }
tags { tags {
defaultTags(true)
"$Tags.COMPONENT" serverDecorator.component() "$Tags.COMPONENT" serverDecorator.component()
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
"$Tags.HTTP_STATUS" endpoint.status
"$Tags.HTTP_URL" "${endpoint.resolve(address)}"
"$Tags.HTTP_METHOD" method
if (endpoint.errored) { if (endpoint.errored) {
"$Tags.ERROR" endpoint.errored "$Tags.ERROR" endpoint.errored
"error.msg" { it == null || it == EXCEPTION.body } "error.msg" { it == null || it == EXCEPTION.body }
"error.type" { it == null || it == Exception.name } "error.type" { it == null || it == Exception.name }
"error.stack" { it == null || it instanceof String } "error.stack" { it == null || it instanceof String }
} }
"$Tags.HTTP_STATUS" endpoint.status defaultTags(true)
"$Tags.HTTP_URL" "${endpoint.resolve(address)}"
"$Tags.HTTP_METHOD" method
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
} }
} }
} }

View File

@ -365,9 +365,6 @@ class RabbitMQTest extends AgentTestRunner {
errored exception != null errored exception != null
tags { tags {
if (exception) {
errorTags(exception.class, errorMsg)
}
"$Tags.COMPONENT" "rabbitmq-amqp" "$Tags.COMPONENT" "rabbitmq-amqp"
"$Tags.PEER_HOSTNAME" { it == null || it instanceof String } "$Tags.PEER_HOSTNAME" { it == null || it instanceof String }
"$Tags.PEER_HOST_IPV4" { "127.0.0.1" } "$Tags.PEER_HOST_IPV4" { "127.0.0.1" }
@ -401,6 +398,9 @@ class RabbitMQTest extends AgentTestRunner {
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"amqp.command" { it == null || it == resource } "amqp.command" { it == null || it == resource }
} }
if (exception) {
errorTags(exception.class, errorMsg)
}
defaultTags(distributedRootSpan) defaultTags(distributedRootSpan)
} }
} }

View File

@ -72,12 +72,12 @@ class RatpackOtherTest extends AgentTestRunner {
tags { tags {
"$Tags.COMPONENT" "netty" "$Tags.COMPONENT" "netty"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER "$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
"$Tags.HTTP_METHOD" "GET"
"$Tags.HTTP_STATUS" 200
"$Tags.HTTP_URL" "${app.address.resolve(path)}"
"$Tags.PEER_HOSTNAME" "$app.address.host" "$Tags.PEER_HOSTNAME" "$app.address.host"
"$Tags.PEER_HOST_IPV4" "127.0.0.1" "$Tags.PEER_HOST_IPV4" "127.0.0.1"
"$Tags.PEER_PORT" Integer "$Tags.PEER_PORT" Integer
"$Tags.HTTP_URL" "${app.address.resolve(path)}"
"$Tags.HTTP_METHOD" "GET"
"$Tags.HTTP_STATUS" 200
defaultTags() defaultTags()
} }
} }
@ -91,11 +91,11 @@ class RatpackOtherTest extends AgentTestRunner {
tags { tags {
"$Tags.COMPONENT" "ratpack" "$Tags.COMPONENT" "ratpack"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER "$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
"$Tags.HTTP_METHOD" "GET"
"$Tags.HTTP_STATUS" 200
"$Tags.HTTP_URL" "${app.address.resolve(path)}"
"$Tags.PEER_HOSTNAME" "$app.address.host" "$Tags.PEER_HOSTNAME" "$app.address.host"
"$Tags.PEER_PORT" Integer "$Tags.PEER_PORT" Integer
"$Tags.HTTP_URL" "${app.address.resolve(path)}"
"$Tags.HTTP_METHOD" "GET"
"$Tags.HTTP_STATUS" 200
defaultTags() defaultTags()
} }
} }

View File

@ -107,19 +107,19 @@ class RatpackHttpServerTest extends HttpServerTest<EmbeddedApp, NettyHttpServerD
childOf(parent as DDSpan) childOf(parent as DDSpan)
tags { tags {
"$Tags.COMPONENT" RatpackServerDecorator.DECORATE.component() "$Tags.COMPONENT" RatpackServerDecorator.DECORATE.component()
"$Tags.HTTP_STATUS" Integer
"$Tags.HTTP_URL" String
"$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_PORT" Integer
"$Tags.PEER_HOST_IPV4" { it == null || it == "127.0.0.1" } // Optional
"$Tags.HTTP_METHOD" String
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER "$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
defaultTags() "$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_HOST_IPV4" { it == null || it == "127.0.0.1" } // Optional
"$Tags.PEER_PORT" Integer
"$Tags.HTTP_URL" String
"$Tags.HTTP_METHOD" String
"$Tags.HTTP_STATUS" Integer
if (endpoint == ERROR) { if (endpoint == ERROR) {
"$Tags.ERROR" true "$Tags.ERROR" true
} else if (endpoint == EXCEPTION) { } else if (endpoint == EXCEPTION) {
errorTags(Exception, EXCEPTION.body) errorTags(Exception, EXCEPTION.body)
} }
defaultTags()
} }
} }
} }

View File

@ -93,25 +93,24 @@ class JettyServlet2Test extends HttpServerTest<Server, Servlet2Decorator> {
parent() parent()
} }
tags { tags {
"$Tags.COMPONENT" serverDecorator.component()
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
"$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_HOST_IPV4" "127.0.0.1"
// No peer port
"$Tags.HTTP_URL" "${endpoint.resolve(address)}"
"$Tags.HTTP_METHOD" method
"$Tags.HTTP_STATUS" endpoint.status
"servlet.context" "/$CONTEXT" "servlet.context" "/$CONTEXT"
"servlet.path" endpoint.path "servlet.path" endpoint.path
"span.origin.type" TestServlet2.Sync.name "span.origin.type" TestServlet2.Sync.name
defaultTags(true)
"$Tags.COMPONENT" serverDecorator.component()
if (endpoint.errored) { if (endpoint.errored) {
"$Tags.ERROR" endpoint.errored "$Tags.ERROR" endpoint.errored
"error.msg" { it == null || it == EXCEPTION.body } "error.msg" { it == null || it == EXCEPTION.body }
"error.type" { it == null || it == Exception.name } "error.type" { it == null || it == Exception.name }
"error.stack" { it == null || it instanceof String } "error.stack" { it == null || it instanceof String }
} }
"$Tags.HTTP_STATUS" endpoint.status defaultTags(true)
"$Tags.HTTP_URL" "${endpoint.resolve(address)}"
"$Tags.PEER_HOSTNAME" "localhost"
// No peer port
"$Tags.PEER_HOST_IPV4" "127.0.0.1"
"$Tags.HTTP_METHOD" method
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
} }
} }
} }

View File

@ -82,25 +82,24 @@ abstract class AbstractServlet3Test<SERVER, CONTEXT> extends HttpServerTest<SERV
parent() parent()
} }
tags { tags {
"$Tags.COMPONENT" serverDecorator.component()
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
"$Tags.PEER_HOSTNAME" { it == "localhost" || it == "127.0.0.1" }
"$Tags.PEER_HOST_IPV4" { it == null || it == "127.0.0.1" } // Optional
"$Tags.PEER_PORT" Integer
"$Tags.HTTP_URL" "${endpoint.resolve(address)}"
"$Tags.HTTP_METHOD" method
"$Tags.HTTP_STATUS" endpoint.status
"servlet.context" "/$context" "servlet.context" "/$context"
"servlet.path" { it == endpoint.path || it == "/dispatch$endpoint.path" } "servlet.path" { it == endpoint.path || it == "/dispatch$endpoint.path" }
"span.origin.type" { it == servlet.name || it == ApplicationFilterChain.name } "span.origin.type" { it == servlet.name || it == ApplicationFilterChain.name }
defaultTags(true)
"$Tags.COMPONENT" serverDecorator.component()
if (endpoint.errored) { if (endpoint.errored) {
"$Tags.ERROR" endpoint.errored "$Tags.ERROR" endpoint.errored
"error.msg" { it == null || it == EXCEPTION.body } "error.msg" { it == null || it == EXCEPTION.body }
"error.type" { it == null || it == Exception.name } "error.type" { it == null || it == Exception.name }
"error.stack" { it == null || it instanceof String } "error.stack" { it == null || it instanceof String }
} }
"$Tags.HTTP_STATUS" endpoint.status defaultTags(true)
"$Tags.HTTP_URL" "${endpoint.resolve(address)}"
"$Tags.PEER_HOSTNAME" { it == "localhost" || it == "127.0.0.1" }
"$Tags.PEER_PORT" Integer
"$Tags.PEER_HOST_IPV4" { it == null || it == "127.0.0.1" } // Optional
"$Tags.HTTP_METHOD" method
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
} }
} }
} }

View File

@ -4,12 +4,13 @@ import datadog.trace.api.DDSpanTypes
import datadog.trace.instrumentation.api.Tags import datadog.trace.instrumentation.api.Tags
import groovy.transform.stc.ClosureParams import groovy.transform.stc.ClosureParams
import groovy.transform.stc.SimpleType import groovy.transform.stc.SimpleType
import javax.servlet.Servlet
import javax.servlet.http.HttpServletRequest
import org.eclipse.jetty.server.Server import org.eclipse.jetty.server.Server
import org.eclipse.jetty.server.handler.ErrorHandler import org.eclipse.jetty.server.handler.ErrorHandler
import org.eclipse.jetty.servlet.ServletContextHandler import org.eclipse.jetty.servlet.ServletContextHandler
import javax.servlet.Servlet
import javax.servlet.http.HttpServletRequest
import static datadog.trace.agent.test.asserts.TraceAssert.assertTrace import static datadog.trace.agent.test.asserts.TraceAssert.assertTrace
import static datadog.trace.agent.test.base.HttpServerTest.ServerEndpoint.AUTH_REQUIRED import static datadog.trace.agent.test.base.HttpServerTest.ServerEndpoint.AUTH_REQUIRED
import static datadog.trace.agent.test.base.HttpServerTest.ServerEndpoint.ERROR import static datadog.trace.agent.test.base.HttpServerTest.ServerEndpoint.ERROR
@ -243,28 +244,27 @@ abstract class JettyDispatchTest extends JettyServlet3Test {
errored endpoint.errored errored endpoint.errored
// we can't reliably assert parent or child relationship here since both are tested. // we can't reliably assert parent or child relationship here since both are tested.
tags { tags {
"$Tags.COMPONENT" serverDecorator.component()
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
"$Tags.PEER_HOSTNAME" { it == "localhost" || it == "127.0.0.1" }
"$Tags.PEER_HOST_IPV4" { it == null || it == "127.0.0.1" } // Optional
"$Tags.PEER_PORT" Integer
"$Tags.HTTP_URL" "${endpoint.resolve(address)}"
"$Tags.HTTP_METHOD" "GET"
"$Tags.HTTP_STATUS" endpoint.status
"servlet.context" "/$context" "servlet.context" "/$context"
"servlet.path" endpoint.status == 404 ? endpoint.path : "/dispatch$endpoint.path" "servlet.path" endpoint.status == 404 ? endpoint.path : "/dispatch$endpoint.path"
"servlet.dispatch" endpoint.path "servlet.dispatch" endpoint.path
"span.origin.type" { "span.origin.type" {
it == TestServlet3.DispatchImmediate.name || it == TestServlet3.DispatchAsync.name || it == ApplicationFilterChain.name it == TestServlet3.DispatchImmediate.name || it == TestServlet3.DispatchAsync.name || it == ApplicationFilterChain.name
} }
defaultTags(true)
"$Tags.COMPONENT" serverDecorator.component()
if (endpoint.errored) { if (endpoint.errored) {
"$Tags.ERROR" endpoint.errored "$Tags.ERROR" endpoint.errored
"error.msg" { it == null || it == EXCEPTION.body } "error.msg" { it == null || it == EXCEPTION.body }
"error.type" { it == null || it == Exception.name } "error.type" { it == null || it == Exception.name }
"error.stack" { it == null || it instanceof String } "error.stack" { it == null || it instanceof String }
} }
"$Tags.HTTP_STATUS" endpoint.status defaultTags(true)
"$Tags.HTTP_URL" "${endpoint.resolve(address)}"
"$Tags.PEER_HOSTNAME" { it == "localhost" || it == "127.0.0.1" }
"$Tags.PEER_PORT" Integer
"$Tags.PEER_HOST_IPV4" { it == null || it == "127.0.0.1" } // Optional
"$Tags.HTTP_METHOD" "GET"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
} }
} }
} }

View File

@ -295,28 +295,27 @@ abstract class TomcatDispatchTest extends TomcatServlet3Test {
errored endpoint.errored errored endpoint.errored
// we can't reliably assert parent or child relationship here since both are tested. // we can't reliably assert parent or child relationship here since both are tested.
tags { tags {
"$Tags.COMPONENT" serverDecorator.component()
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
"$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_HOST_IPV4" { it == null || it == "127.0.0.1" } // Optional
"$Tags.PEER_PORT" Integer
"$Tags.HTTP_URL" "${endpoint.resolve(address)}"
"$Tags.HTTP_METHOD" "GET"
"$Tags.HTTP_STATUS" endpoint.status
"servlet.context" "/$context" "servlet.context" "/$context"
"servlet.path" endpoint.status == 404 ? endpoint.path : "/dispatch$endpoint.path" "servlet.path" endpoint.status == 404 ? endpoint.path : "/dispatch$endpoint.path"
"servlet.dispatch" endpoint.path "servlet.dispatch" endpoint.path
"span.origin.type" { "span.origin.type" {
it == TestServlet3.DispatchImmediate.name || it == TestServlet3.DispatchAsync.name || it == ApplicationFilterChain.name it == TestServlet3.DispatchImmediate.name || it == TestServlet3.DispatchAsync.name || it == ApplicationFilterChain.name
} }
defaultTags(true)
"$Tags.COMPONENT" serverDecorator.component()
if (endpoint.errored) { if (endpoint.errored) {
"$Tags.ERROR" endpoint.errored "$Tags.ERROR" endpoint.errored
"error.msg" { it == null || it == EXCEPTION.body } "error.msg" { it == null || it == EXCEPTION.body }
"error.type" { it == null || it == Exception.name } "error.type" { it == null || it == Exception.name }
"error.stack" { it == null || it instanceof String } "error.stack" { it == null || it instanceof String }
} }
"$Tags.HTTP_STATUS" endpoint.status defaultTags(true)
"$Tags.HTTP_URL" "${endpoint.resolve(address)}"
"$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_PORT" Integer
"$Tags.PEER_HOST_IPV4" { it == null || it == "127.0.0.1" } // Optional
"$Tags.HTTP_METHOD" "GET"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
} }
} }
} }

View File

@ -2,6 +2,7 @@ import datadog.trace.agent.test.AgentTestRunner
import datadog.trace.agent.test.utils.OkHttpUtils import datadog.trace.agent.test.utils.OkHttpUtils
import datadog.trace.agent.test.utils.PortUtils import datadog.trace.agent.test.utils.PortUtils
import datadog.trace.api.DDSpanTypes import datadog.trace.api.DDSpanTypes
import datadog.trace.instrumentation.api.Tags
import okhttp3.OkHttpClient import okhttp3.OkHttpClient
import okhttp3.Request import okhttp3.Request
import spark.Spark import spark.Spark
@ -50,15 +51,15 @@ class SparkJavaBasedTest extends AgentTestRunner {
errored false errored false
parent() parent()
tags { tags {
"http.url" "http://localhost:$port/param/asdf1234" "$Tags.COMPONENT" "jetty-handler"
"http.method" "GET" "$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
"span.kind" "server" "$Tags.PEER_HOSTNAME" "127.0.0.1"
"component" "jetty-handler" "$Tags.PEER_HOST_IPV4" "127.0.0.1"
"$Tags.PEER_PORT" Integer
"$Tags.HTTP_URL" "http://localhost:$port/param/asdf1234"
"$Tags.HTTP_METHOD" "GET"
"$Tags.HTTP_STATUS" 200
"span.origin.type" spark.embeddedserver.jetty.JettyHandler.name "span.origin.type" spark.embeddedserver.jetty.JettyHandler.name
"http.status_code" 200
"peer.hostname" "127.0.0.1"
"peer.ipv4" "127.0.0.1"
"peer.port" Integer
defaultTags() defaultTags()
} }
} }

View File

@ -1,6 +1,6 @@
// This file includes software developed at SignalFx // This file includes software developed at SignalFx
import datadog.trace.agent.test.AgentTestRunner import datadog.trace.agent.test.AgentTestRunner
import io.opentracing.tag.Tags import datadog.trace.instrumentation.api.Tags
import org.springframework.context.annotation.AnnotationConfigApplicationContext import org.springframework.context.annotation.AnnotationConfigApplicationContext
import spring.jpa.JpaCustomer import spring.jpa.JpaCustomer
import spring.jpa.JpaCustomerRepository import spring.jpa.JpaCustomerRepository
@ -55,8 +55,8 @@ class SpringJpaTest extends AgentTestRunner {
resourceName "JpaRepository.findAll" resourceName "JpaRepository.findAll"
errored false errored false
tags { tags {
"$Tags.COMPONENT.key" "spring-data" "$Tags.COMPONENT" "spring-data"
"$Tags.SPAN_KIND.key" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
defaultTags() defaultTags()
} }
} }
@ -82,8 +82,8 @@ class SpringJpaTest extends AgentTestRunner {
resourceName "CrudRepository.save" resourceName "CrudRepository.save"
errored false errored false
tags { tags {
"$Tags.COMPONENT.key" "spring-data" "$Tags.COMPONENT" "spring-data"
"$Tags.SPAN_KIND.key" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
defaultTags() defaultTags()
} }
} }
@ -109,8 +109,8 @@ class SpringJpaTest extends AgentTestRunner {
resourceName "CrudRepository.save" resourceName "CrudRepository.save"
errored false errored false
tags { tags {
"$Tags.COMPONENT.key" "spring-data" "$Tags.COMPONENT" "spring-data"
"$Tags.SPAN_KIND.key" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
defaultTags() defaultTags()
} }
} }
@ -139,8 +139,8 @@ class SpringJpaTest extends AgentTestRunner {
resourceName "JpaCustomerRepository.findByLastName" resourceName "JpaCustomerRepository.findByLastName"
errored false errored false
tags { tags {
"$Tags.COMPONENT.key" "spring-data" "$Tags.COMPONENT" "spring-data"
"$Tags.SPAN_KIND.key" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
defaultTags() defaultTags()
} }
} }
@ -164,8 +164,8 @@ class SpringJpaTest extends AgentTestRunner {
resourceName "CrudRepository.delete" resourceName "CrudRepository.delete"
errored false errored false
tags { tags {
"$Tags.COMPONENT.key" "spring-data" "$Tags.COMPONENT" "spring-data"
"$Tags.SPAN_KIND.key" Tags.SPAN_KIND_CLIENT "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
defaultTags() defaultTags()
} }
} }

View File

@ -87,9 +87,9 @@ class SpringWebfluxTest extends AgentTestRunner {
"$Tags.PEER_HOSTNAME" "localhost" "$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_HOST_IPV4" "127.0.0.1" "$Tags.PEER_HOST_IPV4" "127.0.0.1"
"$Tags.PEER_PORT" Integer "$Tags.PEER_PORT" Integer
"$Tags.HTTP_URL" url
"$Tags.HTTP_METHOD" "GET" "$Tags.HTTP_METHOD" "GET"
"$Tags.HTTP_STATUS" 200 "$Tags.HTTP_STATUS" 200
"$Tags.HTTP_URL" url
defaultTags() defaultTags()
} }
} }
@ -161,9 +161,9 @@ class SpringWebfluxTest extends AgentTestRunner {
"$Tags.PEER_HOSTNAME" "localhost" "$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_HOST_IPV4" "127.0.0.1" "$Tags.PEER_HOST_IPV4" "127.0.0.1"
"$Tags.PEER_PORT" Integer "$Tags.PEER_PORT" Integer
"$Tags.HTTP_URL" url
"$Tags.HTTP_METHOD" "GET" "$Tags.HTTP_METHOD" "GET"
"$Tags.HTTP_STATUS" 200 "$Tags.HTTP_STATUS" 200
"$Tags.HTTP_URL" url
defaultTags() defaultTags()
} }
} }
@ -222,9 +222,9 @@ class SpringWebfluxTest extends AgentTestRunner {
"$Tags.PEER_HOSTNAME" "localhost" "$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_HOST_IPV4" "127.0.0.1" "$Tags.PEER_HOST_IPV4" "127.0.0.1"
"$Tags.PEER_PORT" Integer "$Tags.PEER_PORT" Integer
"$Tags.HTTP_URL" url
"$Tags.HTTP_METHOD" "GET" "$Tags.HTTP_METHOD" "GET"
"$Tags.HTTP_STATUS" 404 "$Tags.HTTP_STATUS" 404
"$Tags.HTTP_URL" url
defaultTags() defaultTags()
} }
} }
@ -287,9 +287,9 @@ class SpringWebfluxTest extends AgentTestRunner {
"$Tags.PEER_HOSTNAME" "localhost" "$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_HOST_IPV4" "127.0.0.1" "$Tags.PEER_HOST_IPV4" "127.0.0.1"
"$Tags.PEER_PORT" Integer "$Tags.PEER_PORT" Integer
"$Tags.HTTP_URL" url
"$Tags.HTTP_METHOD" "POST" "$Tags.HTTP_METHOD" "POST"
"$Tags.HTTP_STATUS" 202 "$Tags.HTTP_STATUS" 202
"$Tags.HTTP_URL" url
defaultTags() defaultTags()
} }
} }
@ -330,9 +330,9 @@ class SpringWebfluxTest extends AgentTestRunner {
"$Tags.PEER_HOSTNAME" "localhost" "$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_HOST_IPV4" "127.0.0.1" "$Tags.PEER_HOST_IPV4" "127.0.0.1"
"$Tags.PEER_PORT" Integer "$Tags.PEER_PORT" Integer
"$Tags.HTTP_URL" url
"$Tags.HTTP_METHOD" "GET" "$Tags.HTTP_METHOD" "GET"
"$Tags.HTTP_STATUS" 500 "$Tags.HTTP_STATUS" 500
"$Tags.HTTP_URL" url
"error" true "error" true
defaultTags() defaultTags()
} }
@ -404,9 +404,9 @@ class SpringWebfluxTest extends AgentTestRunner {
"$Tags.PEER_HOSTNAME" "localhost" "$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_HOST_IPV4" "127.0.0.1" "$Tags.PEER_HOST_IPV4" "127.0.0.1"
"$Tags.PEER_PORT" Integer "$Tags.PEER_PORT" Integer
"$Tags.HTTP_URL" url
"$Tags.HTTP_METHOD" "GET" "$Tags.HTTP_METHOD" "GET"
"$Tags.HTTP_STATUS" 307 "$Tags.HTTP_STATUS" 307
"$Tags.HTTP_URL" url
defaultTags() defaultTags()
} }
} }
@ -454,9 +454,9 @@ class SpringWebfluxTest extends AgentTestRunner {
"$Tags.PEER_HOSTNAME" "localhost" "$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_HOST_IPV4" "127.0.0.1" "$Tags.PEER_HOST_IPV4" "127.0.0.1"
"$Tags.PEER_PORT" Integer "$Tags.PEER_PORT" Integer
"$Tags.HTTP_URL" finalUrl
"$Tags.HTTP_METHOD" "GET" "$Tags.HTTP_METHOD" "GET"
"$Tags.HTTP_STATUS" 200 "$Tags.HTTP_STATUS" 200
"$Tags.HTTP_URL" finalUrl
defaultTags() defaultTags()
} }
} }
@ -517,9 +517,9 @@ class SpringWebfluxTest extends AgentTestRunner {
"$Tags.PEER_HOSTNAME" "localhost" "$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_HOST_IPV4" "127.0.0.1" "$Tags.PEER_HOST_IPV4" "127.0.0.1"
"$Tags.PEER_PORT" Integer "$Tags.PEER_PORT" Integer
"$Tags.HTTP_URL" url
"$Tags.HTTP_METHOD" "GET" "$Tags.HTTP_METHOD" "GET"
"$Tags.HTTP_STATUS" 200 "$Tags.HTTP_STATUS" 200
"$Tags.HTTP_URL" url
defaultTags() defaultTags()
} }
} }

View File

@ -57,24 +57,24 @@ class SpringWebfluxHttpClientTest extends HttpClientTest<SpringWebfluxHttpClient
spanType DDSpanTypes.HTTP_CLIENT spanType DDSpanTypes.HTTP_CLIENT
errored exception != null errored exception != null
tags { tags {
defaultTags()
if (exception) {
errorTags(exception.class, exception.message)
}
"$Tags.COMPONENT" NettyHttpClientDecorator.DECORATE.component() "$Tags.COMPONENT" NettyHttpClientDecorator.DECORATE.component()
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_PORT" uri.port
"$Tags.PEER_HOST_IPV4" { it == null || it == "127.0.0.1" } // Optional
"$Tags.HTTP_URL" "${uri.resolve(uri.path)}"
"$Tags.HTTP_METHOD" method
if (status) { if (status) {
"$Tags.HTTP_STATUS" status "$Tags.HTTP_STATUS" status
} }
"$Tags.HTTP_URL" "${uri.resolve(uri.path)}"
if (tagQueryString) { if (tagQueryString) {
"$DDTags.HTTP_QUERY" uri.query "$DDTags.HTTP_QUERY" uri.query
"$DDTags.HTTP_FRAGMENT" { it == null || it == uri.fragment } // Optional "$DDTags.HTTP_FRAGMENT" { it == null || it == uri.fragment } // Optional
} }
"$Tags.PEER_HOSTNAME" "localhost" if (exception) {
"$Tags.PEER_PORT" uri.port errorTags(exception.class, exception.message)
"$Tags.PEER_HOST_IPV4" { it == null || it == "127.0.0.1" } // Optional }
"$Tags.HTTP_METHOD" method defaultTags()
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
} }
} }
} }

View File

@ -77,9 +77,9 @@ class SpringBootBasedTest extends HttpServerTest<ConfigurableApplicationContext,
spanType "web" spanType "web"
errored false errored false
tags { tags {
"component" "spring-webmvc" "$Tags.COMPONENT" "spring-webmvc"
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
"view.type" RedirectView.name "view.type" RedirectView.name
"span.kind" "server"
defaultTags() defaultTags()
} }
} }
@ -102,10 +102,10 @@ class SpringBootBasedTest extends HttpServerTest<ConfigurableApplicationContext,
tags { tags {
"$Tags.COMPONENT" SpringWebHttpServerDecorator.DECORATE.component() "$Tags.COMPONENT" SpringWebHttpServerDecorator.DECORATE.component()
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER "$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
defaultTags()
if (endpoint == EXCEPTION) { if (endpoint == EXCEPTION) {
errorTags(Exception, EXCEPTION.body) errorTags(Exception, EXCEPTION.body)
} }
defaultTags()
} }
} }
} }
@ -125,24 +125,23 @@ class SpringBootBasedTest extends HttpServerTest<ConfigurableApplicationContext,
parent() parent()
} }
tags { tags {
"$Tags.COMPONENT" serverDecorator.component()
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
"$Tags.PEER_HOSTNAME" { it == "localhost" || it == "127.0.0.1" }
"$Tags.PEER_HOST_IPV4" { it == null || it == "127.0.0.1" } // Optional
"$Tags.PEER_PORT" Integer
"$Tags.HTTP_URL" "${endpoint.resolve(address)}"
"$Tags.HTTP_METHOD" method
"$Tags.HTTP_STATUS" endpoint.status
"span.origin.type" ApplicationFilterChain.name "span.origin.type" ApplicationFilterChain.name
"servlet.path" endpoint.path "servlet.path" endpoint.path
defaultTags(true)
"$Tags.COMPONENT" serverDecorator.component()
if (endpoint.errored) { if (endpoint.errored) {
"$Tags.ERROR" endpoint.errored "$Tags.ERROR" endpoint.errored
"error.msg" { it == null || it == EXCEPTION.body } "error.msg" { it == null || it == EXCEPTION.body }
"error.type" { it == null || it == Exception.name } "error.type" { it == null || it == Exception.name }
"error.stack" { it == null || it instanceof String } "error.stack" { it == null || it instanceof String }
} }
"$Tags.HTTP_STATUS" endpoint.status defaultTags(true)
"$Tags.HTTP_URL" "${endpoint.resolve(address)}"
"$Tags.PEER_HOSTNAME" { it == "localhost" || it == "127.0.0.1" }
"$Tags.PEER_PORT" Integer
"$Tags.PEER_HOST_IPV4" { it == null || it == "127.0.0.1" } // Optional
"$Tags.HTTP_METHOD" method
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
} }
} }
} }

View File

@ -637,15 +637,22 @@ class SpymemcachedTest extends AgentTestRunner {
errored(error != null && error != "canceled") errored(error != null && error != "canceled")
tags { tags {
defaultTags() "$Tags.COMPONENT" COMPONENT_NAME
"${Tags.COMPONENT}" COMPONENT_NAME "$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"${Tags.SPAN_KIND}" Tags.SPAN_KIND_CLIENT "$Tags.DB_TYPE" CompletionListener.DB_TYPE
"${Tags.DB_TYPE}" CompletionListener.DB_TYPE
if (error == "canceled") { if (error == "canceled") {
"${CompletionListener.DB_COMMAND_CANCELLED}" true "${CompletionListener.DB_COMMAND_CANCELLED}" true
} }
if (result == "hit") {
"${CompletionListener.MEMCACHED_RESULT}" CompletionListener.HIT
}
if (result == "miss") {
"${CompletionListener.MEMCACHED_RESULT}" CompletionListener.MISS
}
if (error == "timeout") { if (error == "timeout") {
errorTags( errorTags(
CheckedOperationTimeoutException, CheckedOperationTimeoutException,
@ -658,13 +665,7 @@ class SpymemcachedTest extends AgentTestRunner {
"Key is too long (maxlen = 250)") "Key is too long (maxlen = 250)")
} }
if (result == "hit") { defaultTags()
"${CompletionListener.MEMCACHED_RESULT}" CompletionListener.HIT
}
if (result == "miss") {
"${CompletionListener.MEMCACHED_RESULT}" CompletionListener.MISS
}
} }
} }
} }

View File

@ -324,24 +324,24 @@ abstract class HttpClientTest<DECORATOR extends HttpClientDecorator> extends Age
spanType DDSpanTypes.HTTP_CLIENT spanType DDSpanTypes.HTTP_CLIENT
errored exception != null errored exception != null
tags { tags {
defaultTags()
if (exception) {
errorTags(exception.class, exception.message)
}
"$Tags.COMPONENT" clientDecorator.component() "$Tags.COMPONENT" clientDecorator.component()
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
"$Tags.PEER_HOSTNAME" "localhost"
"$Tags.PEER_HOST_IPV4" { it == null || it == "127.0.0.1" } // Optional
"$Tags.PEER_PORT" uri.port
"$Tags.HTTP_URL" "${uri.resolve(uri.path)}"
"$Tags.HTTP_METHOD" method
if (status) { if (status) {
"$Tags.HTTP_STATUS" status "$Tags.HTTP_STATUS" status
} }
"$Tags.HTTP_URL" "${uri.resolve(uri.path)}"
if (tagQueryString) { if (tagQueryString) {
"$DDTags.HTTP_QUERY" uri.query "$DDTags.HTTP_QUERY" uri.query
"$DDTags.HTTP_FRAGMENT" { it == null || it == uri.fragment } // Optional "$DDTags.HTTP_FRAGMENT" { it == null || it == uri.fragment } // Optional
} }
"$Tags.PEER_HOSTNAME" "localhost" if (exception) {
"$Tags.PEER_PORT" uri.port errorTags(exception.class, exception.message)
"$Tags.PEER_HOST_IPV4" { it == null || it == "127.0.0.1" } // Optional }
"$Tags.HTTP_METHOD" method defaultTags()
"$Tags.SPAN_KIND" Tags.SPAN_KIND_CLIENT
} }
} }
} }

View File

@ -412,10 +412,10 @@ abstract class HttpServerTest<SERVER, DECORATOR extends HttpServerDecorator> ext
errored errorMessage != null errored errorMessage != null
childOf(parent as DDSpan) childOf(parent as DDSpan)
tags { tags {
defaultTags()
if (errorMessage) { if (errorMessage) {
errorTags(Exception, errorMessage) errorTags(Exception, errorMessage)
} }
defaultTags()
} }
} }
} }
@ -439,22 +439,22 @@ abstract class HttpServerTest<SERVER, DECORATOR extends HttpServerDecorator> ext
parent() parent()
} }
tags { tags {
defaultTags(true)
"$Tags.COMPONENT" serverDecorator.component() "$Tags.COMPONENT" serverDecorator.component()
if (endpoint.errored) { "$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
"$Tags.ERROR" endpoint.errored "$Tags.PEER_HOSTNAME" { it == "localhost" || it == "127.0.0.1" }
} "$Tags.PEER_PORT" Integer
"$Tags.HTTP_STATUS" endpoint.status "$Tags.PEER_HOST_IPV4" { it == null || it == "127.0.0.1" } // Optional
"$Tags.HTTP_URL" "${endpoint.resolve(address)}" "$Tags.HTTP_URL" "${endpoint.resolve(address)}"
"$Tags.HTTP_METHOD" method
"$Tags.HTTP_STATUS" endpoint.status
// if (tagQueryString) { // if (tagQueryString) {
// "$DDTags.HTTP_QUERY" uri.query // "$DDTags.HTTP_QUERY" uri.query
// "$DDTags.HTTP_FRAGMENT" { it == null || it == uri.fragment } // Optional // "$DDTags.HTTP_FRAGMENT" { it == null || it == uri.fragment } // Optional
// } // }
"$Tags.PEER_HOSTNAME" { it == "localhost" || it == "127.0.0.1" } if (endpoint.errored) {
"$Tags.PEER_PORT" Integer "$Tags.ERROR" endpoint.errored
"$Tags.PEER_HOST_IPV4" { it == null || it == "127.0.0.1" } // Optional }
"$Tags.HTTP_METHOD" method defaultTags(true)
"$Tags.SPAN_KIND" Tags.SPAN_KIND_SERVER
} }
} }
} }

View File

@ -63,10 +63,10 @@ class TraceUtils {
resourceName resource resourceName resource
errored exception != null errored exception != null
tags { tags {
defaultTags()
if (exception) { if (exception) {
errorTags(exception.class, exception.message) errorTags(exception.class, exception.message)
} }
defaultTags()
} }
} }
} }