From fc609aa536a12ee77800f14b7cbc4a532ab17b6c Mon Sep 17 00:00:00 2001 From: enoch Date: Thu, 24 Aug 2023 14:43:00 +0800 Subject: [PATCH] fix: format database remoteServiceName: database_type-database --- .../jdbc/interceptor/tracing/JdbcStmTracingInterceptorTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/jdbc/src/test/java/com/megaease/easeagent/plugin/jdbc/interceptor/tracing/JdbcStmTracingInterceptorTest.java b/plugins/jdbc/src/test/java/com/megaease/easeagent/plugin/jdbc/interceptor/tracing/JdbcStmTracingInterceptorTest.java index 6918c81e..a6d6f974 100644 --- a/plugins/jdbc/src/test/java/com/megaease/easeagent/plugin/jdbc/interceptor/tracing/JdbcStmTracingInterceptorTest.java +++ b/plugins/jdbc/src/test/java/com/megaease/easeagent/plugin/jdbc/interceptor/tracing/JdbcStmTracingInterceptorTest.java @@ -82,7 +82,7 @@ public void doBefore() throws SQLException { assertEquals("database", reportSpan.tag(JdbcStmTracingInterceptor.SPAN_LOCAL_COMPONENT_TAG_NAME)); assertEquals(TestUtils.URI, reportSpan.tag(JdbcStmTracingInterceptor.SPAN_URL)); assertEquals(Type.DATABASE.getRemoteType(), reportSpan.tag(MiddlewareConstants.TYPE_TAG_NAME)); - assertEquals(TestUtils.DATABASE_TYPE + ":" + TestUtils.DATABASE, reportSpan.remoteServiceName()); + assertEquals(TestUtils.DATABASE_TYPE + "-" + TestUtils.DATABASE, reportSpan.remoteServiceName()); assertEquals(TestUtils.HOST, reportSpan.remoteEndpoint().ipv4()); assertEquals(TestUtils.PORT, reportSpan.remoteEndpoint().port());