Skip to content

Commit 5ec3fb6

Browse files
committed
fixed test cases
1 parent 95a15b6 commit 5ec3fb6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

dd-java-agent/instrumentation/jdbc/src/test/groovy/RemoteJDBCInstrumentationTest.groovy

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,9 @@ abstract class RemoteJDBCInstrumentationTest extends VersionedNamingTestBase {
277277
if (usingHikari) {
278278
"$Tags.DB_POOL_NAME" String
279279
}
280+
if (addDbmTag) {
281+
"$InstrumentationTags.DBM_TRACE_INJECTED" true
282+
}
280283
peerServiceFrom(Tags.DB_INSTANCE)
281284
defaultTags()
282285
}
@@ -765,6 +768,9 @@ abstract class RemoteJDBCInstrumentationTest extends VersionedNamingTestBase {
765768
// since Connection.getClientInfo will not provide the username
766769
"$Tags.DB_USER" { it == null || it == jdbcUserNames.get(driver) }
767770
"${Tags.DB_OPERATION}" operation
771+
if (addDbmTag) {
772+
"$InstrumentationTags.DBM_TRACE_INJECTED" true
773+
}
768774
if (conPoolType == "hikari") {
769775
"$Tags.DB_POOL_NAME" String
770776
}

0 commit comments

Comments
 (0)