Fix latest test
@@ -232,7 +232,10 @@ class MongoClientTest extends MongoBaseTest {
trace.span(index) {
serviceName "mongo"
operationName "mongo.query"
- resourceName statement
+ resourceName {
+ assert it.replace(" ", "") == statement
+ return true
+ }
spanType DDSpanTypes.MONGO
if (parentSpan == null) {
parent()
@@ -243,7 +246,9 @@ class MongoClientTest extends MongoBaseTest {
"$Tags.COMPONENT.key" "java-mongo"
"$Tags.SPAN_KIND.key" Tags.SPAN_KIND_CLIENT
"$Tags.DB_INSTANCE.key" instance
- "$Tags.DB_STATEMENT.key" statement
+ "$Tags.DB_STATEMENT.key" {
+ it.replace(" ", "") == statement
+ }
"$Tags.DB_TYPE.key" "mongo"
"$Tags.PEER_HOSTNAME.key" "localhost"
"$Tags.PEER_HOST_IPV4.key" "127.0.0.1"
