SpanAssert method names should reflect underlying Span method names (#1307)

This commit is contained in:
Ioannis Mavroukakis 2020-10-05 08:04:08 +01:00 committed by GitHub
parent dadaac9a8c
commit f2de47a150
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
125 changed files with 1422 additions and 1422 deletions

View File

@ -68,7 +68,7 @@ class ReactorCoreTest extends InstrumentationTestRunner {
}
where:
name | expected | workSpans | publisherSupplier
paramName | expected | workSpans | publisherSupplier
"basic mono" | 2 | 1 | { -> Mono.just(1).map(addOne) }
"two operations mono" | 4 | 2 | { -> Mono.just(2).map(addOne).map(addOne) }
"delayed mono" | 4 | 1 | { ->
@ -104,10 +104,10 @@ class ReactorCoreTest extends InstrumentationTestRunner {
assertTraces(1) {
trace(0, 2) {
span(0) {
operationName "trace-parent"
name "trace-parent"
errored true
errorEvent(RuntimeException, EXCEPTION_MESSAGE)
parent()
hasNoParent()
}
// It's important that we don't attach errors at the Reactor level so that we don't
@ -119,9 +119,9 @@ class ReactorCoreTest extends InstrumentationTestRunner {
}
where:
name | publisherSupplier
"mono" | { -> Mono.error(new RuntimeException(EXCEPTION_MESSAGE)) }
"flux" | { -> Flux.error(new RuntimeException(EXCEPTION_MESSAGE)) }
paramName | publisherSupplier
"mono" | { -> Mono.error(new RuntimeException(EXCEPTION_MESSAGE)) }
"flux" | { -> Flux.error(new RuntimeException(EXCEPTION_MESSAGE)) }
}
def "Publisher step '#name' test"() {
@ -135,10 +135,10 @@ class ReactorCoreTest extends InstrumentationTestRunner {
assertTraces(1) {
trace(0, workSpans + 2) {
span(0) {
operationName "trace-parent"
name "trace-parent"
errored true
errorEvent(RuntimeException, EXCEPTION_MESSAGE)
parent()
hasNoParent()
}
// It's important that we don't attach errors at the Reactor level so that we don't
@ -149,7 +149,7 @@ class ReactorCoreTest extends InstrumentationTestRunner {
for (int i = 0; i < workSpans; i++) {
span(i + 2) {
operationName "add one"
name "add one"
childOf span(1)
attributes {
}
@ -159,7 +159,7 @@ class ReactorCoreTest extends InstrumentationTestRunner {
}
where:
name | workSpans | publisherSupplier
paramName | workSpans | publisherSupplier
"basic mono failure" | 1 | { -> Mono.just(1).map(addOne).map({ throwException() }) }
"basic flux failure" | 1 | { ->
Flux.fromIterable([5, 6]).map(addOne).map({ throwException() })
@ -174,8 +174,8 @@ class ReactorCoreTest extends InstrumentationTestRunner {
assertTraces(1) {
trace(0, 2) {
span(0) {
operationName "trace-parent"
parent()
name "trace-parent"
hasNoParent()
attributes {
}
}
@ -185,7 +185,7 @@ class ReactorCoreTest extends InstrumentationTestRunner {
}
where:
name | publisherSupplier
paramName | publisherSupplier
"basic mono" | { -> Mono.just(1) }
"basic flux" | { -> Flux.fromIterable([5, 6]) }
}
@ -198,8 +198,8 @@ class ReactorCoreTest extends InstrumentationTestRunner {
assertTraces(1) {
trace(0, workSpans + 2) {
span(0) {
operationName "trace-parent"
parent()
name "trace-parent"
hasNoParent()
attributes {
}
}
@ -208,7 +208,7 @@ class ReactorCoreTest extends InstrumentationTestRunner {
for (int i = 0; i < workSpans; i++) {
span(i + 2) {
operationName "add one"
name "add one"
childOf span(1)
attributes {
}
@ -218,7 +218,7 @@ class ReactorCoreTest extends InstrumentationTestRunner {
}
where:
name | workSpans | publisherSupplier
paramName | workSpans | publisherSupplier
"basic mono" | 3 | { ->
Mono.just(1).map(addOne).map(addOne).then(Mono.just(1).map(addOne))
}
@ -265,7 +265,7 @@ class ReactorCoreTest extends InstrumentationTestRunner {
}
where:
name | workItems | publisherSupplier
paramName | workItems | publisherSupplier
"basic mono" | 1 | { -> Mono.just(1).map(addOne) }
"basic flux" | 2 | { -> Flux.fromIterable([1, 2]).map(addOne) }
}

View File

@ -16,12 +16,12 @@ class AkkaActorTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 2) {
span(0) {
operationName "parent"
name "parent"
attributes {
}
}
span(1) {
operationName "$expectedGreeting, Akka"
name "$expectedGreeting, Akka"
childOf span(0)
attributes {
}

View File

@ -63,9 +63,9 @@ class AkkaHttpClientInstrumentationTest extends HttpClientTest {
assertTraces(1) {
trace(0, 1) {
span(0) {
parent()
operationName HttpClientTracer.DEFAULT_SPAN_NAME
spanKind CLIENT
hasNoParent()
name HttpClientTracer.DEFAULT_SPAN_NAME
kind CLIENT
errored true
errorEvent(NullPointerException)
}

View File

@ -53,10 +53,10 @@ abstract class AbstractArmeriaTest extends InstrumentationSpecification {
assertTraces(1) {
trace(0, 2) {
span(0) {
operationName("HTTP ${method}")
spanKind CLIENT
name("HTTP ${method}")
kind CLIENT
errored code != 200
parent()
hasNoParent()
attributes {
"${SemanticAttributes.NET_TRANSPORT.key()}" "IP.TCP"
"${SemanticAttributes.NET_PEER_IP.key()}" "127.0.0.1"
@ -70,8 +70,8 @@ abstract class AbstractArmeriaTest extends InstrumentationSpecification {
}
}
span(1) {
operationName(spanName)
spanKind SERVER
name(spanName)
kind SERVER
childOf span(0)
errored code != 200
if (path == "/exception") {

View File

@ -63,16 +63,16 @@ class AwsLambdaSqsMessageHandlerTest extends InstrumentationSpecification implem
assertTraces(1) {
trace(0, 4) {
span(0) {
operationName("my_function")
spanKind SERVER
name("my_function")
kind SERVER
attributes {
"${SemanticAttributes.FAAS_EXECUTION.key}" "1-22-333"
}
}
span(1) {
operationName("queue1 process")
spanKind CONSUMER
parentId(span(0).spanId)
name("queue1 process")
kind CONSUMER
parentSpanId(span(0).spanId)
attributes {
"${SemanticAttributes.MESSAGING_SYSTEM.key}" "AmazonSQS"
"${SemanticAttributes.MESSAGING_OPERATION.key}" "process"
@ -81,9 +81,9 @@ class AwsLambdaSqsMessageHandlerTest extends InstrumentationSpecification implem
hasLink("5759e988bd862e3fe1be46a994272793", "53995c3f42cd8ad9")
}
span(2) {
operationName("queue1 process")
spanKind CONSUMER
parentId(span(1).spanId)
name("queue1 process")
kind CONSUMER
parentSpanId(span(1).spanId)
attributes {
"${SemanticAttributes.MESSAGING_SYSTEM.key}" "AmazonSQS"
"${SemanticAttributes.MESSAGING_OPERATION.key}" "process"
@ -93,9 +93,9 @@ class AwsLambdaSqsMessageHandlerTest extends InstrumentationSpecification implem
hasLink("5759e988bd862e3fe1be46a994272793", "53995c3f42cd8ad8")
}
span(3) {
operationName("queue1 process")
spanKind CONSUMER
parentId(span(1).spanId)
name("queue1 process")
kind CONSUMER
parentSpanId(span(1).spanId)
attributes {
"${SemanticAttributes.MESSAGING_SYSTEM.key}" "AmazonSQS"
"${SemanticAttributes.MESSAGING_OPERATION.key}" "process"

View File

@ -36,8 +36,8 @@ abstract class AbstractAwsLambdaRequestHandlerTest extends InstrumentationSpecif
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName("my_function")
spanKind SERVER
name("my_function")
kind SERVER
attributes {
"${SemanticAttributes.FAAS_EXECUTION.key}" "1-22-333"
}
@ -64,8 +64,8 @@ abstract class AbstractAwsLambdaRequestHandlerTest extends InstrumentationSpecif
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName("my_function")
spanKind SERVER
name("my_function")
kind SERVER
errored true
errorEvent(IllegalArgumentException, "bad argument")
attributes {

View File

@ -58,16 +58,16 @@ abstract class AbstractAwsLambdaSqsHandlerTest extends InstrumentationSpecificat
assertTraces(1) {
trace(0, 2) {
span(0) {
operationName("my_function")
spanKind SERVER
name("my_function")
kind SERVER
attributes {
"${SemanticAttributes.FAAS_EXECUTION.key}" "1-22-333"
}
}
span(1) {
operationName("queue1 process")
spanKind CONSUMER
parentId(span(0).spanId)
name("queue1 process")
kind CONSUMER
parentSpanId(span(0).spanId)
attributes {
"${SemanticAttributes.MESSAGING_SYSTEM.key}" "AmazonSQS"
"${SemanticAttributes.MESSAGING_OPERATION.key}" "process"
@ -103,16 +103,16 @@ abstract class AbstractAwsLambdaSqsHandlerTest extends InstrumentationSpecificat
assertTraces(1) {
trace(0, 2) {
span(0) {
operationName("my_function")
spanKind SERVER
name("my_function")
kind SERVER
attributes {
"${SemanticAttributes.FAAS_EXECUTION.key}" "1-22-333"
}
}
span(1) {
operationName("multiple_sources process")
spanKind CONSUMER
parentId(span(0).spanId)
name("multiple_sources process")
kind CONSUMER
parentSpanId(span(0).spanId)
attributes {
"${SemanticAttributes.MESSAGING_SYSTEM.key}" "AmazonSQS"
"${SemanticAttributes.MESSAGING_OPERATION.key}" "process"

View File

@ -136,10 +136,10 @@ class AWS1ClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "$service.$operation"
spanKind CLIENT
name "$service.$operation"
kind CLIENT
errored false
parent()
hasNoParent()
attributes {
"${SemanticAttributes.NET_TRANSPORT.key()}" "IP.TCP"
"${SemanticAttributes.HTTP_URL.key()}" "$server.address"
@ -212,11 +212,11 @@ class AWS1ClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "$service.$operation"
spanKind CLIENT
name "$service.$operation"
kind CLIENT
errored true
errorEvent SdkClientException, ~/Unable to execute HTTP request/
parent()
hasNoParent()
attributes {
"${SemanticAttributes.NET_TRANSPORT.key()}" "IP.TCP"
"${SemanticAttributes.HTTP_URL.key()}" "http://localhost:${UNUSABLE_PORT}"
@ -260,11 +260,11 @@ class AWS1ClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "S3.HeadBucket"
spanKind CLIENT
name "S3.HeadBucket"
kind CLIENT
errored true
errorEvent RuntimeException, "bad handler"
parent()
hasNoParent()
attributes {
"${SemanticAttributes.NET_TRANSPORT.key()}" "IP.TCP"
"${SemanticAttributes.HTTP_URL.key()}" "https://s3.amazonaws.com"
@ -305,15 +305,15 @@ class AWS1ClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "S3.GetObject"
spanKind CLIENT
name "S3.GetObject"
kind CLIENT
errored true
try {
errorEvent AmazonClientException, ~/Unable to execute HTTP request/
} catch (AssertionError e) {
errorEvent SdkClientException, "Unable to execute HTTP request: Request did not complete before the request timeout configuration."
}
parent()
hasNoParent()
attributes {
"${SemanticAttributes.NET_TRANSPORT.key()}" "IP.TCP"
"${SemanticAttributes.HTTP_URL.key()}" "$server.address"

View File

@ -99,10 +99,10 @@ class AWS0ClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "$service.$operation"
spanKind CLIENT
name "$service.$operation"
kind CLIENT
errored false
parent()
hasNoParent()
attributes {
"${SemanticAttributes.NET_TRANSPORT.key()}" "IP.TCP"
"${SemanticAttributes.HTTP_URL.key()}" "$server.address"
@ -157,11 +157,11 @@ class AWS0ClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "$service.$operation"
spanKind CLIENT
name "$service.$operation"
kind CLIENT
errored true
errorEvent AmazonClientException, ~/Unable to execute HTTP request/
parent()
hasNoParent()
attributes {
"${SemanticAttributes.NET_TRANSPORT.key()}" "IP.TCP"
"${SemanticAttributes.HTTP_URL.key()}" "http://localhost:${UNUSABLE_PORT}"
@ -205,11 +205,11 @@ class AWS0ClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "S3.GetObject"
spanKind CLIENT
name "S3.GetObject"
kind CLIENT
errored true
errorEvent RuntimeException, "bad handler"
parent()
hasNoParent()
attributes {
"${SemanticAttributes.NET_TRANSPORT.key()}" "IP.TCP"
"${SemanticAttributes.HTTP_URL.key()}" "https://s3.amazonaws.com"
@ -251,11 +251,11 @@ class AWS0ClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "S3.GetObject"
spanKind CLIENT
name "S3.GetObject"
kind CLIENT
errored true
errorEvent AmazonClientException, ~/Unable to execute HTTP request/
parent()
hasNoParent()
attributes {
"${SemanticAttributes.NET_TRANSPORT.key()}" "IP.TCP"
"${SemanticAttributes.HTTP_URL.key()}" "$server.address"

View File

@ -123,10 +123,10 @@ abstract class AbstractAws2ClientTest extends InstrumentationSpecification {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "$service.$operation"
spanKind CLIENT
name "$service.$operation"
kind CLIENT
errored false
parent()
hasNoParent()
attributes {
"${SemanticAttributes.NET_TRANSPORT.key()}" "IP.TCP"
"${SemanticAttributes.NET_PEER_NAME.key()}" "localhost"
@ -196,10 +196,10 @@ abstract class AbstractAws2ClientTest extends InstrumentationSpecification {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "$service.$operation"
spanKind CLIENT
name "$service.$operation"
kind CLIENT
errored false
parent()
hasNoParent()
attributes {
"${SemanticAttributes.NET_TRANSPORT.key()}" "IP.TCP"
"${SemanticAttributes.NET_PEER_NAME.key()}" "localhost"
@ -284,10 +284,10 @@ abstract class AbstractAws2ClientTest extends InstrumentationSpecification {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "$service.$operation"
spanKind CLIENT
name "$service.$operation"
kind CLIENT
errored false
parent()
hasNoParent()
attributes {
"${SemanticAttributes.NET_TRANSPORT.key()}" "IP.TCP"
"${SemanticAttributes.NET_PEER_NAME.key()}" "localhost"
@ -383,11 +383,11 @@ abstract class AbstractAws2ClientTest extends InstrumentationSpecification {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "S3.GetObject"
spanKind CLIENT
name "S3.GetObject"
kind CLIENT
errored true
errorEvent SdkClientException, "Unable to execute HTTP request: Read timed out"
parent()
hasNoParent()
attributes {
"${SemanticAttributes.NET_TRANSPORT.key()}" "IP.TCP"
"${SemanticAttributes.NET_PEER_NAME.key()}" "localhost"

View File

@ -119,10 +119,10 @@ class CassandraClientTest extends AgentTestRunner {
def cassandraSpan(TraceAssert trace, int index, String statement, String keyspace, Object parentSpan = null, Throwable exception = null) {
trace.span(index) {
operationName statement
spanKind CLIENT
name statement
kind CLIENT
if (parentSpan == null) {
parent()
hasNoParent()
} else {
childOf((SpanData) parentSpan)
}

View File

@ -89,10 +89,10 @@ class CassandraClientTest extends AgentTestRunner {
def cassandraSpan(TraceAssert trace, int index, String statement, String keyspace, Object parentSpan = null, Throwable exception = null) {
trace.span(index) {
operationName statement
spanKind CLIENT
name statement
kind CLIENT
if (parentSpan == null) {
parent()
hasNoParent()
} else {
childOf((SpanData) parentSpan)
}

View File

@ -12,13 +12,13 @@ import io.opentelemetry.trace.attributes.SemanticAttributes
class CouchbaseSpanUtil {
// Reusable span assertion method. Cannot directly override AbstractCouchbaseTest.assertCouchbaseSpan because
// Of the class hierarchy of these tests
static void assertCouchbaseCall(TraceAssert trace, int index, Object name, String bucketName = null, Object parentSpan = null) {
static void assertCouchbaseCall(TraceAssert trace, int index, Object spanName, String bucketName = null, Object parentSpan = null) {
trace.span(index) {
operationName name
spanKind CLIENT
name spanName
kind CLIENT
errored false
if (parentSpan == null) {
parent()
hasNoParent()
} else {
childOf((SpanData) parentSpan)
}
@ -41,7 +41,7 @@ class CouchbaseSpanUtil {
// that do have operation ids
"couchbase.operation_id" { it == null || String }
"${SemanticAttributes.DB_STATEMENT.key()}" name
"${SemanticAttributes.DB_STATEMENT.key()}" spanName
}
}
}

View File

@ -103,13 +103,13 @@ abstract class AbstractCouchbaseTest extends AgentTestRunner {
.socketConnectTimeout(timeout.intValue())
}
void assertCouchbaseCall(TraceAssert trace, int index, Object name, String bucketName = null, Object parentSpan = null) {
void assertCouchbaseCall(TraceAssert trace, int index, Object spanName, String bucketName = null, Object parentSpan = null) {
trace.span(index) {
operationName name
spanKind CLIENT
name spanName
kind CLIENT
errored false
if (parentSpan == null) {
parent()
hasNoParent()
} else {
childOf((SpanData) parentSpan)
}
@ -118,7 +118,7 @@ abstract class AbstractCouchbaseTest extends AgentTestRunner {
if (bucketName != null) {
"${SemanticAttributes.DB_NAME.key()}" bucketName
}
"${SemanticAttributes.DB_STATEMENT.key()}" name
"${SemanticAttributes.DB_STATEMENT.key()}" spanName
}
}
}

View File

@ -77,8 +77,8 @@ class DropwizardTest extends HttpServerTest<DropwizardTestSupport> {
@Override
void handlerSpan(TraceAssert trace, int index, Object parent, String method = "GET", ServerEndpoint endpoint = SUCCESS) {
trace.span(index) {
operationName "${this.testResource().simpleName}.${endpoint.name().toLowerCase()}"
spanKind INTERNAL
name "${this.testResource().simpleName}.${endpoint.name().toLowerCase()}"
kind INTERNAL
errored endpoint == EXCEPTION
if (endpoint == EXCEPTION) {
errorEvent(Exception, EXCEPTION.body)
@ -90,14 +90,14 @@ class DropwizardTest extends HttpServerTest<DropwizardTestSupport> {
@Override
void serverSpan(TraceAssert trace, int index, String traceID = null, String parentID = null, String method = "GET", Long responseContentLength = null, ServerEndpoint endpoint = SUCCESS) {
trace.span(index) {
operationName "$method ${endpoint == PATH_PARAM ? "/path/{id}/param" : endpoint.resolvePath(address).path}"
spanKind SERVER
name "$method ${endpoint == PATH_PARAM ? "/path/{id}/param" : endpoint.resolvePath(address).path}"
kind SERVER
errored endpoint.errored
if (parentID != null) {
traceId traceID
parentId parentID
parentSpanId parentID
} else {
parent()
hasNoParent()
}
attributes {
// dropwizard reports peer ip as the client ip

View File

@ -29,7 +29,7 @@ class ViewRenderTest extends AgentTestRunner {
trace(0, 2) {
basicSpan(it, 0, "parent")
span(1) {
operationName "Render $template"
name "Render $template"
childOf span(0)
}
}

View File

@ -83,9 +83,9 @@ class Elasticsearch6RestClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 2) {
span(0) {
operationName "GET _cluster/health"
spanKind CLIENT
parent()
name "GET _cluster/health"
kind CLIENT
hasNoParent()
attributes {
"${SemanticAttributes.NET_PEER_NAME.key()}" httpTransportAddress.address
"${SemanticAttributes.NET_PEER_PORT.key()}" httpTransportAddress.port
@ -96,8 +96,8 @@ class Elasticsearch6RestClientTest extends AgentTestRunner {
}
}
span(1) {
operationName expectedOperationName("GET")
spanKind CLIENT
name expectedOperationName("GET")
kind CLIENT
childOf span(0)
attributes {
"${SemanticAttributes.NET_TRANSPORT.key()}" "IP.TCP"

View File

@ -87,9 +87,9 @@ class Elasticsearch5RestClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 2) {
span(0) {
operationName "GET _cluster/health"
spanKind CLIENT
parent()
name "GET _cluster/health"
kind CLIENT
hasNoParent()
attributes {
"${SemanticAttributes.NET_PEER_NAME.key()}" httpTransportAddress.address
"${SemanticAttributes.NET_PEER_PORT.key()}" httpTransportAddress.port
@ -100,8 +100,8 @@ class Elasticsearch5RestClientTest extends AgentTestRunner {
}
}
span(1) {
operationName expectedOperationName("GET")
spanKind CLIENT
name expectedOperationName("GET")
kind CLIENT
childOf span(0)
attributes {
"${SemanticAttributes.NET_TRANSPORT.key()}" "IP.TCP"

View File

@ -88,9 +88,9 @@ class Elasticsearch6RestClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 2) {
span(0) {
operationName "GET _cluster/health"
spanKind CLIENT
parent()
name "GET _cluster/health"
kind CLIENT
hasNoParent()
attributes {
"${SemanticAttributes.NET_PEER_NAME.key()}" httpTransportAddress.address
"${SemanticAttributes.NET_PEER_PORT.key()}" httpTransportAddress.port
@ -101,8 +101,8 @@ class Elasticsearch6RestClientTest extends AgentTestRunner {
}
}
span(1) {
operationName expectedOperationName("GET")
spanKind CLIENT
name expectedOperationName("GET")
kind CLIENT
childOf span(0)
attributes {
"${SemanticAttributes.NET_TRANSPORT.key()}" "IP.TCP"

View File

@ -83,9 +83,9 @@ class Elasticsearch6RestClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 2) {
span(0) {
operationName "GET _cluster/health"
spanKind CLIENT
parent()
name "GET _cluster/health"
kind CLIENT
hasNoParent()
attributes {
"${SemanticAttributes.NET_PEER_NAME.key()}" httpTransportAddress.address
"${SemanticAttributes.NET_PEER_PORT.key()}" httpTransportAddress.port
@ -96,8 +96,8 @@ class Elasticsearch6RestClientTest extends AgentTestRunner {
}
}
span(1) {
operationName expectedOperationName("GET")
spanKind CLIENT
name expectedOperationName("GET")
kind CLIENT
childOf span(0)
attributes {
"${SemanticAttributes.NET_TRANSPORT.key()}" "IP.TCP"

View File

@ -75,8 +75,8 @@ class Elasticsearch5NodeClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "ClusterHealthAction"
spanKind CLIENT
name "ClusterHealthAction"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "elasticsearch"
"${SemanticAttributes.DB_OPERATION.key()}" "ClusterHealthAction"
@ -99,10 +99,10 @@ class Elasticsearch5NodeClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "GetAction"
name "GetAction"
errored true
errorEvent IndexNotFoundException, "no such index"
spanKind CLIENT
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "elasticsearch"
"${SemanticAttributes.DB_OPERATION.key()}" "GetAction"
@ -162,8 +162,8 @@ class Elasticsearch5NodeClientTest extends AgentTestRunner {
assertTraces(5) {
trace(0, 1) {
span(0) {
operationName "CreateIndexAction"
spanKind CLIENT
name "CreateIndexAction"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "elasticsearch"
"${SemanticAttributes.DB_OPERATION.key()}" "CreateIndexAction"
@ -175,8 +175,8 @@ class Elasticsearch5NodeClientTest extends AgentTestRunner {
}
trace(1, 1) {
span(0) {
operationName "ClusterHealthAction"
spanKind CLIENT
name "ClusterHealthAction"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "elasticsearch"
"${SemanticAttributes.DB_OPERATION.key()}" "ClusterHealthAction"
@ -187,8 +187,8 @@ class Elasticsearch5NodeClientTest extends AgentTestRunner {
}
trace(2, 1) {
span(0) {
operationName "GetAction"
spanKind CLIENT
name "GetAction"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "elasticsearch"
"${SemanticAttributes.DB_OPERATION.key()}" "GetAction"
@ -203,8 +203,8 @@ class Elasticsearch5NodeClientTest extends AgentTestRunner {
}
trace(3, 2) {
span(0) {
operationName "IndexAction"
spanKind CLIENT
name "IndexAction"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "elasticsearch"
"${SemanticAttributes.DB_OPERATION.key()}" "IndexAction"
@ -219,8 +219,8 @@ class Elasticsearch5NodeClientTest extends AgentTestRunner {
}
}
span(1) {
operationName "PutMappingAction"
spanKind CLIENT
name "PutMappingAction"
kind CLIENT
childOf span(0)
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "elasticsearch"
@ -232,8 +232,8 @@ class Elasticsearch5NodeClientTest extends AgentTestRunner {
}
trace(4, 1) {
span(0) {
operationName "GetAction"
spanKind CLIENT
name "GetAction"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "elasticsearch"
"${SemanticAttributes.DB_OPERATION.key()}" "GetAction"

View File

@ -91,8 +91,8 @@ class Elasticsearch5TransportClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "ClusterHealthAction"
spanKind CLIENT
name "ClusterHealthAction"
kind CLIENT
attributes {
"${SemanticAttributes.NET_PEER_NAME.key()}" tcpPublishAddress.host == tcpPublishAddress.address ? null : tcpPublishAddress.host
"${SemanticAttributes.NET_PEER_IP.key()}" tcpPublishAddress.address
@ -118,8 +118,8 @@ class Elasticsearch5TransportClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "GetAction"
spanKind CLIENT
name "GetAction"
kind CLIENT
errored true
errorEvent RemoteTransportException, String
attributes {
@ -188,8 +188,8 @@ class Elasticsearch5TransportClientTest extends AgentTestRunner {
}
trace(0, 1) {
span(0) {
operationName "CreateIndexAction"
spanKind CLIENT
name "CreateIndexAction"
kind CLIENT
attributes {
"${SemanticAttributes.NET_PEER_NAME.key()}" tcpPublishAddress.host == tcpPublishAddress.address ? null : tcpPublishAddress.host
"${SemanticAttributes.NET_PEER_IP.key()}" tcpPublishAddress.address
@ -204,8 +204,8 @@ class Elasticsearch5TransportClientTest extends AgentTestRunner {
}
trace(1, 1) {
span(0) {
operationName "GetAction"
spanKind CLIENT
name "GetAction"
kind CLIENT
attributes {
"${SemanticAttributes.NET_PEER_NAME.key()}" tcpPublishAddress.host == tcpPublishAddress.address ? null : tcpPublishAddress.host
"${SemanticAttributes.NET_PEER_IP.key()}" tcpPublishAddress.address
@ -223,8 +223,8 @@ class Elasticsearch5TransportClientTest extends AgentTestRunner {
}
trace(2, 1) {
span(0) {
operationName "PutMappingAction"
spanKind CLIENT
name "PutMappingAction"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "elasticsearch"
"${SemanticAttributes.DB_OPERATION.key()}" "PutMappingAction"
@ -235,8 +235,8 @@ class Elasticsearch5TransportClientTest extends AgentTestRunner {
}
trace(3, 1) {
span(0) {
operationName "IndexAction"
spanKind CLIENT
name "IndexAction"
kind CLIENT
attributes {
"${SemanticAttributes.NET_PEER_NAME.key()}" tcpPublishAddress.host == tcpPublishAddress.address ? null : tcpPublishAddress.host
"${SemanticAttributes.NET_PEER_IP.key()}" tcpPublishAddress.address
@ -256,8 +256,8 @@ class Elasticsearch5TransportClientTest extends AgentTestRunner {
}
trace(4, 1) {
span(0) {
operationName "GetAction"
spanKind CLIENT
name "GetAction"
kind CLIENT
attributes {
"${SemanticAttributes.NET_PEER_NAME.key()}" tcpPublishAddress.host == tcpPublishAddress.address ? null : tcpPublishAddress.address
"${SemanticAttributes.NET_PEER_IP.key()}" tcpPublishAddress.address

View File

@ -75,8 +75,8 @@ class Elasticsearch53NodeClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "ClusterHealthAction"
spanKind CLIENT
name "ClusterHealthAction"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "elasticsearch"
"${SemanticAttributes.DB_OPERATION.key()}" "ClusterHealthAction"
@ -99,8 +99,8 @@ class Elasticsearch53NodeClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "GetAction"
spanKind CLIENT
name "GetAction"
kind CLIENT
errored true
errorEvent IndexNotFoundException, "no such index"
attributes {
@ -162,8 +162,8 @@ class Elasticsearch53NodeClientTest extends AgentTestRunner {
assertTraces(5) {
trace(0, 1) {
span(0) {
operationName "CreateIndexAction"
spanKind CLIENT
name "CreateIndexAction"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "elasticsearch"
"${SemanticAttributes.DB_OPERATION.key()}" "CreateIndexAction"
@ -175,8 +175,8 @@ class Elasticsearch53NodeClientTest extends AgentTestRunner {
}
trace(1, 1) {
span(0) {
operationName "ClusterHealthAction"
spanKind CLIENT
name "ClusterHealthAction"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "elasticsearch"
"${SemanticAttributes.DB_OPERATION.key()}" "ClusterHealthAction"
@ -187,8 +187,8 @@ class Elasticsearch53NodeClientTest extends AgentTestRunner {
}
trace(2, 1) {
span(0) {
operationName "GetAction"
spanKind CLIENT
name "GetAction"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "elasticsearch"
"${SemanticAttributes.DB_OPERATION.key()}" "GetAction"
@ -203,8 +203,8 @@ class Elasticsearch53NodeClientTest extends AgentTestRunner {
}
trace(3, 2) {
span(0) {
operationName "IndexAction"
spanKind CLIENT
name "IndexAction"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "elasticsearch"
"${SemanticAttributes.DB_OPERATION.key()}" "IndexAction"
@ -220,8 +220,8 @@ class Elasticsearch53NodeClientTest extends AgentTestRunner {
}
}
span(1) {
operationName "PutMappingAction"
spanKind CLIENT
name "PutMappingAction"
kind CLIENT
childOf span(0)
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "elasticsearch"
@ -233,8 +233,8 @@ class Elasticsearch53NodeClientTest extends AgentTestRunner {
}
trace(4, 1) {
span(0) {
operationName "GetAction"
spanKind CLIENT
name "GetAction"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "elasticsearch"
"${SemanticAttributes.DB_OPERATION.key()}" "GetAction"

View File

@ -92,8 +92,8 @@ class Elasticsearch53TransportClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "ClusterHealthAction"
spanKind CLIENT
name "ClusterHealthAction"
kind CLIENT
attributes {
"${SemanticAttributes.NET_PEER_NAME.key()}" tcpPublishAddress.host == tcpPublishAddress.address ? null : tcpPublishAddress.address
"${SemanticAttributes.NET_PEER_IP.key()}" tcpPublishAddress.address
@ -119,8 +119,8 @@ class Elasticsearch53TransportClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "GetAction"
spanKind CLIENT
name "GetAction"
kind CLIENT
errored true
errorEvent RemoteTransportException, String
attributes {
@ -189,8 +189,8 @@ class Elasticsearch53TransportClientTest extends AgentTestRunner {
}
trace(0, 1) {
span(0) {
operationName "CreateIndexAction"
spanKind CLIENT
name "CreateIndexAction"
kind CLIENT
attributes {
"${SemanticAttributes.NET_PEER_NAME.key()}" tcpPublishAddress.host == tcpPublishAddress.address ? null : tcpPublishAddress.address
"${SemanticAttributes.NET_PEER_IP.key()}" tcpPublishAddress.address
@ -205,8 +205,8 @@ class Elasticsearch53TransportClientTest extends AgentTestRunner {
}
trace(1, 1) {
span(0) {
operationName "GetAction"
spanKind CLIENT
name "GetAction"
kind CLIENT
attributes {
"${SemanticAttributes.NET_PEER_NAME.key()}" tcpPublishAddress.host == tcpPublishAddress.address ? null : tcpPublishAddress.address
"${SemanticAttributes.NET_PEER_IP.key()}" tcpPublishAddress.address
@ -224,8 +224,8 @@ class Elasticsearch53TransportClientTest extends AgentTestRunner {
}
trace(2, 1) {
span(0) {
operationName "PutMappingAction"
spanKind CLIENT
name "PutMappingAction"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "elasticsearch"
"${SemanticAttributes.DB_OPERATION.key()}" "PutMappingAction"
@ -236,8 +236,8 @@ class Elasticsearch53TransportClientTest extends AgentTestRunner {
}
trace(3, 1) {
span(0) {
operationName "IndexAction"
spanKind CLIENT
name "IndexAction"
kind CLIENT
attributes {
"${SemanticAttributes.NET_PEER_NAME.key()}" tcpPublishAddress.host == tcpPublishAddress.address ? null : tcpPublishAddress.address
"${SemanticAttributes.NET_PEER_IP.key()}" tcpPublishAddress.address
@ -258,8 +258,8 @@ class Elasticsearch53TransportClientTest extends AgentTestRunner {
}
trace(4, 1) {
span(0) {
operationName "GetAction"
spanKind CLIENT
name "GetAction"
kind CLIENT
attributes {
"${SemanticAttributes.NET_PEER_NAME.key()}" tcpPublishAddress.host == tcpPublishAddress.address ? null : tcpPublishAddress.address
"${SemanticAttributes.NET_PEER_IP.key()}" tcpPublishAddress.address

View File

@ -70,14 +70,14 @@ class Elasticsearch53SpringRepositoryTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 2) {
span(0) {
operationName "CrudRepository.findAll"
spanKind INTERNAL
name "CrudRepository.findAll"
kind INTERNAL
attributes {
}
}
span(1) {
operationName "SearchAction"
spanKind CLIENT
name "SearchAction"
kind CLIENT
errored false
childOf span(0)
attributes {
@ -107,14 +107,14 @@ class Elasticsearch53SpringRepositoryTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 4) {
span(0) {
operationName "ElasticsearchRepository.index"
spanKind INTERNAL
name "ElasticsearchRepository.index"
kind INTERNAL
attributes {
}
}
span(1) {
operationName "IndexAction"
spanKind CLIENT
name "IndexAction"
kind CLIENT
childOf span(0)
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "elasticsearch"
@ -131,8 +131,8 @@ class Elasticsearch53SpringRepositoryTest extends AgentTestRunner {
}
}
span(2) {
operationName "PutMappingAction"
spanKind CLIENT
name "PutMappingAction"
kind CLIENT
childOf span(1)
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "elasticsearch"
@ -142,8 +142,8 @@ class Elasticsearch53SpringRepositoryTest extends AgentTestRunner {
}
}
span(3) {
operationName "RefreshAction"
spanKind CLIENT
name "RefreshAction"
kind CLIENT
childOf span(0)
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "elasticsearch"
@ -167,14 +167,14 @@ class Elasticsearch53SpringRepositoryTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 2) {
span(0) {
operationName "CrudRepository.findById"
spanKind INTERNAL
name "CrudRepository.findById"
kind INTERNAL
attributes {
}
}
span(1) {
operationName "GetAction"
spanKind CLIENT
name "GetAction"
kind CLIENT
childOf span(0)
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "elasticsearch"
@ -202,14 +202,14 @@ class Elasticsearch53SpringRepositoryTest extends AgentTestRunner {
assertTraces(2) {
trace(0, 3) {
span(0) {
operationName "ElasticsearchRepository.index"
spanKind INTERNAL
name "ElasticsearchRepository.index"
kind INTERNAL
attributes {
}
}
span(1) {
operationName "IndexAction"
spanKind CLIENT
name "IndexAction"
kind CLIENT
childOf span(0)
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "elasticsearch"
@ -226,8 +226,8 @@ class Elasticsearch53SpringRepositoryTest extends AgentTestRunner {
}
}
span(2) {
operationName "RefreshAction"
spanKind CLIENT
name "RefreshAction"
kind CLIENT
childOf span(0)
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "elasticsearch"
@ -243,14 +243,14 @@ class Elasticsearch53SpringRepositoryTest extends AgentTestRunner {
}
trace(1, 2) {
span(0) {
operationName "CrudRepository.findById"
spanKind INTERNAL
name "CrudRepository.findById"
kind INTERNAL
attributes {
}
}
span(1) {
operationName "GetAction"
spanKind CLIENT
name "GetAction"
kind CLIENT
childOf span(0)
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "elasticsearch"
@ -277,14 +277,14 @@ class Elasticsearch53SpringRepositoryTest extends AgentTestRunner {
assertTraces(2) {
trace(0, 3) {
span(0) {
operationName "CrudRepository.deleteById"
spanKind INTERNAL
name "CrudRepository.deleteById"
kind INTERNAL
attributes {
}
}
span(1) {
operationName "DeleteAction"
spanKind CLIENT
name "DeleteAction"
kind CLIENT
childOf span(0)
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "elasticsearch"
@ -300,8 +300,8 @@ class Elasticsearch53SpringRepositoryTest extends AgentTestRunner {
}
}
span(2) {
operationName "RefreshAction"
spanKind CLIENT
name "RefreshAction"
kind CLIENT
childOf span(0)
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "elasticsearch"
@ -318,14 +318,14 @@ class Elasticsearch53SpringRepositoryTest extends AgentTestRunner {
trace(1, 2) {
span(0) {
operationName "CrudRepository.findAll"
spanKind INTERNAL
name "CrudRepository.findAll"
kind INTERNAL
attributes {
}
}
span(1) {
operationName "SearchAction"
spanKind CLIENT
name "SearchAction"
kind CLIENT
childOf span(0)
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "elasticsearch"

View File

@ -93,8 +93,8 @@ class Elasticsearch53SpringTemplateTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "RefreshAction"
spanKind CLIENT
name "RefreshAction"
kind CLIENT
errored true
errorEvent IndexNotFoundException, "no such index"
attributes {
@ -144,8 +144,8 @@ class Elasticsearch53SpringTemplateTest extends AgentTestRunner {
assertTraces(6) {
trace(0, 1) {
span(0) {
operationName "CreateIndexAction"
spanKind CLIENT
name "CreateIndexAction"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "elasticsearch"
"${SemanticAttributes.DB_OPERATION.key()}" "CreateIndexAction"
@ -157,8 +157,8 @@ class Elasticsearch53SpringTemplateTest extends AgentTestRunner {
}
trace(1, 1) {
span(0) {
operationName "ClusterHealthAction"
spanKind CLIENT
name "ClusterHealthAction"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "elasticsearch"
"${SemanticAttributes.DB_OPERATION.key()}" "ClusterHealthAction"
@ -169,8 +169,8 @@ class Elasticsearch53SpringTemplateTest extends AgentTestRunner {
}
trace(2, 1) {
span(0) {
operationName "SearchAction"
spanKind CLIENT
name "SearchAction"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "elasticsearch"
"${SemanticAttributes.DB_OPERATION.key()}" "SearchAction"
@ -183,8 +183,8 @@ class Elasticsearch53SpringTemplateTest extends AgentTestRunner {
}
trace(3, 2) {
span(0) {
operationName "IndexAction"
spanKind CLIENT
name "IndexAction"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "elasticsearch"
"${SemanticAttributes.DB_OPERATION.key()}" "IndexAction"
@ -200,8 +200,8 @@ class Elasticsearch53SpringTemplateTest extends AgentTestRunner {
}
}
span(1) {
operationName "PutMappingAction"
spanKind CLIENT
name "PutMappingAction"
kind CLIENT
childOf span(0)
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "elasticsearch"
@ -213,8 +213,8 @@ class Elasticsearch53SpringTemplateTest extends AgentTestRunner {
}
trace(4, 1) {
span(0) {
operationName "RefreshAction"
spanKind CLIENT
name "RefreshAction"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "elasticsearch"
"${SemanticAttributes.DB_OPERATION.key()}" "RefreshAction"
@ -229,8 +229,8 @@ class Elasticsearch53SpringTemplateTest extends AgentTestRunner {
}
trace(5, 1) {
span(0) {
operationName "SearchAction"
spanKind CLIENT
name "SearchAction"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "elasticsearch"
"${SemanticAttributes.DB_OPERATION.key()}" "SearchAction"
@ -307,8 +307,8 @@ class Elasticsearch53SpringTemplateTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "SearchAction"
spanKind CLIENT
name "SearchAction"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "elasticsearch"
"${SemanticAttributes.DB_OPERATION.key()}" "SearchAction"

View File

@ -72,8 +72,8 @@ class Elasticsearch6NodeClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "ClusterHealthAction"
spanKind CLIENT
name "ClusterHealthAction"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "elasticsearch"
"${SemanticAttributes.DB_OPERATION.key()}" "ClusterHealthAction"
@ -96,8 +96,8 @@ class Elasticsearch6NodeClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "GetAction"
spanKind CLIENT
name "GetAction"
kind CLIENT
errored true
errorEvent IndexNotFoundException, "no such index"
attributes {
@ -158,8 +158,8 @@ class Elasticsearch6NodeClientTest extends AgentTestRunner {
assertTraces(4) {
trace(0, 1) {
span(0) {
operationName "CreateIndexAction"
spanKind CLIENT
name "CreateIndexAction"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "elasticsearch"
"${SemanticAttributes.DB_OPERATION.key()}" "CreateIndexAction"
@ -171,8 +171,8 @@ class Elasticsearch6NodeClientTest extends AgentTestRunner {
}
trace(1, 1) {
span(0) {
operationName "GetAction"
spanKind CLIENT
name "GetAction"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "elasticsearch"
"${SemanticAttributes.DB_OPERATION.key()}" "GetAction"
@ -187,8 +187,8 @@ class Elasticsearch6NodeClientTest extends AgentTestRunner {
}
trace(2, 2) {
span(0) {
operationName "IndexAction"
spanKind CLIENT
name "IndexAction"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "elasticsearch"
"${SemanticAttributes.DB_OPERATION.key()}" "IndexAction"
@ -204,8 +204,8 @@ class Elasticsearch6NodeClientTest extends AgentTestRunner {
}
}
span(1) {
operationName "PutMappingAction"
spanKind CLIENT
name "PutMappingAction"
kind CLIENT
childOf span(0)
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "elasticsearch"
@ -217,8 +217,8 @@ class Elasticsearch6NodeClientTest extends AgentTestRunner {
}
trace(3, 1) {
span(0) {
operationName "GetAction"
spanKind CLIENT
name "GetAction"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "elasticsearch"
"${SemanticAttributes.DB_OPERATION.key()}" "GetAction"

View File

@ -87,8 +87,8 @@ class Elasticsearch6TransportClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "ClusterHealthAction"
spanKind CLIENT
name "ClusterHealthAction"
kind CLIENT
attributes {
"${SemanticAttributes.NET_PEER_NAME.key()}" "localhost"
"${SemanticAttributes.NET_PEER_IP.key()}" tcpPublishAddress.address
@ -114,8 +114,8 @@ class Elasticsearch6TransportClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "GetAction"
spanKind CLIENT
name "GetAction"
kind CLIENT
errored true
errorEvent RemoteTransportException, String
attributes {
@ -184,8 +184,8 @@ class Elasticsearch6TransportClientTest extends AgentTestRunner {
}
trace(0, 1) {
span(0) {
operationName "CreateIndexAction"
spanKind CLIENT
name "CreateIndexAction"
kind CLIENT
attributes {
"${SemanticAttributes.NET_PEER_NAME.key()}" "localhost"
"${SemanticAttributes.NET_PEER_IP.key()}" tcpPublishAddress.address
@ -200,8 +200,8 @@ class Elasticsearch6TransportClientTest extends AgentTestRunner {
}
trace(1, 1) {
span(0) {
operationName "GetAction"
spanKind CLIENT
name "GetAction"
kind CLIENT
attributes {
"${SemanticAttributes.NET_PEER_NAME.key()}" "localhost"
"${SemanticAttributes.NET_PEER_IP.key()}" tcpPublishAddress.address
@ -219,8 +219,8 @@ class Elasticsearch6TransportClientTest extends AgentTestRunner {
}
trace(2, 1) {
span(0) {
operationName "PutMappingAction"
spanKind CLIENT
name "PutMappingAction"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "elasticsearch"
"${SemanticAttributes.DB_OPERATION.key()}" "PutMappingAction"
@ -231,8 +231,8 @@ class Elasticsearch6TransportClientTest extends AgentTestRunner {
}
trace(3, 1) {
span(0) {
operationName "IndexAction"
spanKind CLIENT
name "IndexAction"
kind CLIENT
attributes {
"${SemanticAttributes.NET_PEER_NAME.key()}" "localhost"
"${SemanticAttributes.NET_PEER_IP.key()}" tcpPublishAddress.address
@ -253,8 +253,8 @@ class Elasticsearch6TransportClientTest extends AgentTestRunner {
}
trace(4, 1) {
span(0) {
operationName "GetAction"
spanKind CLIENT
name "GetAction"
kind CLIENT
attributes {
"${SemanticAttributes.NET_PEER_NAME.key()}" "localhost"
"${SemanticAttributes.NET_PEER_IP.key()}" tcpPublishAddress.address

View File

@ -41,7 +41,7 @@ class ConfiguredTraceAnnotationsTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "AnnotationTracedCallable.call"
name "AnnotationTracedCallable.call"
attributes {
}
}

View File

@ -19,8 +19,8 @@ class TraceAnnotationsTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "SayTracedHello.sayHello"
parent()
name "SayTracedHello.sayHello"
hasNoParent()
errored false
attributes {
"myattr" "test"
@ -39,15 +39,15 @@ class TraceAnnotationsTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 3) {
span(0) {
operationName "SayTracedHello.sayHELLOsayHA"
parent()
name "SayTracedHello.sayHELLOsayHA"
hasNoParent()
errored false
attributes {
"myattr" "test2"
}
}
span(1) {
operationName "SayTracedHello.sayHello"
name "SayTracedHello.sayHello"
childOf span(0)
errored false
attributes {
@ -55,7 +55,7 @@ class TraceAnnotationsTest extends AgentTestRunner {
}
}
span(2) {
operationName "SayTracedHello.sayHello"
name "SayTracedHello.sayHello"
childOf span(0)
errored false
attributes {
@ -79,7 +79,7 @@ class TraceAnnotationsTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "SayTracedHello.sayERROR"
name "SayTracedHello.sayERROR"
errored true
errorEvent(error.class)
}
@ -96,7 +96,7 @@ class TraceAnnotationsTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "SayTracedHello\$1.call"
name "SayTracedHello\$1.call"
attributes {
}
}
@ -117,13 +117,13 @@ class TraceAnnotationsTest extends AgentTestRunner {
assertTraces(2) {
trace(0, 1) {
span(0) {
operationName "SayTracedHello\$1.call"
name "SayTracedHello\$1.call"
attributes {
}
}
trace(1, 1) {
span(0) {
operationName "TraceAnnotationsTest\$1.call"
name "TraceAnnotationsTest\$1.call"
attributes {
}
}

View File

@ -36,7 +36,7 @@ class TraceConfigTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "ConfigTracedCallable.call"
name "ConfigTracedCallable.call"
attributes {
}
}

View File

@ -33,8 +33,8 @@ class TraceProvidersTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "SayTracedHello.${provider.toLowerCase()}"
parent()
name "SayTracedHello.${provider.toLowerCase()}"
hasNoParent()
errored false
attributes {
"providerAttr" provider

View File

@ -64,14 +64,14 @@ class TracedMethodsExclusionTest extends AgentTestRunner {
assertTraces(2) {
trace(0, 1) {
span(0) {
operationName "TestClass.included"
name "TestClass.included"
attributes {
}
}
}
trace(1, 1) {
span(0) {
operationName "TestClass.annotated"
name "TestClass.annotated"
attributes {
}
}

View File

@ -84,8 +84,8 @@ class FinatraServerLatestTest extends HttpServerTest<HttpServer> {
@Override
void handlerSpan(TraceAssert trace, int index, Object parent, String method = "GET", ServerEndpoint endpoint = SUCCESS) {
trace.span(index) {
operationName "FinatraController"
spanKind INTERNAL
name "FinatraController"
kind INTERNAL
childOf(parent as SpanData)
// Finatra doesn't propagate the stack trace or exception to the instrumentation
// so the normal errorAttributes() method can't be used

View File

@ -73,8 +73,8 @@ class FinatraServerTest extends HttpServerTest<HttpServer> {
@Override
void handlerSpan(TraceAssert trace, int index, Object parent, String method = "GET", ServerEndpoint endpoint = SUCCESS) {
trace.span(index) {
operationName "FinatraController"
spanKind INTERNAL
name "FinatraController"
kind INTERNAL
childOf(parent as SpanData)
// Finatra doesn't propagate the stack trace or exception to the instrumentation
// so the normal errorAttributes() method can't be used
@ -87,14 +87,14 @@ class FinatraServerTest extends HttpServerTest<HttpServer> {
@Override
void serverSpan(TraceAssert trace, int index, String traceID = null, String parentID = null, String method = "GET", Long responseContentLength = null, ServerEndpoint endpoint = SUCCESS) {
trace.span(index) {
operationName endpoint == PATH_PARAM ? "/path/:id/param" : endpoint.resolvePath(address).path
spanKind SERVER
name endpoint == PATH_PARAM ? "/path/:id/param" : endpoint.resolvePath(address).path
kind SERVER
errored endpoint.errored
if (parentID != null) {
traceId traceID
parentId parentID
parentSpanId parentID
} else {
parent()
hasNoParent()
}
attributes {
"${SemanticAttributes.NET_PEER_PORT.key()}" Long

View File

@ -112,13 +112,13 @@ class PutGetTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 4) {
span(0) {
operationName "someTrace"
spanKind INTERNAL
name "someTrace"
kind INTERNAL
errored false
}
span(1) {
operationName "clear"
spanKind CLIENT
name "clear"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "geode"
@ -127,8 +127,8 @@ class PutGetTest extends AgentTestRunner {
}
}
span(2) {
operationName "put"
spanKind CLIENT
name "put"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "geode"
@ -137,8 +137,8 @@ class PutGetTest extends AgentTestRunner {
}
}
span(3) {
operationName verb
spanKind CLIENT
name verb
kind CLIENT
errored false
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "geode"

View File

@ -64,7 +64,7 @@ abstract class AbstractGoogleHttpClientTest extends HttpClientTest {
assertTraces(1) {
trace(0, 2) {
span(0) {
spanKind CLIENT
kind CLIENT
errored true
attributes {
"${SemanticAttributes.NET_TRANSPORT.key()}" "IP.TCP"

View File

@ -103,9 +103,9 @@ class GrpcStreamingTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 2) {
span(0) {
operationName "example.Greeter/Conversation"
spanKind CLIENT
parent()
name "example.Greeter/Conversation"
kind CLIENT
hasNoParent()
errored false
attributes {
"${SemanticAttributes.RPC_SYSTEM.key()}" "grpc"
@ -126,8 +126,8 @@ class GrpcStreamingTest extends AgentTestRunner {
}
}
span(1) {
operationName "example.Greeter/Conversation"
spanKind SERVER
name "example.Greeter/Conversation"
kind SERVER
childOf span(0)
errored false
attributes {
@ -156,12 +156,12 @@ class GrpcStreamingTest extends AgentTestRunner {
server?.shutdownNow()?.awaitTermination()
where:
name | clientMessageCount | serverMessageCount
"A" | 1 | 1
"B" | 2 | 1
"C" | 1 | 2
"D" | 2 | 2
"E" | 3 | 3
paramName | clientMessageCount | serverMessageCount
"A" | 1 | 1
"B" | 2 | 1
"C" | 1 | 2
"D" | 2 | 2
"E" | 3 | 3
clientRange = 1..clientMessageCount
serverRange = 1..serverMessageCount

View File

@ -52,18 +52,18 @@ class GrpcTest extends AgentTestRunner {
when:
def response = runUnderTrace("parent") {
client.sayHello(Helloworld.Request.newBuilder().setName(name).build())
client.sayHello(Helloworld.Request.newBuilder().setName(paramName).build())
}
then:
response.message == "Hello $name"
response.message == "Hello $paramName"
assertTraces(1) {
trace(0, 3) {
basicSpan(it, 0, "parent")
span(1) {
operationName "example.Greeter/SayHello"
spanKind CLIENT
name "example.Greeter/SayHello"
kind CLIENT
childOf span(0)
errored false
event(0) {
@ -82,8 +82,8 @@ class GrpcTest extends AgentTestRunner {
}
}
span(2) {
operationName "example.Greeter/SayHello"
spanKind SERVER
name "example.Greeter/SayHello"
kind SERVER
childOf span(1)
errored false
event(0) {
@ -109,7 +109,7 @@ class GrpcTest extends AgentTestRunner {
server?.shutdownNow()?.awaitTermination()
where:
name << ["some name", "some other name"]
paramName << ["some name", "some other name"]
}
def "test error - #name"() {
@ -136,7 +136,7 @@ class GrpcTest extends AgentTestRunner {
GreeterGrpc.GreeterBlockingStub client = GreeterGrpc.newBlockingStub(channel)
when:
client.sayHello(Helloworld.Request.newBuilder().setName(name).build())
client.sayHello(Helloworld.Request.newBuilder().setName(paramName).build())
then:
thrown StatusRuntimeException
@ -144,9 +144,9 @@ class GrpcTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 2) {
span(0) {
operationName "example.Greeter/SayHello"
spanKind CLIENT
parent()
name "example.Greeter/SayHello"
kind CLIENT
hasNoParent()
errored true
status(GrpcHelper.statusFromGrpcStatus(grpcStatus))
attributes {
@ -158,8 +158,8 @@ class GrpcTest extends AgentTestRunner {
}
}
span(1) {
operationName "example.Greeter/SayHello"
spanKind SERVER
name "example.Greeter/SayHello"
kind SERVER
childOf span(0)
errored true
status(GrpcHelper.statusFromGrpcStatus(grpcStatus))
@ -189,7 +189,7 @@ class GrpcTest extends AgentTestRunner {
server?.shutdownNow()?.awaitTermination()
where:
name | grpcStatus
paramName | grpcStatus
"Runtime - cause" | Status.UNKNOWN.withCause(new RuntimeException("some error"))
"Status - cause" | Status.PERMISSION_DENIED.withCause(new RuntimeException("some error"))
"StatusRuntime - cause" | Status.UNIMPLEMENTED.withCause(new RuntimeException("some error"))
@ -222,7 +222,7 @@ class GrpcTest extends AgentTestRunner {
GreeterGrpc.GreeterBlockingStub client = GreeterGrpc.newBlockingStub(channel)
when:
client.sayHello(Helloworld.Request.newBuilder().setName(name).build())
client.sayHello(Helloworld.Request.newBuilder().setName(paramName).build())
then:
thrown StatusRuntimeException
@ -230,9 +230,9 @@ class GrpcTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 2) {
span(0) {
operationName "example.Greeter/SayHello"
spanKind CLIENT
parent()
name "example.Greeter/SayHello"
kind CLIENT
hasNoParent()
errored true
// NB: Exceptions thrown on the server don't appear to be propagated to the client, at
// least for the version we test against.
@ -245,8 +245,8 @@ class GrpcTest extends AgentTestRunner {
}
}
span(1) {
operationName "example.Greeter/SayHello"
spanKind SERVER
name "example.Greeter/SayHello"
kind SERVER
childOf span(0)
errored true
status(GrpcHelper.statusFromGrpcStatus(grpcStatus))
@ -276,7 +276,7 @@ class GrpcTest extends AgentTestRunner {
server?.shutdownNow()?.awaitTermination()
where:
name | grpcStatus
paramName | grpcStatus
"Runtime - cause" | Status.UNKNOWN.withCause(new RuntimeException("some error"))
"Status - cause" | Status.PERMISSION_DENIED.withCause(new RuntimeException("some error"))
"StatusRuntime - cause" | Status.UNIMPLEMENTED.withCause(new RuntimeException("some error"))

View File

@ -29,22 +29,22 @@ class CriteriaTest extends AbstractHibernateTest {
assertTraces(1) {
trace(0, 4) {
span(0) {
operationName "Session"
spanKind INTERNAL
parent()
name "Session"
kind INTERNAL
hasNoParent()
attributes {
}
}
span(1) {
operationName "Criteria.$methodName"
spanKind INTERNAL
name "Criteria.$methodName"
kind INTERNAL
childOf span(0)
attributes {
}
}
span(2) {
operationName ~/^select /
spanKind CLIENT
name ~/^select /
kind CLIENT
childOf span(1)
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "h2"
@ -55,8 +55,8 @@ class CriteriaTest extends AbstractHibernateTest {
}
}
span(3) {
operationName "Transaction.commit"
spanKind INTERNAL
name "Transaction.commit"
kind INTERNAL
childOf span(0)
attributes {
}

View File

@ -34,21 +34,21 @@ class QueryTest extends AbstractHibernateTest {
// With Transaction
trace(0, 4) {
span(0) {
operationName "Session"
spanKind INTERNAL
parent()
name "Session"
kind INTERNAL
hasNoParent()
attributes {
}
}
span(1) {
operationName expectedSpanName
spanKind INTERNAL
name expectedSpanName
kind INTERNAL
childOf span(0)
attributes {
}
}
span(2) {
spanKind CLIENT
kind CLIENT
childOf span(1)
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "h2"
@ -59,8 +59,8 @@ class QueryTest extends AbstractHibernateTest {
}
}
span(3) {
operationName "Transaction.commit"
spanKind INTERNAL
name "Transaction.commit"
kind INTERNAL
childOf span(0)
attributes {
}
@ -70,22 +70,22 @@ class QueryTest extends AbstractHibernateTest {
// Without Transaction
trace(1, 3) {
span(0) {
operationName "Session"
spanKind INTERNAL
parent()
name "Session"
kind INTERNAL
hasNoParent()
attributes {
}
}
span(1) {
operationName expectedSpanName
spanKind INTERNAL
name expectedSpanName
kind INTERNAL
childOf span(0)
attributes {
}
}
span(2) {
operationName ~/^select /
spanKind CLIENT
name ~/^select /
kind CLIENT
childOf span(1)
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "h2"
@ -142,22 +142,22 @@ class QueryTest extends AbstractHibernateTest {
assertTraces(1) {
trace(0, 4) {
span(0) {
operationName "Session"
spanKind INTERNAL
parent()
name "Session"
kind INTERNAL
hasNoParent()
attributes {
}
}
span(1) {
operationName "from Value"
spanKind INTERNAL
name "from Value"
kind INTERNAL
childOf span(0)
attributes {
}
}
span(2) {
operationName ~/^select /
spanKind CLIENT
name ~/^select /
kind CLIENT
childOf span(1)
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "h2"
@ -168,8 +168,8 @@ class QueryTest extends AbstractHibernateTest {
}
}
span(3) {
operationName "Transaction.commit"
spanKind INTERNAL
name "Transaction.commit"
kind INTERNAL
childOf span(0)
attributes {
}

View File

@ -46,22 +46,22 @@ class SessionTest extends AbstractHibernateTest {
for (int i = 0; i < sessionImplementations.size(); i++) {
trace(i, 4) {
span(0) {
operationName "Session"
spanKind INTERNAL
parent()
name "Session"
kind INTERNAL
hasNoParent()
attributes {
}
}
span(1) {
operationName "Session.$methodName $resource"
spanKind INTERNAL
name "Session.$methodName $resource"
kind INTERNAL
childOf span(0)
attributes {
}
}
span(2) {
operationName ~/^select /
spanKind CLIENT
name ~/^select /
kind CLIENT
childOf span(1)
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "h2"
@ -72,8 +72,8 @@ class SessionTest extends AbstractHibernateTest {
}
}
span(3) {
operationName "Transaction.commit"
spanKind INTERNAL
name "Transaction.commit"
kind INTERNAL
childOf span(0)
attributes {
}
@ -115,28 +115,28 @@ class SessionTest extends AbstractHibernateTest {
assertTraces(1) {
trace(0, 4) {
span(0) {
operationName "Session"
spanKind INTERNAL
parent()
name "Session"
kind INTERNAL
hasNoParent()
attributes {
}
}
span(1) {
operationName "Session.$methodName $resource"
spanKind INTERNAL
name "Session.$methodName $resource"
kind INTERNAL
childOf span(0)
attributes {
}
}
span(2) {
operationName "Transaction.commit"
spanKind INTERNAL
name "Transaction.commit"
kind INTERNAL
childOf span(0)
attributes {
}
}
span(3) {
spanKind CLIENT
kind CLIENT
childOf span(2)
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "h2"
@ -187,22 +187,22 @@ class SessionTest extends AbstractHibernateTest {
assertTraces(1) {
trace(0, 5) {
span(0) {
operationName "Session"
spanKind INTERNAL
parent()
name "Session"
kind INTERNAL
hasNoParent()
attributes {
}
}
span(1) {
operationName "Session.$methodName $resource"
spanKind INTERNAL
name "Session.$methodName $resource"
kind INTERNAL
childOf span(0)
attributes {
}
}
span(2) {
operationName ~/^select /
spanKind CLIENT
name ~/^select /
kind CLIENT
childOf span(1)
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "h2"
@ -213,14 +213,14 @@ class SessionTest extends AbstractHibernateTest {
}
}
span(3) {
operationName "Transaction.commit"
spanKind INTERNAL
name "Transaction.commit"
kind INTERNAL
childOf span(0)
attributes {
}
}
span(4) {
spanKind CLIENT
kind CLIENT
childOf span(3)
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "h2"
@ -268,22 +268,22 @@ class SessionTest extends AbstractHibernateTest {
assertTraces(1) {
trace(0, 3) {
span(0) {
operationName "Session"
spanKind INTERNAL
parent()
name "Session"
kind INTERNAL
hasNoParent()
attributes {
}
}
span(1) {
operationName "Session.replicate"
spanKind INTERNAL
name "Session.replicate"
kind INTERNAL
childOf span(0)
errored(true)
errorEvent(MappingException, "Unknown entity: java.lang.Long")
}
span(2) {
operationName "Transaction.commit"
spanKind INTERNAL
name "Transaction.commit"
kind INTERNAL
childOf span(0)
attributes {
}
@ -313,28 +313,28 @@ class SessionTest extends AbstractHibernateTest {
assertTraces(1) {
trace(0, 4) {
span(0) {
operationName "Session"
spanKind INTERNAL
parent()
name "Session"
kind INTERNAL
hasNoParent()
attributes {
}
}
span(1) {
operationName "Session.$methodName $resource"
spanKind INTERNAL
name "Session.$methodName $resource"
kind INTERNAL
childOf span(0)
attributes {
}
}
span(2) {
operationName "Transaction.commit"
spanKind INTERNAL
name "Transaction.commit"
kind INTERNAL
childOf span(0)
attributes {
}
}
span(3) {
spanKind CLIENT
kind CLIENT
childOf span(2)
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "h2"
@ -392,21 +392,21 @@ class SessionTest extends AbstractHibernateTest {
assertTraces(1) {
trace(0, 4) {
span(0) {
operationName "Session"
spanKind INTERNAL
parent()
name "Session"
kind INTERNAL
hasNoParent()
attributes {
}
}
span(1) {
operationName expectedSpanName
spanKind INTERNAL
name expectedSpanName
kind INTERNAL
childOf span(0)
attributes {
}
}
span(2) {
spanKind CLIENT
kind CLIENT
childOf span(1)
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "h2"
@ -417,8 +417,8 @@ class SessionTest extends AbstractHibernateTest {
}
}
span(3) {
operationName "Transaction.commit"
spanKind INTERNAL
name "Transaction.commit"
kind INTERNAL
childOf span(0)
attributes {
}
@ -459,41 +459,41 @@ class SessionTest extends AbstractHibernateTest {
assertTraces(1) {
trace(0, 11) {
span(0) {
operationName "overlapping Sessions"
name "overlapping Sessions"
attributes {
}
}
span(1) {
operationName "Session"
spanKind INTERNAL
name "Session"
kind INTERNAL
childOf span(0)
attributes {
}
}
span(2) {
operationName "Session.save Value"
spanKind INTERNAL
name "Session.save Value"
kind INTERNAL
childOf span(1)
attributes {
}
}
span(3) {
operationName "Session.delete Value"
spanKind INTERNAL
name "Session.delete Value"
kind INTERNAL
childOf span(1)
attributes {
}
}
span(4) {
operationName "Transaction.commit"
spanKind INTERNAL
name "Transaction.commit"
kind INTERNAL
childOf span(1)
attributes {
}
}
span(5) {
operationName ~/^insert /
spanKind CLIENT
name ~/^insert /
kind CLIENT
childOf span(4)
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "h2"
@ -504,8 +504,8 @@ class SessionTest extends AbstractHibernateTest {
}
}
span(6) {
operationName ~/^delete /
spanKind CLIENT
name ~/^delete /
kind CLIENT
childOf span(4)
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "h2"
@ -516,29 +516,29 @@ class SessionTest extends AbstractHibernateTest {
}
}
span(7) {
operationName "Session"
spanKind INTERNAL
name "Session"
kind INTERNAL
childOf span(0)
attributes {
}
}
span(8) {
operationName "Session.insert Value"
spanKind INTERNAL
name "Session.insert Value"
kind INTERNAL
childOf span(7)
attributes {
}
}
span(9) {
operationName "Session"
spanKind INTERNAL
name "Session"
kind INTERNAL
childOf span(0)
attributes {
}
}
span(10) {
operationName "Session.save Value"
spanKind INTERNAL
name "Session.save Value"
kind INTERNAL
childOf span(9)
attributes {
}

View File

@ -29,22 +29,22 @@ class CriteriaTest extends AbstractHibernateTest {
assertTraces(1) {
trace(0, 4) {
span(0) {
operationName "Session"
spanKind INTERNAL
parent()
name "Session"
kind INTERNAL
hasNoParent()
attributes {
}
}
span(1) {
operationName "Criteria.$methodName"
spanKind INTERNAL
name "Criteria.$methodName"
kind INTERNAL
childOf span(0)
attributes {
}
}
span(2) {
operationName ~/^select /
spanKind CLIENT
name ~/^select /
kind CLIENT
childOf span(1)
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "h2"
@ -55,8 +55,8 @@ class CriteriaTest extends AbstractHibernateTest {
}
}
span(3) {
operationName "Transaction.commit"
spanKind INTERNAL
name "Transaction.commit"
kind INTERNAL
childOf span(0)
attributes {
}

View File

@ -34,21 +34,21 @@ class QueryTest extends AbstractHibernateTest {
// With Transaction
trace(0, 4) {
span(0) {
operationName "Session"
spanKind INTERNAL
parent()
name "Session"
kind INTERNAL
hasNoParent()
attributes {
}
}
span(1) {
operationName expectedSpanName
spanKind INTERNAL
name expectedSpanName
kind INTERNAL
childOf span(0)
attributes {
}
}
span(2) {
spanKind CLIENT
kind CLIENT
childOf span(1)
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "h2"
@ -59,8 +59,8 @@ class QueryTest extends AbstractHibernateTest {
}
}
span(3) {
operationName "Transaction.commit"
spanKind INTERNAL
name "Transaction.commit"
kind INTERNAL
childOf span(0)
attributes {
}
@ -70,22 +70,22 @@ class QueryTest extends AbstractHibernateTest {
// Without Transaction
trace(1, 3) {
span(0) {
operationName "Session"
spanKind INTERNAL
parent()
name "Session"
kind INTERNAL
hasNoParent()
attributes {
}
}
span(1) {
operationName expectedSpanName
spanKind INTERNAL
name expectedSpanName
kind INTERNAL
childOf span(0)
attributes {
}
}
span(2) {
operationName ~/^select /
spanKind CLIENT
name ~/^select /
kind CLIENT
childOf span(1)
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "h2"
@ -142,22 +142,22 @@ class QueryTest extends AbstractHibernateTest {
assertTraces(1) {
trace(0, 4) {
span(0) {
operationName "Session"
spanKind INTERNAL
parent()
name "Session"
kind INTERNAL
hasNoParent()
attributes {
}
}
span(1) {
operationName "from Value"
spanKind INTERNAL
name "from Value"
kind INTERNAL
childOf span(0)
attributes {
}
}
span(2) {
operationName ~/^select /
spanKind CLIENT
name ~/^select /
kind CLIENT
childOf span(1)
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "h2"
@ -168,8 +168,8 @@ class QueryTest extends AbstractHibernateTest {
}
}
span(3) {
operationName "Transaction.commit"
spanKind INTERNAL
name "Transaction.commit"
kind INTERNAL
childOf span(0)
attributes {
}

View File

@ -46,22 +46,22 @@ class SessionTest extends AbstractHibernateTest {
for (int i = 0; i < sessionImplementations.size(); i++) {
trace(i, 4) {
span(0) {
operationName "Session"
spanKind INTERNAL
parent()
name "Session"
kind INTERNAL
hasNoParent()
attributes {
}
}
span(1) {
operationName "Session.$methodName $resource"
spanKind INTERNAL
name "Session.$methodName $resource"
kind INTERNAL
childOf span(0)
attributes {
}
}
span(2) {
childOf span(1)
spanKind CLIENT
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "h2"
"${SemanticAttributes.DB_NAME.key()}" "db1"
@ -71,8 +71,8 @@ class SessionTest extends AbstractHibernateTest {
}
}
span(3) {
operationName "Transaction.commit"
spanKind INTERNAL
name "Transaction.commit"
kind INTERNAL
childOf span(0)
attributes {
}
@ -128,22 +128,22 @@ class SessionTest extends AbstractHibernateTest {
assertTraces(1) {
trace(0, 5) {
span(0) {
operationName "Session"
spanKind INTERNAL
parent()
name "Session"
kind INTERNAL
hasNoParent()
attributes {
}
}
span(1) {
operationName "Session.$methodName $resource"
spanKind INTERNAL
name "Session.$methodName $resource"
kind INTERNAL
childOf span(0)
attributes {
}
}
span(2) {
operationName ~/^select /
spanKind CLIENT
name ~/^select /
kind CLIENT
childOf span(1)
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "h2"
@ -154,14 +154,14 @@ class SessionTest extends AbstractHibernateTest {
}
}
span(3) {
operationName "Transaction.commit"
spanKind INTERNAL
name "Transaction.commit"
kind INTERNAL
childOf span(0)
attributes {
}
}
span(4) {
spanKind CLIENT
kind CLIENT
childOf span(3)
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "h2"
@ -209,22 +209,22 @@ class SessionTest extends AbstractHibernateTest {
assertTraces(1) {
trace(0, 3) {
span(0) {
operationName "Session"
spanKind INTERNAL
parent()
name "Session"
kind INTERNAL
hasNoParent()
attributes {
}
}
span(1) {
operationName "Session.replicate"
spanKind INTERNAL
name "Session.replicate"
kind INTERNAL
childOf span(0)
errored(true)
errorEvent(MappingException, "Unknown entity: java.lang.Long")
}
span(2) {
operationName "Transaction.commit"
spanKind INTERNAL
name "Transaction.commit"
kind INTERNAL
childOf span(0)
attributes {
}
@ -254,28 +254,28 @@ class SessionTest extends AbstractHibernateTest {
assertTraces(1) {
trace(0, 4) {
span(0) {
operationName "Session"
spanKind INTERNAL
parent()
name "Session"
kind INTERNAL
hasNoParent()
attributes {
}
}
span(1) {
operationName "Session.$methodName $resource"
spanKind INTERNAL
name "Session.$methodName $resource"
kind INTERNAL
childOf span(0)
attributes {
}
}
span(2) {
operationName "Transaction.commit"
spanKind INTERNAL
name "Transaction.commit"
kind INTERNAL
childOf span(0)
attributes {
}
}
span(3) {
spanKind CLIENT
kind CLIENT
childOf span(2)
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "h2"
@ -333,21 +333,21 @@ class SessionTest extends AbstractHibernateTest {
assertTraces(1) {
trace(0, 4) {
span(0) {
operationName "Session"
spanKind INTERNAL
parent()
name "Session"
kind INTERNAL
hasNoParent()
attributes {
}
}
span(1) {
operationName resource
spanKind INTERNAL
name resource
kind INTERNAL
childOf span(0)
attributes {
}
}
span(2) {
spanKind CLIENT
kind CLIENT
childOf span(1)
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "h2"
@ -358,8 +358,8 @@ class SessionTest extends AbstractHibernateTest {
}
}
span(3) {
operationName "Transaction.commit"
spanKind INTERNAL
name "Transaction.commit"
kind INTERNAL
childOf span(0)
attributes {
}
@ -400,41 +400,41 @@ class SessionTest extends AbstractHibernateTest {
assertTraces(1) {
trace(0, 12) {
span(0) {
operationName "overlapping Sessions"
name "overlapping Sessions"
attributes {
}
}
span(1) {
operationName "Session"
spanKind INTERNAL
name "Session"
kind INTERNAL
childOf span(0)
attributes {
}
}
span(2) {
operationName "Session.save Value"
spanKind INTERNAL
name "Session.save Value"
kind INTERNAL
childOf span(1)
attributes {
}
}
span(3) {
operationName "Session.delete Value"
spanKind INTERNAL
name "Session.delete Value"
kind INTERNAL
childOf span(1)
attributes {
}
}
span(4) {
operationName "Transaction.commit"
spanKind INTERNAL
name "Transaction.commit"
kind INTERNAL
childOf span(1)
attributes {
}
}
span(5) {
operationName ~/^insert /
spanKind CLIENT
name ~/^insert /
kind CLIENT
childOf span(4)
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "h2"
@ -445,8 +445,8 @@ class SessionTest extends AbstractHibernateTest {
}
}
span(6) {
operationName ~/^delete /
spanKind CLIENT
name ~/^delete /
kind CLIENT
childOf span(4)
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "h2"
@ -457,22 +457,22 @@ class SessionTest extends AbstractHibernateTest {
}
}
span(7) {
operationName "Session"
spanKind INTERNAL
name "Session"
kind INTERNAL
childOf span(0)
attributes {
}
}
span(8) {
operationName "Session.insert Value"
spanKind INTERNAL
name "Session.insert Value"
kind INTERNAL
childOf span(7)
attributes {
}
}
span(9) {
operationName ~/^insert /
spanKind CLIENT
name ~/^insert /
kind CLIENT
childOf span(8)
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "h2"
@ -483,15 +483,15 @@ class SessionTest extends AbstractHibernateTest {
}
}
span(10) {
operationName "Session"
spanKind INTERNAL
name "Session"
kind INTERNAL
childOf span(0)
attributes {
}
}
span(11) {
operationName "Session.save Value"
spanKind INTERNAL
name "Session.save Value"
kind INTERNAL
childOf span(10)
attributes {
}

View File

@ -71,22 +71,22 @@ class ProcedureCallTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 4) {
span(0) {
operationName "Session"
spanKind INTERNAL
parent()
name "Session"
kind INTERNAL
hasNoParent()
attributes {
}
}
span(1) {
operationName "ProcedureCall.getOutputs TEST_PROC"
spanKind INTERNAL
name "ProcedureCall.getOutputs TEST_PROC"
kind INTERNAL
childOf span(0)
attributes {
}
}
span(2) {
operationName "{call TEST_PROC()}"
spanKind CLIENT
name "{call TEST_PROC()}"
kind CLIENT
childOf span(1)
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "hsqldb"
@ -97,8 +97,8 @@ class ProcedureCallTest extends AgentTestRunner {
}
}
span(3) {
spanKind INTERNAL
operationName "Transaction.commit"
kind INTERNAL
name "Transaction.commit"
childOf span(0)
attributes {
}
@ -129,22 +129,22 @@ class ProcedureCallTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 3) {
span(0) {
operationName "Session"
spanKind INTERNAL
parent()
name "Session"
kind INTERNAL
hasNoParent()
attributes {
}
}
span(1) {
operationName "ProcedureCall.getOutputs TEST_PROC"
spanKind INTERNAL
name "ProcedureCall.getOutputs TEST_PROC"
kind INTERNAL
childOf span(0)
errored(true)
errorEvent(SQLGrammarException, "could not prepare statement")
}
span(2) {
operationName "Transaction.commit"
spanKind INTERNAL
name "Transaction.commit"
kind INTERNAL
childOf span(0)
attributes {
}

View File

@ -35,8 +35,8 @@ class SpringJpaTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "select customer0_.id as id1_0_, customer0_.firstName as firstNam2_0_, customer0_.lastName as lastName3_0_ from Customer customer0_"
spanKind CLIENT
name "select customer0_.id as id1_0_, customer0_.firstName as firstNam2_0_, customer0_.lastName as lastName3_0_ from Customer customer0_"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "hsqldb"
"${SemanticAttributes.DB_NAME.key()}" "test"
@ -61,8 +61,8 @@ class SpringJpaTest extends AgentTestRunner {
if (extraTrace) {
trace(0, 1) {
span(0) {
operationName "call next value for hibernate_sequence"
spanKind CLIENT
name "call next value for hibernate_sequence"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "hsqldb"
"${SemanticAttributes.DB_NAME.key()}" "test"
@ -75,8 +75,8 @@ class SpringJpaTest extends AgentTestRunner {
}
trace(extraTrace ? 1 : 0, 1) {
span(0) {
operationName ~/insert into Customer \(.*\) values \(.*, \?, \?\)/
spanKind CLIENT
name ~/insert into Customer \(.*\) values \(.*, \?, \?\)/
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "hsqldb"
"${SemanticAttributes.DB_NAME.key()}" "test"
@ -98,8 +98,8 @@ class SpringJpaTest extends AgentTestRunner {
assertTraces(2) {
trace(0, 1) {
span(0) {
operationName "select customer0_.id as id1_0_0_, customer0_.firstName as firstNam2_0_0_, customer0_.lastName as lastName3_0_0_ from Customer customer0_ where customer0_.id=?"
spanKind CLIENT
name "select customer0_.id as id1_0_0_, customer0_.firstName as firstNam2_0_0_, customer0_.lastName as lastName3_0_0_ from Customer customer0_ where customer0_.id=?"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "hsqldb"
"${SemanticAttributes.DB_NAME.key()}" "test"
@ -111,8 +111,8 @@ class SpringJpaTest extends AgentTestRunner {
}
trace(1, 1) {
span(0) {
operationName "update Customer set firstName=?, lastName=? where id=?"
spanKind CLIENT
name "update Customer set firstName=?, lastName=? where id=?"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "hsqldb"
"${SemanticAttributes.DB_NAME.key()}" "test"
@ -134,8 +134,8 @@ class SpringJpaTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "select customer0_.id as id1_0_, customer0_.firstName as firstNam2_0_, customer0_.lastName as lastName3_0_ from Customer customer0_ where customer0_.lastName=?"
spanKind CLIENT
name "select customer0_.id as id1_0_, customer0_.firstName as firstNam2_0_, customer0_.lastName as lastName3_0_ from Customer customer0_ where customer0_.lastName=?"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "hsqldb"
"${SemanticAttributes.DB_NAME.key()}" "test"
@ -155,8 +155,8 @@ class SpringJpaTest extends AgentTestRunner {
assertTraces(2) {
trace(0, 1) {
span(0) {
operationName "select customer0_.id as id1_0_0_, customer0_.firstName as firstNam2_0_0_, customer0_.lastName as lastName3_0_0_ from Customer customer0_ where customer0_.id=?"
spanKind CLIENT
name "select customer0_.id as id1_0_0_, customer0_.firstName as firstNam2_0_0_, customer0_.lastName as lastName3_0_0_ from Customer customer0_ where customer0_.id=?"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "hsqldb"
"${SemanticAttributes.DB_NAME.key()}" "test"
@ -168,8 +168,8 @@ class SpringJpaTest extends AgentTestRunner {
}
trace(1, 1) {
span(0) {
operationName "delete from Customer where id=?"
spanKind CLIENT
name "delete from Customer where id=?"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "hsqldb"
"${SemanticAttributes.DB_NAME.key()}" "test"

View File

@ -78,15 +78,15 @@ class HttpUrlConnectionTest extends HttpClientTest {
server.distributedRequestTrace(it, 1, traces[2][1])
trace(2, 3) {
span(0) {
operationName "someTrace"
parent()
name "someTrace"
hasNoParent()
errored false
attributes {
}
}
span(1) {
operationName expectedOperationName("GET")
spanKind CLIENT
name expectedOperationName("GET")
kind CLIENT
childOf span(0)
errored false
attributes {
@ -99,8 +99,8 @@ class HttpUrlConnectionTest extends HttpClientTest {
}
}
span(2) {
operationName expectedOperationName("GET")
spanKind CLIENT
name expectedOperationName("GET")
kind CLIENT
childOf span(0)
errored false
attributes {
@ -152,15 +152,15 @@ class HttpUrlConnectionTest extends HttpClientTest {
assertTraces(1) {
trace(0, 3) {
span(0) {
operationName "someTrace"
parent()
name "someTrace"
hasNoParent()
errored false
attributes {
}
}
span(1) {
operationName expectedOperationName("GET")
spanKind CLIENT
name expectedOperationName("GET")
kind CLIENT
childOf span(0)
errored false
attributes {
@ -173,8 +173,8 @@ class HttpUrlConnectionTest extends HttpClientTest {
}
}
span(2) {
operationName expectedOperationName("GET")
spanKind CLIENT
name expectedOperationName("GET")
kind CLIENT
childOf span(0)
errored false
attributes {
@ -210,15 +210,15 @@ class HttpUrlConnectionTest extends HttpClientTest {
assertTraces(1) {
trace(0, 2) {
span(0) {
operationName "someTrace"
parent()
name "someTrace"
hasNoParent()
errored false
attributes {
}
}
span(1) {
operationName expectedOperationName("GET")
spanKind CLIENT
name expectedOperationName("GET")
kind CLIENT
childOf span(0)
errored false
attributes {
@ -269,15 +269,15 @@ class HttpUrlConnectionTest extends HttpClientTest {
server.distributedRequestTrace(it, 0, traces[1][1])
trace(1, 2) {
span(0) {
operationName "someTrace"
parent()
name "someTrace"
hasNoParent()
errored false
attributes {
}
}
span(1) {
operationName expectedOperationName("POST")
spanKind CLIENT
name expectedOperationName("POST")
kind CLIENT
childOf span(0)
errored false
attributes {

View File

@ -30,14 +30,14 @@ class UrlConnectionTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 2) {
span(0) {
operationName "someTrace"
parent()
name "someTrace"
hasNoParent()
errored true
errorEvent ConnectException, String
}
span(1) {
operationName expectedOperationName("GET")
spanKind CLIENT
name expectedOperationName("GET")
kind CLIENT
childOf span(0)
errored true
errorEvent ConnectException, String

View File

@ -71,14 +71,14 @@ class HystrixObservableChainTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 5) {
span(0) {
operationName "parent"
parent()
name "parent"
hasNoParent()
errored false
attributes {
}
}
span(1) {
operationName "ExampleGroup.HystrixObservableChainTest\$1.execute"
name "ExampleGroup.HystrixObservableChainTest\$1.execute"
childOf span(0)
errored false
attributes {
@ -88,14 +88,14 @@ class HystrixObservableChainTest extends AgentTestRunner {
}
}
span(2) {
operationName "tracedMethod"
name "tracedMethod"
childOf span(1)
errored false
attributes {
}
}
span(3) {
operationName "OtherGroup.HystrixObservableChainTest\$2.execute"
name "OtherGroup.HystrixObservableChainTest\$2.execute"
childOf span(1)
errored false
attributes {
@ -105,7 +105,7 @@ class HystrixObservableChainTest extends AgentTestRunner {
}
}
span(4) {
operationName "anotherTracedMethod"
name "anotherTracedMethod"
childOf span(3)
errored false
attributes {

View File

@ -63,14 +63,14 @@ class HystrixObservableTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 3) {
span(0) {
operationName "parent"
parent()
name "parent"
hasNoParent()
errored false
attributes {
}
}
span(1) {
operationName "ExampleGroup.HystrixObservableTest\$1.execute"
name "ExampleGroup.HystrixObservableTest\$1.execute"
childOf span(0)
errored false
attributes {
@ -80,7 +80,7 @@ class HystrixObservableTest extends AgentTestRunner {
}
}
span(2) {
operationName "tracedMethod"
name "tracedMethod"
childOf span(1)
errored false
attributes {
@ -158,14 +158,14 @@ class HystrixObservableTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 3) {
span(0) {
operationName "parent"
parent()
name "parent"
hasNoParent()
errored false
attributes {
}
}
span(1) {
operationName "ExampleGroup.HystrixObservableTest\$2.execute"
name "ExampleGroup.HystrixObservableTest\$2.execute"
childOf span(0)
errored true
errorEvent(IllegalArgumentException)
@ -176,7 +176,7 @@ class HystrixObservableTest extends AgentTestRunner {
}
}
span(2) {
operationName "ExampleGroup.HystrixObservableTest\$2.fallback"
name "ExampleGroup.HystrixObservableTest\$2.fallback"
childOf span(1)
errored false
attributes {
@ -256,13 +256,13 @@ class HystrixObservableTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 3) {
span(0) {
operationName "parent"
parent()
name "parent"
hasNoParent()
errored true
errorEvent(HystrixRuntimeException, "HystrixObservableTest\$3 failed and no fallback available.")
}
span(1) {
operationName "FailingGroup.HystrixObservableTest\$3.execute"
name "FailingGroup.HystrixObservableTest\$3.execute"
childOf span(0)
errored true
errorEvent(IllegalArgumentException)
@ -273,7 +273,7 @@ class HystrixObservableTest extends AgentTestRunner {
}
}
span(2) {
operationName "FailingGroup.HystrixObservableTest\$3.fallback"
name "FailingGroup.HystrixObservableTest\$3.fallback"
childOf span(1)
errored true
errorEvent(UnsupportedOperationException, "No fallback available.")

View File

@ -49,14 +49,14 @@ class HystrixTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 3) {
span(0) {
operationName "parent"
parent()
name "parent"
hasNoParent()
errored false
attributes {
}
}
span(1) {
operationName "ExampleGroup.HystrixTest\$1.execute"
name "ExampleGroup.HystrixTest\$1.execute"
childOf span(0)
errored false
attributes {
@ -66,7 +66,7 @@ class HystrixTest extends AgentTestRunner {
}
}
span(2) {
operationName "tracedMethod"
name "tracedMethod"
childOf span(1)
errored false
attributes {
@ -112,14 +112,14 @@ class HystrixTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 3) {
span(0) {
operationName "parent"
parent()
name "parent"
hasNoParent()
errored false
attributes {
}
}
span(1) {
operationName "ExampleGroup.HystrixTest\$2.execute"
name "ExampleGroup.HystrixTest\$2.execute"
childOf span(0)
errored true
errorEvent(IllegalArgumentException)
@ -130,7 +130,7 @@ class HystrixTest extends AgentTestRunner {
}
}
span(2) {
operationName "ExampleGroup.HystrixTest\$2.fallback"
name "ExampleGroup.HystrixTest\$2.fallback"
childOf span(1)
errored false
attributes {

View File

@ -64,9 +64,9 @@ abstract class JdkHttpClientTest extends HttpClientTest {
assertTraces(1) {
trace(0, 1 + extraClientSpans()) {
span(0) {
parent()
operationName expectedOperationName(method)
spanKind CLIENT
hasNoParent()
name expectedOperationName(method)
kind CLIENT
errored false
attributes {
"${SemanticAttributes.NET_TRANSPORT.key()}" "IP.TCP"

View File

@ -56,9 +56,9 @@ abstract class JaxRsClientTest extends HttpClientTest {
assertTraces(1) {
trace(0, 2) {
span(0) {
parent()
operationName expectedOperationName(method)
spanKind CLIENT
hasNoParent()
name expectedOperationName(method)
kind CLIENT
errored true
attributes {
"${SemanticAttributes.NET_TRANSPORT.key()}" "IP.TCP"

View File

@ -32,7 +32,7 @@ class JaxRsAnnotations1InstrumentationTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "POST /a"
name "POST /a"
attributes {
}
}
@ -51,13 +51,13 @@ class JaxRsAnnotations1InstrumentationTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 2) {
span(0) {
operationName name
parent()
name paramName
hasNoParent()
attributes {
}
}
span(1) {
operationName "${className}.call"
name "${className}.call"
childOf span(0)
attributes {
}
@ -78,7 +78,7 @@ class JaxRsAnnotations1InstrumentationTest extends AgentTestRunner {
spanNames.get(obj.class).size() == 1
where:
name | obj
paramName | obj
"/a" | new Jax() {
@Path("/a")
void call() {
@ -145,7 +145,7 @@ class JaxRsAnnotations1InstrumentationTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "test"
name "test"
attributes {
}
}

View File

@ -34,14 +34,14 @@ class JerseyTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 2) {
span(0) {
operationName expectedSpanName
name expectedSpanName
attributes {
}
}
span(1) {
childOf span(0)
operationName controllerName
name controllerName
attributes {
}
}
@ -69,14 +69,14 @@ class JerseyTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 2) {
span(0) {
operationName expectedSpanName
name expectedSpanName
attributes {
}
}
span(1) {
childOf span(0)
operationName controller1Name
spanKind INTERNAL
name controller1Name
kind INTERNAL
attributes {
}
}

View File

@ -32,7 +32,7 @@ abstract class JaxRsAnnotationsInstrumentationTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "POST /a"
name "POST /a"
attributes {
}
}
@ -51,13 +51,13 @@ abstract class JaxRsAnnotationsInstrumentationTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 2) {
span(0) {
operationName name
parent()
name paramName
hasNoParent()
attributes {
}
}
span(1) {
operationName "${className}.call"
name "${className}.call"
childOf span(0)
attributes {
}
@ -78,7 +78,7 @@ abstract class JaxRsAnnotationsInstrumentationTest extends AgentTestRunner {
spanNames.get(obj.class).size() == 1
where:
name | obj
paramName | obj
"/a" | new Jax() {
@Path("/a")
void call() {
@ -145,7 +145,7 @@ abstract class JaxRsAnnotationsInstrumentationTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "test"
name "test"
attributes {
}
}

View File

@ -51,13 +51,13 @@ abstract class JaxRsFilterTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 2) {
span(0) {
operationName parentSpanName != null ? parentSpanName : "test.span"
name parentSpanName != null ? parentSpanName : "test.span"
attributes {
}
}
span(1) {
childOf span(0)
operationName controllerName
name controllerName
attributes {
}
}
@ -100,14 +100,14 @@ abstract class JaxRsFilterTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 2) {
span(0) {
operationName parentResourceName
name parentResourceName
attributes {
}
}
span(1) {
childOf span(0)
operationName controller1Name
spanKind INTERNAL
name controller1Name
kind INTERNAL
attributes {
}
}

View File

@ -161,14 +161,14 @@ abstract class JaxRsHttpServerTest<S> extends HttpServerTest<S> {
int statusCode,
String query) {
trace.span(index) {
operationName method + " /" + path
spanKind SERVER
name method + " /" + path
kind SERVER
errored isError
if (parentID != null) {
traceId traceID
parentId parentID
parentSpanId parentID
} else {
parent()
hasNoParent()
}
attributes {
"${SemanticAttributes.NET_PEER_IP.key()}" { it == null || it == "127.0.0.1" } // Optional
@ -204,8 +204,8 @@ abstract class JaxRsHttpServerTest<S> extends HttpServerTest<S> {
boolean isError,
String exceptionMessage = null) {
trace.span(index) {
operationName "JaxRsTestResource.${methodName}"
spanKind INTERNAL
name "JaxRsTestResource.${methodName}"
kind INTERNAL
errored isError
if (isError) {
errorEvent(Exception, exceptionMessage)

View File

@ -186,8 +186,8 @@ class JDBCInstrumentationTest extends AgentTestRunner {
trace(0, 2) {
basicSpan(it, 0, "parent")
span(1) {
operationName JDBCUtils.normalizeSql(query)
spanKind CLIENT
name JDBCUtils.normalizeSql(query)
kind CLIENT
childOf span(0)
errored false
attributes {
@ -242,8 +242,8 @@ class JDBCInstrumentationTest extends AgentTestRunner {
trace(0, 2) {
basicSpan(it, 0, "parent")
span(1) {
operationName JDBCUtils.normalizeSql(query)
spanKind CLIENT
name JDBCUtils.normalizeSql(query)
kind CLIENT
childOf span(0)
errored false
attributes {
@ -290,8 +290,8 @@ class JDBCInstrumentationTest extends AgentTestRunner {
trace(0, 2) {
basicSpan(it, 0, "parent")
span(1) {
operationName JDBCUtils.normalizeSql(query)
spanKind CLIENT
name JDBCUtils.normalizeSql(query)
kind CLIENT
childOf span(0)
errored false
attributes {
@ -339,8 +339,8 @@ class JDBCInstrumentationTest extends AgentTestRunner {
trace(0, 2) {
basicSpan(it, 0, "parent")
span(1) {
operationName JDBCUtils.normalizeSql(query)
spanKind CLIENT
name JDBCUtils.normalizeSql(query)
kind CLIENT
childOf span(0)
errored false
attributes {
@ -388,8 +388,8 @@ class JDBCInstrumentationTest extends AgentTestRunner {
trace(0, 2) {
basicSpan(it, 0, "parent")
span(1) {
operationName JDBCUtils.normalizeSql(query)
spanKind CLIENT
name JDBCUtils.normalizeSql(query)
kind CLIENT
childOf span(0)
errored false
attributes {
@ -440,8 +440,8 @@ class JDBCInstrumentationTest extends AgentTestRunner {
trace(0, 2) {
basicSpan(it, 0, "parent")
span(1) {
operationName JDBCUtils.normalizeSql(query)
spanKind CLIENT
name JDBCUtils.normalizeSql(query)
kind CLIENT
childOf span(0)
errored false
attributes {
@ -504,8 +504,8 @@ class JDBCInstrumentationTest extends AgentTestRunner {
trace(0, 2) {
basicSpan(it, 0, "parent")
span(1) {
operationName JDBCUtils.normalizeSql(query)
spanKind CLIENT
name JDBCUtils.normalizeSql(query)
kind CLIENT
childOf span(0)
errored false
attributes {
@ -564,14 +564,14 @@ class JDBCInstrumentationTest extends AgentTestRunner {
basicSpan(it, 0, "parent")
span(1) {
operationName "${datasource.class.simpleName}.getConnection"
name "${datasource.class.simpleName}.getConnection"
childOf span(0)
attributes {
}
}
if (recursive) {
span(2) {
operationName "${datasource.class.simpleName}.getConnection"
name "${datasource.class.simpleName}.getConnection"
childOf span(1)
attributes {
}
@ -611,8 +611,8 @@ class JDBCInstrumentationTest extends AgentTestRunner {
trace(0, 2) {
basicSpan(it, 0, "parent")
span(1) {
operationName JDBCUtils.normalizeSql(query)
spanKind CLIENT
name JDBCUtils.normalizeSql(query)
kind CLIENT
childOf span(0)
errored false
attributes {
@ -672,8 +672,8 @@ class JDBCInstrumentationTest extends AgentTestRunner {
assertTraces(5) {
trace(0, 1) {
span(0) {
operationName JDBCUtils.normalizeSql(query)
spanKind CLIENT
name JDBCUtils.normalizeSql(query)
kind CLIENT
errored false
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "hsqldb"
@ -688,8 +688,8 @@ class JDBCInstrumentationTest extends AgentTestRunner {
for (int i = 1; i < numQueries; ++i) {
trace(i, 1) {
span(0) {
operationName JDBCUtils.normalizeSql(query)
spanKind CLIENT
name JDBCUtils.normalizeSql(query)
kind CLIENT
errored false
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "hsqldb"

View File

@ -50,8 +50,8 @@ class JedisClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "SET"
spanKind CLIENT
name "SET"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
"${SemanticAttributes.DB_CONNECTION_STRING.key()}" "localhost:$port"
@ -76,8 +76,8 @@ class JedisClientTest extends AgentTestRunner {
assertTraces(2) {
trace(0, 1) {
span(0) {
operationName "SET"
spanKind CLIENT
name "SET"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
"${SemanticAttributes.DB_CONNECTION_STRING.key()}" "localhost:$port"
@ -90,8 +90,8 @@ class JedisClientTest extends AgentTestRunner {
}
trace(1, 1) {
span(0) {
operationName "GET"
spanKind CLIENT
name "GET"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
"${SemanticAttributes.DB_CONNECTION_STRING.key()}" "localhost:$port"
@ -116,8 +116,8 @@ class JedisClientTest extends AgentTestRunner {
assertTraces(2) {
trace(0, 1) {
span(0) {
operationName "SET"
spanKind CLIENT
name "SET"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
"${SemanticAttributes.DB_CONNECTION_STRING.key()}" "localhost:$port"
@ -130,8 +130,8 @@ class JedisClientTest extends AgentTestRunner {
}
trace(1, 1) {
span(0) {
operationName "RANDOMKEY"
spanKind CLIENT
name "RANDOMKEY"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
"${SemanticAttributes.DB_CONNECTION_STRING.key()}" "localhost:$port"

View File

@ -50,8 +50,8 @@ class Jedis30ClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "SET"
spanKind CLIENT
name "SET"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
"${SemanticAttributes.DB_CONNECTION_STRING.key()}" "localhost:$port"
@ -76,8 +76,8 @@ class Jedis30ClientTest extends AgentTestRunner {
assertTraces(2) {
trace(0, 1) {
span(0) {
operationName "SET"
spanKind CLIENT
name "SET"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
"${SemanticAttributes.DB_CONNECTION_STRING.key()}" "localhost:$port"
@ -90,8 +90,8 @@ class Jedis30ClientTest extends AgentTestRunner {
}
trace(1, 1) {
span(0) {
operationName "GET"
spanKind CLIENT
name "GET"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
"${SemanticAttributes.DB_CONNECTION_STRING.key()}" "localhost:$port"
@ -116,8 +116,8 @@ class Jedis30ClientTest extends AgentTestRunner {
assertTraces(2) {
trace(0, 1) {
span(0) {
operationName "SET"
spanKind CLIENT
name "SET"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
"${SemanticAttributes.DB_CONNECTION_STRING.key()}" "localhost:$port"
@ -130,8 +130,8 @@ class Jedis30ClientTest extends AgentTestRunner {
}
trace(1, 1) {
span(0) {
operationName "RANDOMKEY"
spanKind CLIENT
name "RANDOMKEY"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
"${SemanticAttributes.DB_CONNECTION_STRING.key()}" "localhost:$port"

View File

@ -112,17 +112,17 @@ class JettyHandlerTest extends HttpServerTest<Server> {
@Override
void serverSpan(TraceAssert trace, int index, String traceID = null, String parentID = null, String method = "GET", Long responseContentLength = null, ServerEndpoint endpoint = SUCCESS) {
trace.span(index) {
operationName "TestHandler.handle"
spanKind SERVER
name "TestHandler.handle"
kind SERVER
errored endpoint.errored
if (endpoint == EXCEPTION) {
errorEvent(Exception, EXCEPTION.body)
}
if (parentID != null) {
traceId traceID
parentId parentID
parentSpanId parentID
} else {
parent()
hasNoParent()
}
attributes {
"${SemanticAttributes.NET_PEER_IP.key()}" "127.0.0.1"

View File

@ -180,9 +180,9 @@ class JMS2Test extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) { // Consumer trace
span(0) {
parent()
operationName destinationType + "/" + destinationName + " receive"
spanKind CLIENT
hasNoParent()
name destinationType + "/" + destinationName + " receive"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.MESSAGING_DESTINATION_KIND.key()}" destinationType
@ -213,9 +213,9 @@ class JMS2Test extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) { // Consumer trace
span(0) {
parent()
operationName destinationType + "/" + destinationName + " receive"
spanKind CLIENT
hasNoParent()
name destinationType + "/" + destinationName + " receive"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.MESSAGING_DESTINATION_KIND.key()}" destinationType
@ -236,10 +236,10 @@ class JMS2Test extends AgentTestRunner {
static producerSpan(TraceAssert trace, int index, String destinationType, String destinationName) {
trace.span(index) {
operationName destinationType + "/" + destinationName + " send"
spanKind PRODUCER
name destinationType + "/" + destinationName + " send"
kind PRODUCER
errored false
parent()
hasNoParent()
attributes {
"${SemanticAttributes.MESSAGING_DESTINATION_KIND.key()}" destinationType
"${SemanticAttributes.MESSAGING_DESTINATION.key()}" destinationName
@ -252,13 +252,13 @@ class JMS2Test extends AgentTestRunner {
static consumerSpan(TraceAssert trace, int index, String destinationType, String destinationName, String messageId, boolean messageListener, Class origin, Object parentOrLinkedSpan) {
trace.span(index) {
operationName destinationType + "/" + destinationName + " receive"
name destinationType + "/" + destinationName + " receive"
if (messageListener) {
spanKind CONSUMER
kind CONSUMER
childOf((SpanData) parentOrLinkedSpan)
} else {
spanKind CLIENT
parent()
kind CLIENT
hasNoParent()
hasLink((SpanData) parentOrLinkedSpan)
}
errored false

View File

@ -131,9 +131,9 @@ class JMS1Test extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) { // Consumer trace
span(0) {
parent()
operationName destinationType + "/" + destinationName + " receive"
spanKind CLIENT
hasNoParent()
name destinationType + "/" + destinationName + " receive"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.MESSAGING_DESTINATION_KIND.key()}" destinationType
@ -164,9 +164,9 @@ class JMS1Test extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) { // Consumer trace
span(0) {
parent()
operationName destinationType + "/" + destinationName + " receive"
spanKind CLIENT
hasNoParent()
name destinationType + "/" + destinationName + " receive"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.MESSAGING_DESTINATION_KIND.key()}" destinationType
@ -212,9 +212,9 @@ class JMS1Test extends AgentTestRunner {
}
trace(1, 1) {
span(0) {
parent()
operationName destinationType + "/" + destinationName + " receive"
spanKind CLIENT
hasNoParent()
name destinationType + "/" + destinationName + " receive"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.MESSAGING_DESTINATION_KIND.key()}" destinationType
@ -242,10 +242,10 @@ class JMS1Test extends AgentTestRunner {
static producerSpan(TraceAssert trace, int index, String destinationType, String destinationName) {
trace.span(index) {
operationName destinationType + "/" + destinationName + " send"
spanKind PRODUCER
name destinationType + "/" + destinationName + " send"
kind PRODUCER
errored false
parent()
hasNoParent()
attributes {
"${SemanticAttributes.MESSAGING_DESTINATION_KIND.key()}" destinationType
"${SemanticAttributes.MESSAGING_DESTINATION.key()}" destinationName
@ -258,13 +258,13 @@ class JMS1Test extends AgentTestRunner {
static consumerSpan(TraceAssert trace, int index, String destinationType, String destinationName, String messageId, boolean messageListener, Class origin, Object parentOrLinkedSpan) {
trace.span(index) {
operationName destinationType + "/" + destinationName + " receive"
name destinationType + "/" + destinationName + " receive"
if (messageListener) {
spanKind CONSUMER
kind CONSUMER
childOf((SpanData) parentOrLinkedSpan)
} else {
spanKind CLIENT
parent()
kind CLIENT
hasNoParent()
hasLink((SpanData) parentOrLinkedSpan)
}
errored false

View File

@ -93,9 +93,9 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
assertTraces(1) {
trace(0, 3) {
span(0) {
parent()
operationName expectedOperationName()
spanKind SERVER
hasNoParent()
name expectedOperationName()
kind SERVER
errored false
attributes {
"${SemanticAttributes.NET_PEER_IP.key()}" "127.0.0.1"
@ -110,7 +110,7 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
}
span(1) {
childOf span(0)
operationName "Compile /$jspFileName"
name "Compile /$jspFileName"
errored false
attributes {
"servlet.context" "/$jspWebappContext"
@ -120,7 +120,7 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
}
span(2) {
childOf span(0)
operationName "Render /$jspFileName"
name "Render /$jspFileName"
errored false
attributes {
"servlet.context" "/$jspWebappContext"
@ -154,9 +154,9 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
assertTraces(1) {
trace(0, 3) {
span(0) {
parent()
operationName expectedOperationName()
spanKind SERVER
hasNoParent()
name expectedOperationName()
kind SERVER
errored false
attributes {
"${SemanticAttributes.NET_PEER_IP.key()}" "127.0.0.1"
@ -171,7 +171,7 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
}
span(1) {
childOf span(0)
operationName "Compile /getQuery.jsp"
name "Compile /getQuery.jsp"
errored false
attributes {
"servlet.context" "/$jspWebappContext"
@ -181,7 +181,7 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
}
span(2) {
childOf span(0)
operationName "Render /getQuery.jsp"
name "Render /getQuery.jsp"
errored false
attributes {
"servlet.context" "/$jspWebappContext"
@ -212,9 +212,9 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
assertTraces(1) {
trace(0, 3) {
span(0) {
parent()
operationName expectedOperationName()
spanKind SERVER
hasNoParent()
name expectedOperationName()
kind SERVER
errored false
attributes {
"${SemanticAttributes.NET_PEER_IP.key()}" "127.0.0.1"
@ -229,7 +229,7 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
}
span(1) {
childOf span(0)
operationName "Compile /post.jsp"
name "Compile /post.jsp"
errored false
attributes {
"servlet.context" "/$jspWebappContext"
@ -239,7 +239,7 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
}
span(2) {
childOf span(0)
operationName "Render /post.jsp"
name "Render /post.jsp"
errored false
attributes {
"servlet.context" "/$jspWebappContext"
@ -267,9 +267,9 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
assertTraces(1) {
trace(0, 3) {
span(0) {
parent()
operationName expectedOperationName()
spanKind SERVER
hasNoParent()
name expectedOperationName()
kind SERVER
errored true
event(0) {
eventName(SemanticAttributes.EXCEPTION_EVENT_NAME)
@ -296,7 +296,7 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
}
span(1) {
childOf span(0)
operationName "Compile /$jspFileName"
name "Compile /$jspFileName"
errored false
attributes {
"servlet.context" "/$jspWebappContext"
@ -306,7 +306,7 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
}
span(2) {
childOf span(0)
operationName "Render /$jspFileName"
name "Render /$jspFileName"
errored true
event(0) {
eventName(SemanticAttributes.EXCEPTION_EVENT_NAME)
@ -351,9 +351,9 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
assertTraces(1) {
trace(0, 3) {
span(0) {
parent()
operationName expectedOperationName()
spanKind SERVER
hasNoParent()
name expectedOperationName()
kind SERVER
errored false
attributes {
"${SemanticAttributes.NET_PEER_IP.key()}" "127.0.0.1"
@ -368,7 +368,7 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
}
span(1) {
childOf span(0)
operationName "Compile /includes/includeHtml.jsp"
name "Compile /includes/includeHtml.jsp"
errored false
attributes {
"servlet.context" "/$jspWebappContext"
@ -378,7 +378,7 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
}
span(2) {
childOf span(0)
operationName "Render /includes/includeHtml.jsp"
name "Render /includes/includeHtml.jsp"
errored false
attributes {
"servlet.context" "/$jspWebappContext"
@ -405,9 +405,9 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
assertTraces(1) {
trace(0, 7) {
span(0) {
parent()
operationName expectedOperationName()
spanKind SERVER
hasNoParent()
name expectedOperationName()
kind SERVER
errored false
attributes {
"${SemanticAttributes.NET_PEER_IP.key()}" "127.0.0.1"
@ -422,7 +422,7 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
}
span(1) {
childOf span(0)
operationName "Compile /includes/includeMulti.jsp"
name "Compile /includes/includeMulti.jsp"
errored false
attributes {
"servlet.context" "/$jspWebappContext"
@ -432,7 +432,7 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
}
span(2) {
childOf span(0)
operationName "Render /includes/includeMulti.jsp"
name "Render /includes/includeMulti.jsp"
errored false
attributes {
"servlet.context" "/$jspWebappContext"
@ -441,7 +441,7 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
}
span(3) {
childOf span(2)
operationName "Compile /common/javaLoopH2.jsp"
name "Compile /common/javaLoopH2.jsp"
errored false
attributes {
"servlet.context" "/$jspWebappContext"
@ -451,7 +451,7 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
}
span(4) {
childOf span(2)
operationName "Render /common/javaLoopH2.jsp"
name "Render /common/javaLoopH2.jsp"
errored false
attributes {
"servlet.context" "/$jspWebappContext"
@ -460,7 +460,7 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
}
span(5) {
childOf span(2)
operationName "Compile /common/javaLoopH2.jsp"
name "Compile /common/javaLoopH2.jsp"
errored false
attributes {
"servlet.context" "/$jspWebappContext"
@ -470,7 +470,7 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
}
span(6) {
childOf span(2)
operationName "Render /common/javaLoopH2.jsp"
name "Render /common/javaLoopH2.jsp"
errored false
attributes {
"servlet.context" "/$jspWebappContext"
@ -497,9 +497,9 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
assertTraces(1) {
trace(0, 2) {
span(0) {
parent()
operationName expectedOperationName()
spanKind SERVER
hasNoParent()
name expectedOperationName()
kind SERVER
errored true
errorEvent(JasperException, String)
attributes {
@ -515,7 +515,7 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
}
span(1) {
childOf span(0)
operationName "Compile /$jspFileName"
name "Compile /$jspFileName"
errored true
errorEvent(JasperException, String)
attributes {
@ -550,10 +550,10 @@ class JSPInstrumentationBasicTests extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
parent()
hasNoParent()
// serviceName jspWebappContext
operationName expectedOperationName()
spanKind SERVER
name expectedOperationName()
kind SERVER
// FIXME: this is not a great span name for serving static content.
// spanName "GET /$jspWebappContext/$staticFile"
errored false

View File

@ -91,9 +91,9 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
assertTraces(1) {
trace(0, 5) {
span(0) {
parent()
operationName expectedOperationName()
spanKind SERVER
hasNoParent()
name expectedOperationName()
kind SERVER
errored false
attributes {
"${SemanticAttributes.NET_PEER_IP.key()}" "127.0.0.1"
@ -108,7 +108,7 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
}
span(1) {
childOf span(0)
operationName "Compile /$forwardFromFileName"
name "Compile /$forwardFromFileName"
errored false
attributes {
"servlet.context" "/$jspWebappContext"
@ -118,7 +118,7 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
}
span(2) {
childOf span(0)
operationName "Render /$forwardFromFileName"
name "Render /$forwardFromFileName"
errored false
attributes {
"servlet.context" "/$jspWebappContext"
@ -127,7 +127,7 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
}
span(3) {
childOf span(2)
operationName "Compile /$forwardDestFileName"
name "Compile /$forwardDestFileName"
errored false
attributes {
"servlet.context" "/$jspWebappContext"
@ -137,7 +137,7 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
}
span(4) {
childOf span(2)
operationName "Render /$forwardDestFileName"
name "Render /$forwardDestFileName"
errored false
attributes {
"servlet.context" "/$jspWebappContext"
@ -170,9 +170,9 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
assertTraces(1) {
trace(0, 3) {
span(0) {
parent()
operationName expectedOperationName()
spanKind SERVER
hasNoParent()
name expectedOperationName()
kind SERVER
errored false
attributes {
"${SemanticAttributes.NET_PEER_IP.key()}" "127.0.0.1"
@ -187,7 +187,7 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
}
span(1) {
childOf span(0)
operationName "Compile /forwards/forwardToHtml.jsp"
name "Compile /forwards/forwardToHtml.jsp"
errored false
attributes {
"servlet.context" "/$jspWebappContext"
@ -197,7 +197,7 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
}
span(2) {
childOf span(0)
operationName "Render /forwards/forwardToHtml.jsp"
name "Render /forwards/forwardToHtml.jsp"
errored false
attributes {
"servlet.context" "/$jspWebappContext"
@ -224,9 +224,9 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
assertTraces(1) {
trace(0, 9) {
span(0) {
parent()
operationName expectedOperationName()
spanKind SERVER
hasNoParent()
name expectedOperationName()
kind SERVER
errored false
attributes {
"${SemanticAttributes.NET_PEER_IP.key()}" "127.0.0.1"
@ -241,7 +241,7 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
}
span(1) {
childOf span(0)
operationName "Compile /forwards/forwardToIncludeMulti.jsp"
name "Compile /forwards/forwardToIncludeMulti.jsp"
errored false
attributes {
"servlet.context" "/$jspWebappContext"
@ -251,7 +251,7 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
}
span(2) {
childOf span(0)
operationName "Render /forwards/forwardToIncludeMulti.jsp"
name "Render /forwards/forwardToIncludeMulti.jsp"
errored false
attributes {
"servlet.context" "/$jspWebappContext"
@ -260,7 +260,7 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
}
span(3) {
childOf span(2)
operationName "Compile /includes/includeMulti.jsp"
name "Compile /includes/includeMulti.jsp"
errored false
attributes {
"servlet.context" "/$jspWebappContext"
@ -270,7 +270,7 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
}
span(4) {
childOf span(2)
operationName "Render /includes/includeMulti.jsp"
name "Render /includes/includeMulti.jsp"
errored false
attributes {
"servlet.context" "/$jspWebappContext"
@ -280,7 +280,7 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
}
span(5) {
childOf span(4)
operationName "Compile /common/javaLoopH2.jsp"
name "Compile /common/javaLoopH2.jsp"
errored false
attributes {
"servlet.context" "/$jspWebappContext"
@ -290,7 +290,7 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
}
span(6) {
childOf span(4)
operationName "Render /common/javaLoopH2.jsp"
name "Render /common/javaLoopH2.jsp"
errored false
attributes {
"servlet.context" "/$jspWebappContext"
@ -300,7 +300,7 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
}
span(7) {
childOf span(4)
operationName "Compile /common/javaLoopH2.jsp"
name "Compile /common/javaLoopH2.jsp"
errored false
attributes {
"servlet.context" "/$jspWebappContext"
@ -310,7 +310,7 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
}
span(8) {
childOf span(4)
operationName "Render /common/javaLoopH2.jsp"
name "Render /common/javaLoopH2.jsp"
errored false
attributes {
"servlet.context" "/$jspWebappContext"
@ -338,9 +338,9 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
assertTraces(1) {
trace(0, 7) {
span(0) {
parent()
operationName expectedOperationName()
spanKind SERVER
hasNoParent()
name expectedOperationName()
kind SERVER
errored false
attributes {
"${SemanticAttributes.NET_PEER_IP.key()}" "127.0.0.1"
@ -355,7 +355,7 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
}
span(1) {
childOf span(0)
operationName "Compile /forwards/forwardToJspForward.jsp"
name "Compile /forwards/forwardToJspForward.jsp"
errored false
attributes {
"servlet.context" "/$jspWebappContext"
@ -365,7 +365,7 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
}
span(2) {
childOf span(0)
operationName "Render /forwards/forwardToJspForward.jsp"
name "Render /forwards/forwardToJspForward.jsp"
errored false
attributes {
"servlet.context" "/$jspWebappContext"
@ -374,7 +374,7 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
}
span(3) {
childOf span(2)
operationName "Compile /forwards/forwardToSimpleJava.jsp"
name "Compile /forwards/forwardToSimpleJava.jsp"
errored false
attributes {
"servlet.context" "/$jspWebappContext"
@ -384,7 +384,7 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
}
span(4) {
childOf span(2)
operationName "Render /forwards/forwardToSimpleJava.jsp"
name "Render /forwards/forwardToSimpleJava.jsp"
errored false
attributes {
"servlet.context" "/$jspWebappContext"
@ -394,7 +394,7 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
}
span(5) {
childOf span(4)
operationName "Compile /common/loop.jsp"
name "Compile /common/loop.jsp"
errored false
attributes {
"servlet.context" "/$jspWebappContext"
@ -404,7 +404,7 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
}
span(6) {
childOf span(4)
operationName "Render /common/loop.jsp"
name "Render /common/loop.jsp"
errored false
attributes {
"servlet.context" "/$jspWebappContext"
@ -432,9 +432,9 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
assertTraces(1) {
trace(0, 4) {
span(0) {
parent()
operationName expectedOperationName()
spanKind SERVER
hasNoParent()
name expectedOperationName()
kind SERVER
errored true
errorEvent(JasperException, String)
attributes {
@ -450,7 +450,7 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
}
span(1) {
childOf span(0)
operationName "Compile /forwards/forwardToCompileError.jsp"
name "Compile /forwards/forwardToCompileError.jsp"
errored false
attributes {
"servlet.context" "/$jspWebappContext"
@ -460,7 +460,7 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
}
span(2) {
childOf span(0)
operationName "Render /forwards/forwardToCompileError.jsp"
name "Render /forwards/forwardToCompileError.jsp"
errored true
errorEvent(JasperException, String)
attributes {
@ -470,7 +470,7 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
}
span(3) {
childOf span(2)
operationName "Compile /compileError.jsp"
name "Compile /compileError.jsp"
errored true
errorEvent(JasperException, String)
attributes {
@ -499,9 +499,9 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
assertTraces(1) {
trace(0, 3) {
span(0) {
parent()
operationName expectedOperationName()
spanKind SERVER
hasNoParent()
name expectedOperationName()
kind SERVER
errored true
attributes {
"${SemanticAttributes.NET_PEER_IP.key()}" "127.0.0.1"
@ -516,7 +516,7 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
}
span(1) {
childOf span(0)
operationName "Compile /forwards/forwardToNonExistent.jsp"
name "Compile /forwards/forwardToNonExistent.jsp"
errored false
attributes {
"servlet.context" "/$jspWebappContext"
@ -526,7 +526,7 @@ class JSPInstrumentationForwardTests extends AgentTestRunner {
}
span(2) {
childOf span(0)
operationName "Render /forwards/forwardToNonExistent.jsp"
name "Render /forwards/forwardToNonExistent.jsp"
errored false
attributes {
"servlet.context" "/$jspWebappContext"

View File

@ -94,16 +94,16 @@ class KafkaClientTest extends AgentTestRunner {
trace(0, 4) {
basicSpan(it, 0, "parent")
span(1) {
operationName SHARED_TOPIC
spanKind PRODUCER
name SHARED_TOPIC
kind PRODUCER
errored false
childOf span(0)
attributes {
}
}
span(2) {
operationName SHARED_TOPIC
spanKind CONSUMER
name SHARED_TOPIC
kind CONSUMER
errored false
childOf span(1)
attributes {
@ -176,16 +176,16 @@ class KafkaClientTest extends AgentTestRunner {
trace(0, 4) {
basicSpan(it, 0, "parent")
span(1) {
operationName SHARED_TOPIC
spanKind PRODUCER
name SHARED_TOPIC
kind PRODUCER
errored false
childOf span(0)
attributes {
}
}
span(2) {
operationName SHARED_TOPIC
spanKind CONSUMER
name SHARED_TOPIC
kind CONSUMER
errored false
childOf span(1)
attributes {
@ -251,18 +251,18 @@ class KafkaClientTest extends AgentTestRunner {
trace(0, 2) {
// PRODUCER span 0
span(0) {
operationName SHARED_TOPIC
spanKind PRODUCER
name SHARED_TOPIC
kind PRODUCER
errored false
parent()
hasNoParent()
attributes {
"tombstone" true
}
}
// CONSUMER span 0
span(1) {
operationName SHARED_TOPIC
spanKind CONSUMER
name SHARED_TOPIC
kind CONSUMER
errored false
childOf span(0)
attributes {
@ -318,17 +318,17 @@ class KafkaClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 2) {
span(0) {
operationName SHARED_TOPIC
spanKind PRODUCER
name SHARED_TOPIC
kind PRODUCER
errored false
parent()
hasNoParent()
attributes {
"partition" { it >= 0 }
}
}
span(1) {
operationName SHARED_TOPIC
spanKind CONSUMER
name SHARED_TOPIC
kind CONSUMER
errored false
childOf span(0)
attributes {
@ -415,10 +415,10 @@ class KafkaClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName SHARED_TOPIC
spanKind PRODUCER
name SHARED_TOPIC
kind PRODUCER
errored false
parent()
hasNoParent()
attributes {
}
}
@ -437,16 +437,16 @@ class KafkaClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 2) {
span(0) {
operationName SHARED_TOPIC
spanKind PRODUCER
name SHARED_TOPIC
kind PRODUCER
errored false
parent()
hasNoParent()
attributes {
}
}
span(1) {
operationName SHARED_TOPIC
spanKind CONSUMER
name SHARED_TOPIC
kind CONSUMER
errored false
childOf span(0)
attributes {
@ -471,16 +471,16 @@ class KafkaClientTest extends AgentTestRunner {
assertTraces(2) {
trace(0, 2) {
span(0) {
operationName SHARED_TOPIC
spanKind PRODUCER
name SHARED_TOPIC
kind PRODUCER
errored false
parent()
hasNoParent()
attributes {
}
}
span(1) {
operationName SHARED_TOPIC
spanKind CONSUMER
name SHARED_TOPIC
kind CONSUMER
errored false
childOf span(0)
attributes {
@ -492,10 +492,10 @@ class KafkaClientTest extends AgentTestRunner {
}
trace(1, 1) {
span(0) {
operationName SHARED_TOPIC
spanKind CONSUMER
name SHARED_TOPIC
kind CONSUMER
errored false
parent()
hasNoParent()
attributes {
"partition" { it >= 0 }
"offset" 0

View File

@ -126,17 +126,17 @@ class KafkaStreamsTest extends AgentTestRunner {
trace(0, 5) {
// PRODUCER span 0
span(0) {
operationName STREAM_PENDING
spanKind PRODUCER
name STREAM_PENDING
kind PRODUCER
errored false
parent()
hasNoParent()
attributes {
}
}
// CONSUMER span 0
span(1) {
operationName STREAM_PENDING
spanKind CONSUMER
name STREAM_PENDING
kind CONSUMER
errored false
childOf span(0)
attributes {
@ -147,8 +147,8 @@ class KafkaStreamsTest extends AgentTestRunner {
}
// STREAMING span 1
span(2) {
operationName STREAM_PENDING
spanKind CONSUMER
name STREAM_PENDING
kind CONSUMER
errored false
childOf span(0)
attributes {
@ -159,8 +159,8 @@ class KafkaStreamsTest extends AgentTestRunner {
}
// STREAMING span 0
span(3) {
operationName STREAM_PROCESSED
spanKind PRODUCER
name STREAM_PROCESSED
kind PRODUCER
errored false
childOf span(2)
attributes {
@ -168,8 +168,8 @@ class KafkaStreamsTest extends AgentTestRunner {
}
// CONSUMER span 0
span(4) {
operationName STREAM_PROCESSED
spanKind CONSUMER
name STREAM_PROCESSED
kind CONSUMER
errored false
childOf span(3)
attributes {

View File

@ -29,7 +29,7 @@ class KotlinCoroutineInstrumentationTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 7) {
span(0) {
operationName "parent"
name "parent"
attributes {
}
}
@ -63,7 +63,7 @@ class KotlinCoroutineInstrumentationTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 2) {
span(0) {
operationName "parent"
name "parent"
attributes {
}
}
@ -90,7 +90,7 @@ class KotlinCoroutineInstrumentationTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 2) {
span(0) {
operationName "parent"
name "parent"
attributes {
}
}
@ -117,7 +117,7 @@ class KotlinCoroutineInstrumentationTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 5) {
span(0) {
operationName "parent"
name "parent"
attributes {
}
}
@ -159,7 +159,7 @@ class KotlinCoroutineInstrumentationTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 4) {
span(0) {
operationName "parent"
name "parent"
attributes {
}
}
@ -211,10 +211,10 @@ class KotlinCoroutineInstrumentationTest extends AgentTestRunner {
a = span.name.matches("a")
iter = span.getAttributes().get(AttributesKeys.longKey("iter"))
(a ? seenItersA : seenItersB).add(iter)
operationName(a ? "a" : "b")
name(a ? "a" : "b")
}
span(1) {
operationName(a ? "a2" : "b2")
name(a ? "a2" : "b2")
childOf(span(0))
assert span.getAttributes().get(AttributesKeys.longKey("iter")) == iter

View File

@ -115,8 +115,8 @@ class LettuceAsyncClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "CONNECT"
spanKind CLIENT
name "CONNECT"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.NET_PEER_NAME.key()}" HOST
@ -148,8 +148,8 @@ class LettuceAsyncClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "CONNECT"
spanKind CLIENT
name "CONNECT"
kind CLIENT
errored true
errorEvent RedisConnectionException, String
attributes {
@ -174,8 +174,8 @@ class LettuceAsyncClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "SET"
spanKind CLIENT
name "SET"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
@ -207,8 +207,8 @@ class LettuceAsyncClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "GET"
spanKind CLIENT
name "GET"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
@ -254,8 +254,8 @@ class LettuceAsyncClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "GET"
spanKind CLIENT
name "GET"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
@ -287,8 +287,8 @@ class LettuceAsyncClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "RANDOMKEY"
spanKind CLIENT
name "RANDOMKEY"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
@ -339,8 +339,8 @@ class LettuceAsyncClientTest extends AgentTestRunner {
assertTraces(2) {
trace(0, 1) {
span(0) {
operationName "HMSET"
spanKind CLIENT
name "HMSET"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
@ -350,8 +350,8 @@ class LettuceAsyncClientTest extends AgentTestRunner {
}
trace(1, 1) {
span(0) {
operationName "HGETALL"
spanKind CLIENT
name "HGETALL"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
@ -391,8 +391,8 @@ class LettuceAsyncClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "DEL"
spanKind CLIENT
name "DEL"
kind CLIENT
errored true
errorEvent(IllegalStateException, "TestException")
attributes {
@ -427,8 +427,8 @@ class LettuceAsyncClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "SADD"
spanKind CLIENT
name "SADD"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
@ -448,8 +448,8 @@ class LettuceAsyncClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "DEBUG"
spanKind CLIENT
name "DEBUG"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
@ -469,8 +469,8 @@ class LettuceAsyncClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "SHUTDOWN"
spanKind CLIENT
name "SHUTDOWN"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"

View File

@ -97,8 +97,8 @@ class LettuceSyncClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "CONNECT"
spanKind CLIENT
name "CONNECT"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.NET_PEER_NAME.key()}" HOST
@ -128,8 +128,8 @@ class LettuceSyncClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "CONNECT"
spanKind CLIENT
name "CONNECT"
kind CLIENT
errored true
errorEvent RedisConnectionException, String
attributes {
@ -153,8 +153,8 @@ class LettuceSyncClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "SET"
spanKind CLIENT
name "SET"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
@ -174,8 +174,8 @@ class LettuceSyncClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "GET"
spanKind CLIENT
name "GET"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
@ -195,8 +195,8 @@ class LettuceSyncClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "GET"
spanKind CLIENT
name "GET"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
@ -216,8 +216,8 @@ class LettuceSyncClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "RANDOMKEY"
spanKind CLIENT
name "RANDOMKEY"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
@ -237,8 +237,8 @@ class LettuceSyncClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "LPUSH"
spanKind CLIENT
name "LPUSH"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
@ -258,8 +258,8 @@ class LettuceSyncClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "HMSET"
spanKind CLIENT
name "HMSET"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
@ -279,8 +279,8 @@ class LettuceSyncClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "HGETALL"
spanKind CLIENT
name "HGETALL"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
@ -299,8 +299,8 @@ class LettuceSyncClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "DEBUG"
spanKind CLIENT
name "DEBUG"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
@ -319,8 +319,8 @@ class LettuceSyncClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "SHUTDOWN"
spanKind CLIENT
name "SHUTDOWN"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"

View File

@ -119,8 +119,8 @@ class LettuceAsyncClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "CONNECT"
spanKind CLIENT
name "CONNECT"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.NET_PEER_NAME.key()}" PEER_NAME
@ -153,8 +153,8 @@ class LettuceAsyncClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "CONNECT"
spanKind CLIENT
name "CONNECT"
kind CLIENT
errored true
errorEvent CompletionException, String
attributes {
@ -179,8 +179,8 @@ class LettuceAsyncClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "SET"
spanKind CLIENT
name "SET"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
@ -212,8 +212,8 @@ class LettuceAsyncClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "GET"
spanKind CLIENT
name "GET"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
@ -259,8 +259,8 @@ class LettuceAsyncClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "GET"
spanKind CLIENT
name "GET"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
@ -292,8 +292,8 @@ class LettuceAsyncClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "RANDOMKEY"
spanKind CLIENT
name "RANDOMKEY"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
@ -343,8 +343,8 @@ class LettuceAsyncClientTest extends AgentTestRunner {
assertTraces(2) {
trace(0, 1) {
span(0) {
operationName "HMSET"
spanKind CLIENT
name "HMSET"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
@ -354,8 +354,8 @@ class LettuceAsyncClientTest extends AgentTestRunner {
}
trace(1, 1) {
span(0) {
operationName "HGETALL"
spanKind CLIENT
name "HGETALL"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
@ -395,8 +395,8 @@ class LettuceAsyncClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "DEL"
spanKind CLIENT
name "DEL"
kind CLIENT
errored true
errorEvent(IllegalStateException, "TestException")
attributes {
@ -431,8 +431,8 @@ class LettuceAsyncClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "SADD"
spanKind CLIENT
name "SADD"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
@ -452,8 +452,8 @@ class LettuceAsyncClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "DEBUG"
spanKind CLIENT
name "DEBUG"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
@ -473,8 +473,8 @@ class LettuceAsyncClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "SHUTDOWN"
spanKind CLIENT
name "SHUTDOWN"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"

View File

@ -95,8 +95,8 @@ class LettuceReactiveClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "SET"
spanKind CLIENT
name "SET"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
@ -119,8 +119,8 @@ class LettuceReactiveClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "GET"
spanKind CLIENT
name "GET"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
@ -151,8 +151,8 @@ class LettuceReactiveClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "GET"
spanKind CLIENT
name "GET"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
@ -181,8 +181,8 @@ class LettuceReactiveClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "RANDOMKEY"
spanKind CLIENT
name "RANDOMKEY"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
@ -201,8 +201,8 @@ class LettuceReactiveClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "COMMAND"
spanKind CLIENT
name "COMMAND"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
@ -222,8 +222,8 @@ class LettuceReactiveClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "COMMAND"
spanKind CLIENT
name "COMMAND"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
@ -256,8 +256,8 @@ class LettuceReactiveClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "DEBUG"
spanKind CLIENT
name "DEBUG"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
@ -276,8 +276,8 @@ class LettuceReactiveClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "SHUTDOWN"
spanKind CLIENT
name "SHUTDOWN"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
@ -300,14 +300,14 @@ class LettuceReactiveClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 3) {
span(0) {
operationName "test-parent"
name "test-parent"
errored false
attributes {
}
}
span(1) {
operationName "SET"
spanKind CLIENT
name "SET"
kind CLIENT
errored false
childOf span(0)
attributes {
@ -316,8 +316,8 @@ class LettuceReactiveClientTest extends AgentTestRunner {
}
}
span(2) {
operationName "GET"
spanKind CLIENT
name "GET"
kind CLIENT
errored false
childOf span(0)
attributes {
@ -341,14 +341,14 @@ class LettuceReactiveClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 3) {
span(0) {
operationName "test-parent"
name "test-parent"
errored false
attributes {
}
}
span(1) {
operationName "SET"
spanKind CLIENT
name "SET"
kind CLIENT
errored false
childOf span(0)
attributes {
@ -357,8 +357,8 @@ class LettuceReactiveClientTest extends AgentTestRunner {
}
}
span(2) {
operationName "GET"
spanKind CLIENT
name "GET"
kind CLIENT
errored false
childOf span(0)
attributes {
@ -383,14 +383,14 @@ class LettuceReactiveClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 3) {
span(0) {
operationName "test-parent"
name "test-parent"
errored false
attributes {
}
}
span(1) {
operationName "SET"
spanKind CLIENT
name "SET"
kind CLIENT
errored false
childOf span(0)
attributes {
@ -399,8 +399,8 @@ class LettuceReactiveClientTest extends AgentTestRunner {
}
}
span(2) {
operationName "GET"
spanKind CLIENT
name "GET"
kind CLIENT
errored false
childOf span(0)
attributes {

View File

@ -99,8 +99,8 @@ class LettuceSyncClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "CONNECT"
spanKind CLIENT
name "CONNECT"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.NET_PEER_NAME.key()}" PEER_NAME
@ -130,8 +130,8 @@ class LettuceSyncClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "CONNECT"
spanKind CLIENT
name "CONNECT"
kind CLIENT
errored true
errorEvent CompletionException, String
attributes {
@ -155,8 +155,8 @@ class LettuceSyncClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "SET"
spanKind CLIENT
name "SET"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
@ -176,8 +176,8 @@ class LettuceSyncClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "GET"
spanKind CLIENT
name "GET"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
@ -197,8 +197,8 @@ class LettuceSyncClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "GET"
spanKind CLIENT
name "GET"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
@ -218,8 +218,8 @@ class LettuceSyncClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "RANDOMKEY"
spanKind CLIENT
name "RANDOMKEY"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
@ -239,8 +239,8 @@ class LettuceSyncClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "LPUSH"
spanKind CLIENT
name "LPUSH"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
@ -260,8 +260,8 @@ class LettuceSyncClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "HMSET"
spanKind CLIENT
name "HMSET"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
@ -281,8 +281,8 @@ class LettuceSyncClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "HGETALL"
spanKind CLIENT
name "HGETALL"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
@ -301,8 +301,8 @@ class LettuceSyncClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "DEBUG"
spanKind CLIENT
name "DEBUG"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
@ -321,8 +321,8 @@ class LettuceSyncClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "SHUTDOWN"
spanKind CLIENT
name "SHUTDOWN"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"

View File

@ -148,8 +148,8 @@ class LettuceAsyncClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "SET"
spanKind CLIENT
name "SET"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.NET_TRANSPORT.key()}" "IP.TCP"
@ -191,8 +191,8 @@ class LettuceAsyncClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "GET"
spanKind CLIENT
name "GET"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.NET_TRANSPORT.key()}" "IP.TCP"
@ -248,8 +248,8 @@ class LettuceAsyncClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "GET"
spanKind CLIENT
name "GET"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.NET_TRANSPORT.key()}" "IP.TCP"
@ -291,8 +291,8 @@ class LettuceAsyncClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "RANDOMKEY"
spanKind CLIENT
name "RANDOMKEY"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.NET_TRANSPORT.key()}" "IP.TCP"
@ -352,8 +352,8 @@ class LettuceAsyncClientTest extends AgentTestRunner {
assertTraces(2) {
trace(0, 1) {
span(0) {
operationName "HMSET"
spanKind CLIENT
name "HMSET"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.NET_TRANSPORT.key()}" "IP.TCP"
@ -373,8 +373,8 @@ class LettuceAsyncClientTest extends AgentTestRunner {
}
trace(1, 1) {
span(0) {
operationName "HGETALL"
spanKind CLIENT
name "HGETALL"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.NET_TRANSPORT.key()}" "IP.TCP"

View File

@ -98,8 +98,8 @@ class LettuceReactiveClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "SET"
spanKind CLIENT
name "SET"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.NET_TRANSPORT.key()}" "IP.TCP"
@ -132,8 +132,8 @@ class LettuceReactiveClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "GET"
spanKind CLIENT
name "GET"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.NET_TRANSPORT.key()}" "IP.TCP"
@ -174,8 +174,8 @@ class LettuceReactiveClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "GET"
spanKind CLIENT
name "GET"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.NET_TRANSPORT.key()}" "IP.TCP"
@ -214,8 +214,8 @@ class LettuceReactiveClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "RANDOMKEY"
spanKind CLIENT
name "RANDOMKEY"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.NET_TRANSPORT.key()}" "IP.TCP"
@ -244,8 +244,8 @@ class LettuceReactiveClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "COMMAND"
spanKind CLIENT
name "COMMAND"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.NET_TRANSPORT.key()}" "IP.TCP"
@ -290,14 +290,14 @@ class LettuceReactiveClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 3) {
span(0) {
operationName "test-parent"
name "test-parent"
errored false
attributes {
}
}
span(1) {
operationName "SET"
spanKind CLIENT
name "SET"
kind CLIENT
errored false
childOf span(0)
attributes {
@ -316,8 +316,8 @@ class LettuceReactiveClientTest extends AgentTestRunner {
}
}
span(2) {
operationName "GET"
spanKind CLIENT
name "GET"
kind CLIENT
errored false
childOf span(0)
attributes {
@ -351,14 +351,14 @@ class LettuceReactiveClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 3) {
span(0) {
operationName "test-parent"
name "test-parent"
errored false
attributes {
}
}
span(1) {
operationName "SET"
spanKind CLIENT
name "SET"
kind CLIENT
errored false
childOf span(0)
attributes {
@ -377,8 +377,8 @@ class LettuceReactiveClientTest extends AgentTestRunner {
}
}
span(2) {
operationName "GET"
spanKind CLIENT
name "GET"
kind CLIENT
errored false
childOf span(0)
attributes {
@ -413,14 +413,14 @@ class LettuceReactiveClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 3) {
span(0) {
operationName "test-parent"
name "test-parent"
errored false
attributes {
}
}
span(1) {
operationName "SET"
spanKind CLIENT
name "SET"
kind CLIENT
errored false
childOf span(0)
attributes {
@ -439,8 +439,8 @@ class LettuceReactiveClientTest extends AgentTestRunner {
}
}
span(2) {
operationName "GET"
spanKind CLIENT
name "GET"
kind CLIENT
errored false
childOf span(0)
attributes {

View File

@ -70,8 +70,8 @@ class LettuceSyncClientAuthTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "AUTH"
spanKind CLIENT
name "AUTH"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.NET_TRANSPORT.key()}" "IP.TCP"

View File

@ -129,8 +129,8 @@ class LettuceSyncClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "SET"
spanKind CLIENT
name "SET"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.NET_TRANSPORT.key()}" "IP.TCP"
@ -163,8 +163,8 @@ class LettuceSyncClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "SET"
spanKind CLIENT
name "SET"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.NET_TRANSPORT.key()}" "IP.TCP"
@ -195,8 +195,8 @@ class LettuceSyncClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "GET"
spanKind CLIENT
name "GET"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.NET_TRANSPORT.key()}" "IP.TCP"
@ -226,8 +226,8 @@ class LettuceSyncClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "GET"
spanKind CLIENT
name "GET"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.NET_TRANSPORT.key()}" "IP.TCP"
@ -257,8 +257,8 @@ class LettuceSyncClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "RANDOMKEY"
spanKind CLIENT
name "RANDOMKEY"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.NET_TRANSPORT.key()}" "IP.TCP"
@ -288,8 +288,8 @@ class LettuceSyncClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "LPUSH"
spanKind CLIENT
name "LPUSH"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.NET_TRANSPORT.key()}" "IP.TCP"
@ -319,8 +319,8 @@ class LettuceSyncClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "HMSET"
spanKind CLIENT
name "HMSET"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.NET_TRANSPORT.key()}" "IP.TCP"
@ -350,8 +350,8 @@ class LettuceSyncClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "HGETALL"
spanKind CLIENT
name "HGETALL"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.NET_TRANSPORT.key()}" "IP.TCP"

View File

@ -259,10 +259,10 @@ class MongoClientTest extends MongoBaseTest {
def mongoSpan(TraceAssert trace, int index, String statement, String instance = "some-description", Object parentSpan = null, Throwable exception = null) {
trace.span(index) {
operationName { it.replace(" ", "") == statement }
spanKind CLIENT
name { it.replace(" ", "") == statement }
kind CLIENT
if (parentSpan == null) {
parent()
hasNoParent()
} else {
childOf((SpanData) parentSpan)
}

View File

@ -268,10 +268,10 @@ class MongoClientTest extends MongoBaseTest {
def mongoSpan(TraceAssert trace, int index, String statement, String instance = "some-description", Object parentSpan = null, Throwable exception = null) {
trace.span(index) {
operationName { it.replace(" ", "") == statement }
spanKind CLIENT
name { it.replace(" ", "") == statement }
kind CLIENT
if (parentSpan == null) {
parent()
hasNoParent()
} else {
childOf((SpanData) parentSpan)
}

View File

@ -305,10 +305,10 @@ class MongoAsyncClientTest extends MongoBaseTest {
def mongoSpan(TraceAssert trace, int index, Closure<Boolean> statementEval, String instance = "some-description", Object parentSpan = null, Throwable exception = null) {
trace.span(index) {
operationName statementEval
spanKind CLIENT
name statementEval
kind CLIENT
if (parentSpan == null) {
parent()
hasNoParent()
} else {
childOf((SpanData) parentSpan)
}

View File

@ -82,7 +82,7 @@ class Netty38ClientTest extends HttpClientTest {
basicSpan(it, 0, "parent", null, thrownException)
span(1) {
operationName "CONNECT"
name "CONNECT"
childOf span(0)
errored true
Class errorClass = ConnectException

View File

@ -82,7 +82,7 @@ class Netty38ClientTest extends HttpClientTest {
basicSpan(it, 0, "parent", null, thrownException)
span(1) {
operationName "CONNECT"
name "CONNECT"
childOf span(0)
errored true
Class errorClass = ConnectException

View File

@ -86,7 +86,7 @@ class Netty40ClientTest extends HttpClientTest {
// for up to a total of 10 seconds (default connection time limit)
for (def i = 1; i < size; i++) {
span(i) {
operationName "CONNECT"
name "CONNECT"
childOf span(0)
errored true
Class errorClass = ConnectException

View File

@ -94,7 +94,7 @@ class Netty41ClientTest extends HttpClientTest {
// for up to a total of 10 seconds (default connection time limit)
for (def i = 1; i < size; i++) {
span(i) {
operationName "CONNECT"
name "CONNECT"
childOf span(0)
errored true
errorEvent(AbstractChannel.AnnotatedConnectException, ~/Connection refused:( no further information:)? localhost\/\[?[0-9.:]+\]?:$UNUSABLE_PORT/)
@ -195,7 +195,7 @@ class Netty41ClientTest extends HttpClientTest {
basicSpan(it, 0, "parent")
span(1) {
childOf span(0)
operationName "tracedMethod"
name "tracedMethod"
errored false
attributes {
}

View File

@ -64,12 +64,12 @@ class ReactorNettyTest extends AgentTestRunner {
def userAgent = "ReactorNetty/"
trace.span(index) {
if (parentSpan == null) {
parent()
hasNoParent()
} else {
childOf((SpanData) parentSpan)
}
operationName "HTTP GET"
spanKind CLIENT
name "HTTP GET"
kind CLIENT
errored false
attributes {
"${SemanticAttributes.NET_TRANSPORT.key()}" "IP.TCP"

View File

@ -37,9 +37,9 @@ class TracerTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "test"
spanKind io.opentelemetry.trace.Span.Kind.PRODUCER
parent()
name "test"
kind io.opentelemetry.trace.Span.Kind.PRODUCER
hasNoParent()
status io.opentelemetry.trace.Status.ERROR
attributes {
"string" "1"
@ -68,13 +68,13 @@ class TracerTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 2) {
span(0) {
operationName "parent"
parent()
name "parent"
hasNoParent()
attributes {
}
}
span(1) {
operationName "test"
name "test"
childOf span(0)
attributes {
}
@ -99,13 +99,13 @@ class TracerTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 2) {
span(0) {
operationName "parent"
parent()
name "parent"
hasNoParent()
attributes {
}
}
span(1) {
operationName "test"
name "test"
childOf span(0)
attributes {
}
@ -131,13 +131,13 @@ class TracerTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 2) {
span(0) {
operationName "parent"
parent()
name "parent"
hasNoParent()
attributes {
}
}
span(1) {
operationName "test"
name "test"
childOf span(0)
attributes {
}
@ -159,13 +159,13 @@ class TracerTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 2) {
span(0) {
operationName "parent"
parent()
name "parent"
hasNoParent()
attributes {
}
}
span(1) {
operationName "test"
name "test"
childOf span(0)
attributes {
}
@ -188,16 +188,16 @@ class TracerTest extends AgentTestRunner {
assertTraces(2) {
trace(0, 1) {
span(0) {
operationName "parent"
parent()
name "parent"
hasNoParent()
attributes {
}
}
}
trace(1, 1) {
span(0) {
operationName "test"
parent()
name "test"
hasNoParent()
attributes {
}
}
@ -216,8 +216,8 @@ class TracerTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "test2"
parent()
name "test2"
hasNoParent()
attributes {
}
}
@ -236,7 +236,7 @@ class TracerTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "test"
name "test"
event(0) {
eventName("exception")
attributes {
@ -264,7 +264,7 @@ class TracerTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "test"
name "test"
event(0) {
eventName("exception")
attributes {
@ -293,8 +293,8 @@ class TracerTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "test2"
parent()
name "test2"
hasNoParent()
attributes {
}
}
@ -315,8 +315,8 @@ class TracerTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "test2"
parent()
name "test2"
hasNoParent()
attributes {
}
}

View File

@ -35,9 +35,9 @@ class WithSpanInstrumentationTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "TracedWithSpan.otel"
spanKind Span.Kind.INTERNAL
parent()
name "TracedWithSpan.otel"
kind Span.Kind.INTERNAL
hasNoParent()
errored false
attributes {
"providerAttr" "Otel"
@ -55,8 +55,8 @@ class WithSpanInstrumentationTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "manualName"
parent()
name "manualName"
hasNoParent()
errored false
attributes {
"providerAttr" "Otel"
@ -74,9 +74,9 @@ class WithSpanInstrumentationTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "TracedWithSpan.oneOfAKind"
spanKind Span.Kind.PRODUCER
parent()
name "TracedWithSpan.oneOfAKind"
kind Span.Kind.PRODUCER
hasNoParent()
errored false
attributes {
"providerAttr" "Otel"

View File

@ -35,8 +35,8 @@ class PlayServerTest extends HttpServerTest<TestServer> {
@Override
void handlerSpan(TraceAssert trace, int index, Object parent, String method = "GET", ServerEndpoint endpoint = SUCCESS) {
trace.span(index) {
operationName "play.request"
spanKind INTERNAL
name "play.request"
kind INTERNAL
errored endpoint == EXCEPTION
if (endpoint == EXCEPTION) {
errorEvent(Exception, EXCEPTION.body)

View File

@ -72,8 +72,8 @@ class PlayServerTest extends HttpServerTest<Server> {
@Override
void handlerSpan(TraceAssert trace, int index, Object parent, String method = "GET", ServerEndpoint endpoint = SUCCESS) {
trace.span(index) {
operationName "play.request"
spanKind INTERNAL
name "play.request"
kind INTERNAL
errored endpoint == EXCEPTION
if (endpoint == EXCEPTION) {
errorEvent(Exception, EXCEPTION.body)

View File

@ -74,8 +74,8 @@ class PlayServerTest extends HttpServerTest<Server> {
@Override
void handlerSpan(TraceAssert trace, int index, Object parent, String method = "GET", ServerEndpoint endpoint = SUCCESS) {
trace.span(index) {
operationName "play.request"
spanKind INTERNAL
name "play.request"
kind INTERNAL
errored endpoint == EXCEPTION
childOf((SpanData) parent)
if (endpoint == EXCEPTION) {

View File

@ -103,7 +103,7 @@ class RabbitMQTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 6) {
span(0) {
operationName "parent"
name "parent"
attributes {
}
}
@ -330,26 +330,26 @@ class RabbitMQTest extends AgentTestRunner {
Boolean expectTimestamp = false
) {
trace.span(index) {
operationName resource
name resource
switch (trace.span(index).attributes.get(AttributesKeys.stringKey("amqp.command"))) {
case "basic.publish":
spanKind PRODUCER
kind PRODUCER
break
case "basic.get":
spanKind CLIENT
kind CLIENT
break
case "basic.deliver":
spanKind CONSUMER
kind CONSUMER
break
default:
spanKind CLIENT
kind CLIENT
}
if (parentSpan) {
childOf((SpanData) parentSpan)
} else {
parent()
hasNoParent()
}
if (linkSpan) {

View File

@ -70,9 +70,9 @@ class RatpackOtherTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 2) {
span(0) {
operationName "/$route"
spanKind SERVER
parent()
name "/$route"
kind SERVER
hasNoParent()
errored false
attributes {
"${SemanticAttributes.NET_PEER_IP.key()}" "127.0.0.1"
@ -86,8 +86,8 @@ class RatpackOtherTest extends AgentTestRunner {
}
}
span(1) {
operationName "/$route"
spanKind INTERNAL
name "/$route"
kind INTERNAL
childOf span(0)
errored false
attributes {

View File

@ -109,8 +109,8 @@ class RatpackHttpServerTest extends HttpServerTest<EmbeddedApp> {
@Override
void handlerSpan(TraceAssert trace, int index, Object parent, String method = "GET", ServerEndpoint endpoint = SUCCESS) {
trace.span(index) {
operationName endpoint.status == 404 ? "/" : endpoint == PATH_PARAM ? "/path/:id/param" : endpoint.path
spanKind INTERNAL
name endpoint.status == 404 ? "/" : endpoint == PATH_PARAM ? "/path/:id/param" : endpoint.path
kind INTERNAL
errored endpoint == EXCEPTION
childOf((SpanData) parent)
if (endpoint == EXCEPTION) {

View File

@ -45,13 +45,13 @@ class ReactorCoreTest extends AgentTestRunner {
assertTraces(1) {
trace(0, workSpans + 2) {
span(0) {
operationName "trace-parent"
parent()
name "trace-parent"
hasNoParent()
attributes {
}
}
span(1) {
operationName "publisher-parent"
name "publisher-parent"
childOf span(0)
attributes {
}
@ -61,7 +61,7 @@ class ReactorCoreTest extends AgentTestRunner {
for (int i = 0; i < workSpans; i++) {
span(i + 2) {
operationName "add one"
name "add one"
childOf span(1)
attributes {
}
@ -71,7 +71,7 @@ class ReactorCoreTest extends AgentTestRunner {
}
where:
name | expected | workSpans | publisherSupplier
paramName | expected | workSpans | publisherSupplier
"basic mono" | 2 | 1 | { -> Mono.just(1).map(addOne) }
"two operations mono" | 4 | 2 | { -> Mono.just(2).map(addOne).map(addOne) }
"delayed mono" | 4 | 1 | { ->
@ -107,10 +107,10 @@ class ReactorCoreTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 2) {
span(0) {
operationName "trace-parent"
name "trace-parent"
errored true
errorEvent(RuntimeException, EXCEPTION_MESSAGE)
parent()
hasNoParent()
}
// It's important that we don't attach errors at the Reactor level so that we don't
@ -122,9 +122,9 @@ class ReactorCoreTest extends AgentTestRunner {
}
where:
name | publisherSupplier
"mono" | { -> Mono.error(new RuntimeException(EXCEPTION_MESSAGE)) }
"flux" | { -> Flux.error(new RuntimeException(EXCEPTION_MESSAGE)) }
paramName | publisherSupplier
"mono" | { -> Mono.error(new RuntimeException(EXCEPTION_MESSAGE)) }
"flux" | { -> Flux.error(new RuntimeException(EXCEPTION_MESSAGE)) }
}
def "Publisher step '#name' test"() {
@ -138,10 +138,10 @@ class ReactorCoreTest extends AgentTestRunner {
assertTraces(1) {
trace(0, workSpans + 2) {
span(0) {
operationName "trace-parent"
name "trace-parent"
errored true
errorEvent(RuntimeException, EXCEPTION_MESSAGE)
parent()
hasNoParent()
}
// It's important that we don't attach errors at the Reactor level so that we don't
@ -152,7 +152,7 @@ class ReactorCoreTest extends AgentTestRunner {
for (int i = 0; i < workSpans; i++) {
span(i + 2) {
operationName "add one"
name "add one"
childOf span(1)
attributes {
}
@ -162,7 +162,7 @@ class ReactorCoreTest extends AgentTestRunner {
}
where:
name | workSpans | publisherSupplier
paramName | workSpans | publisherSupplier
"basic mono failure" | 1 | { -> Mono.just(1).map(addOne).map({ throwException() }) }
"basic flux failure" | 1 | { ->
Flux.fromIterable([5, 6]).map(addOne).map({ throwException() })
@ -177,8 +177,8 @@ class ReactorCoreTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 2) {
span(0) {
operationName "trace-parent"
parent()
name "trace-parent"
hasNoParent()
attributes {
}
}
@ -188,7 +188,7 @@ class ReactorCoreTest extends AgentTestRunner {
}
where:
name | publisherSupplier
paramName | publisherSupplier
"basic mono" | { -> Mono.just(1) }
"basic flux" | { -> Flux.fromIterable([5, 6]) }
}
@ -201,8 +201,8 @@ class ReactorCoreTest extends AgentTestRunner {
assertTraces(1) {
trace(0, workSpans + 2) {
span(0) {
operationName "trace-parent"
parent()
name "trace-parent"
hasNoParent()
attributes {
}
}
@ -211,7 +211,7 @@ class ReactorCoreTest extends AgentTestRunner {
for (int i = 0; i < workSpans; i++) {
span(i + 2) {
operationName "add one"
name "add one"
childOf span(1)
attributes {
}
@ -221,7 +221,7 @@ class ReactorCoreTest extends AgentTestRunner {
}
where:
name | workSpans | publisherSupplier
paramName | workSpans | publisherSupplier
"basic mono" | 3 | { ->
Mono.just(1).map(addOne).map(addOne).then(Mono.just(1).map(addOne))
}
@ -288,7 +288,7 @@ class ReactorCoreTest extends AgentTestRunner {
}
where:
name | workItems | publisherSupplier
paramName | workItems | publisherSupplier
"basic mono" | 1 | { -> Mono.just(1).map(addOne) }
"basic flux" | 2 | { -> Flux.fromIterable([1, 2]).map(addOne) }
}

View File

@ -74,8 +74,8 @@ class RediscalaClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "Set"
spanKind CLIENT
name "Set"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
"${SemanticAttributes.DB_STATEMENT.key()}" "Set"
@ -102,8 +102,8 @@ class RediscalaClientTest extends AgentTestRunner {
assertTraces(2) {
trace(0, 1) {
span(0) {
operationName "Set"
spanKind CLIENT
name "Set"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
"${SemanticAttributes.DB_STATEMENT.key()}" "Set"
@ -112,8 +112,8 @@ class RediscalaClientTest extends AgentTestRunner {
}
trace(1, 1) {
span(0) {
operationName "Get"
spanKind CLIENT
name "Get"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
"${SemanticAttributes.DB_STATEMENT.key()}" "Get"

View File

@ -64,8 +64,8 @@ class RedissonAsyncClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "SET"
spanKind CLIENT
name "SET"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
"${SemanticAttributes.NET_PEER_IP.key()}" "127.0.0.1"
@ -95,8 +95,8 @@ class RedissonAsyncClientTest extends AgentTestRunner {
assertTraces(2) {
trace(0, 1) {
span(0) {
operationName "SADD"
spanKind CLIENT
name "SADD"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
"${SemanticAttributes.NET_PEER_IP.key()}" "127.0.0.1"
@ -109,8 +109,8 @@ class RedissonAsyncClientTest extends AgentTestRunner {
}
trace(1, 1) {
span(0) {
operationName "RPUSH"
spanKind CLIENT
name "RPUSH"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
"${SemanticAttributes.NET_PEER_IP.key()}" "127.0.0.1"

View File

@ -69,8 +69,8 @@ class RedissonClientTest extends AgentTestRunner {
assertTraces(2) {
trace(0, 1) {
span(0) {
operationName "SET"
spanKind CLIENT
name "SET"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
"${SemanticAttributes.NET_PEER_IP.key()}" "127.0.0.1"
@ -83,8 +83,8 @@ class RedissonClientTest extends AgentTestRunner {
}
trace(1, 1) {
span(0) {
operationName "GET"
spanKind CLIENT
name "GET"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
"${SemanticAttributes.NET_PEER_IP.key()}" "127.0.0.1"
@ -108,8 +108,8 @@ class RedissonClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "SET;SET"
spanKind CLIENT
name "SET;SET"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
"${SemanticAttributes.NET_PEER_IP.key()}" "127.0.0.1"
@ -131,8 +131,8 @@ class RedissonClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "RPUSH"
spanKind CLIENT
name "RPUSH"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
"${SemanticAttributes.NET_PEER_IP.key()}" "127.0.0.1"
@ -155,8 +155,8 @@ class RedissonClientTest extends AgentTestRunner {
assertTraces(2) {
trace(0, 1) {
span(0) {
operationName "EVAL"
spanKind CLIENT
name "EVAL"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
"${SemanticAttributes.NET_PEER_IP.key()}" "127.0.0.1"
@ -169,8 +169,8 @@ class RedissonClientTest extends AgentTestRunner {
}
trace(1, 1) {
span(0) {
operationName "HGET"
spanKind CLIENT
name "HGET"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
"${SemanticAttributes.NET_PEER_IP.key()}" "127.0.0.1"
@ -192,8 +192,8 @@ class RedissonClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "SADD"
spanKind CLIENT
name "SADD"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
"${SemanticAttributes.NET_PEER_IP.key()}" "127.0.0.1"
@ -219,8 +219,8 @@ class RedissonClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "ZADD"
spanKind CLIENT
name "ZADD"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
"${SemanticAttributes.NET_PEER_IP.key()}" "127.0.0.1"
@ -242,8 +242,8 @@ class RedissonClientTest extends AgentTestRunner {
assertTraces(1) {
trace(0, 1) {
span(0) {
operationName "INCR"
spanKind CLIENT
name "INCR"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
"${SemanticAttributes.NET_PEER_IP.key()}" "127.0.0.1"
@ -266,8 +266,8 @@ class RedissonClientTest extends AgentTestRunner {
assertTraces(2) {
trace(0, 1) {
span(0) {
operationName "EVAL"
spanKind CLIENT
name "EVAL"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
"${SemanticAttributes.NET_PEER_IP.key()}" "127.0.0.1"
@ -280,8 +280,8 @@ class RedissonClientTest extends AgentTestRunner {
}
trace(1, 1) {
span(0) {
operationName "EVAL"
spanKind CLIENT
name "EVAL"
kind CLIENT
attributes {
"${SemanticAttributes.DB_SYSTEM.key()}" "redis"
"${SemanticAttributes.NET_PEER_IP.key()}" "127.0.0.1"

View File

@ -43,8 +43,8 @@ class RmiTest extends AgentTestRunner {
trace(0, 3) {
basicSpan(it, 0, "parent")
span(1) {
operationName "rmi.app.Greeter/hello"
spanKind CLIENT
name "rmi.app.Greeter/hello"
kind CLIENT
childOf span(0)
attributes {
"${SemanticAttributes.RPC_SYSTEM.key()}" "java_rmi"
@ -53,8 +53,8 @@ class RmiTest extends AgentTestRunner {
}
}
span(2) {
operationName "rmi.app.Server/hello"
spanKind SERVER
name "rmi.app.Server/hello"
kind SERVER
attributes {
"${SemanticAttributes.RPC_SYSTEM.key()}" "java_rmi"
"${SemanticAttributes.RPC_SERVICE.key()}" "rmi.app.Server"
@ -104,8 +104,8 @@ class RmiTest extends AgentTestRunner {
trace(0, 3) {
basicSpan(it, 0, "parent", null, thrownException)
span(1) {
operationName "rmi.app.Greeter/exceptional"
spanKind CLIENT
name "rmi.app.Greeter/exceptional"
kind CLIENT
childOf span(0)
errored true
errorEvent(RuntimeException, String)
@ -117,8 +117,8 @@ class RmiTest extends AgentTestRunner {
}
}
span(2) {
operationName "rmi.app.Server/exceptional"
spanKind SERVER
name "rmi.app.Server/exceptional"
kind SERVER
errored true
errorEvent(RuntimeException, String)
attributes {
@ -151,8 +151,8 @@ class RmiTest extends AgentTestRunner {
trace(0, 3) {
basicSpan(it, 0, "parent")
span(1) {
operationName "rmi.app.Greeter/hello"
spanKind CLIENT
name "rmi.app.Greeter/hello"
kind CLIENT
childOf span(0)
attributes {
"${SemanticAttributes.RPC_SYSTEM.key()}" "java_rmi"
@ -162,8 +162,8 @@ class RmiTest extends AgentTestRunner {
}
span(2) {
childOf span(1)
operationName "rmi.app.ServerLegacy/hello"
spanKind SERVER
name "rmi.app.ServerLegacy/hello"
kind SERVER
attributes {
"${SemanticAttributes.RPC_SYSTEM.key()}" "java_rmi"
"${SemanticAttributes.RPC_SERVICE.key()}" "rmi.app.ServerLegacy"

Some files were not shown because too many files have changed in this diff Show More