提交 3bbf370d 编写于 作者: A ascrutae

fix test case issue

上级 894cc4fd
...@@ -22,7 +22,7 @@ public class CallableStatementTracing { ...@@ -22,7 +22,7 @@ public class CallableStatementTracing {
ConnectionInfo connectInfo, String method, String sql, Executable<R> exec) ConnectionInfo connectInfo, String method, String sql, Executable<R> exec)
throws SQLException { throws SQLException {
try { try {
Span span = ContextManager.createSpan("JDBC/CallableStatement/" + method); Span span = ContextManager.createSpan(connectInfo.getDBType() + "/JDBI/CallableStatement/" + method);
Tags.DB_TYPE.set(span, "sql"); Tags.DB_TYPE.set(span, "sql");
Tags.DB_INSTANCE.set(span, connectInfo.getDatabaseName()); Tags.DB_INSTANCE.set(span, connectInfo.getDatabaseName());
Tags.DB_STATEMENT.set(span, sql); Tags.DB_STATEMENT.set(span, sql);
......
...@@ -22,7 +22,7 @@ public class ConnectionTracing { ...@@ -22,7 +22,7 @@ public class ConnectionTracing {
ConnectionInfo connectInfo, String method, String sql, Executable<R> exec) ConnectionInfo connectInfo, String method, String sql, Executable<R> exec)
throws SQLException { throws SQLException {
try { try {
Span span = ContextManager.createSpan("JDBC/Connection/" + method); Span span = ContextManager.createSpan(connectInfo.getDBType() + "/JDBI/Connection/" + method);
Tags.DB_TYPE.set(span, "sql"); Tags.DB_TYPE.set(span, "sql");
Tags.DB_INSTANCE.set(span, connectInfo.getDatabaseName()); Tags.DB_INSTANCE.set(span, connectInfo.getDatabaseName());
Tags.DB_STATEMENT.set(span, sql); Tags.DB_STATEMENT.set(span, sql);
......
...@@ -21,7 +21,7 @@ public class PreparedStatementTracing { ...@@ -21,7 +21,7 @@ public class PreparedStatementTracing {
ConnectionInfo connectInfo, String method, String sql, Executable<R> exec) ConnectionInfo connectInfo, String method, String sql, Executable<R> exec)
throws SQLException { throws SQLException {
try { try {
Span span = ContextManager.createSpan("JDBC/PreparedStatement/" + method); Span span = ContextManager.createSpan(connectInfo.getDBType() + "/JDBI/PreparedStatement/" + method);
Tags.DB_TYPE.set(span, "sql"); Tags.DB_TYPE.set(span, "sql");
Tags.DB_INSTANCE.set(span, connectInfo.getDatabaseName()); Tags.DB_INSTANCE.set(span, connectInfo.getDatabaseName());
Tags.DB_STATEMENT.set(span, sql); Tags.DB_STATEMENT.set(span, sql);
......
...@@ -21,7 +21,7 @@ public class StatementTracing { ...@@ -21,7 +21,7 @@ public class StatementTracing {
ConnectionInfo connectInfo, String method, String sql, Executable<R> exec) ConnectionInfo connectInfo, String method, String sql, Executable<R> exec)
throws SQLException { throws SQLException {
try { try {
Span span = ContextManager.createSpan("JDBC/Statement/" + method); Span span = ContextManager.createSpan(connectInfo.getDBType() + "/JDBI/Statement/" + method);
Tags.DB_TYPE.set(span, "sql"); Tags.DB_TYPE.set(span, "sql");
Tags.DB_INSTANCE.set(span, connectInfo.getDatabaseName()); Tags.DB_INSTANCE.set(span, connectInfo.getDatabaseName());
Tags.DB_STATEMENT.set(span, sql); Tags.DB_STATEMENT.set(span, sql);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册