Skip to content

Commit

Permalink
fix: format database remoteServiceName: database_type-database
Browse files Browse the repository at this point in the history
  • Loading branch information
lanxenet committed Aug 24, 2023
1 parent 1dc2db8 commit fc609aa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand Down

0 comments on commit fc609aa

Please sign in to comment.