Skip to content

Commit 44ccc6c

Browse files
committed
testing
1 parent eaf37dc commit 44ccc6c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dd-java-agent/agent-bootstrap/src/test/groovy/datadog/trace/bootstrap/instrumentation/decorator/DatabaseClientDecoratorTest.groovy

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ class DatabaseClientDecoratorTest extends ClientDecoratorTest {
4747
then:
4848
if (session) {
4949
1 * span.setTag(Tags.DB_USER, session.user)
50-
1 * span.setTag(Tags.DB_INSTANCE, session.instance)
50+
if (session.instance != null) {
51+
1 * span.setTag(Tags.DB_INSTANCE, session.instance)
52+
}
5153
if (session.hostname != null) {
5254
1 * span.setTag(Tags.PEER_HOSTNAME, session.hostname)
5355
}

0 commit comments

Comments
 (0)