From 704446cad9c3a8e24cb0547a6598def3294e8aa5 Mon Sep 17 00:00:00 2001 From: chad122 Date: Wed, 20 Sep 2023 00:38:28 +0800 Subject: [PATCH] fix the format of peer.service (#371) --- ClickHouse.Client/Diagnostic/ActivitySourceHelper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ClickHouse.Client/Diagnostic/ActivitySourceHelper.cs b/ClickHouse.Client/Diagnostic/ActivitySourceHelper.cs index 3126552c..ffb153c1 100644 --- a/ClickHouse.Client/Diagnostic/ActivitySourceHelper.cs +++ b/ClickHouse.Client/Diagnostic/ActivitySourceHelper.cs @@ -45,7 +45,7 @@ internal static Activity StartActivity(this ClickHouseConnection connection, str activity.SetTag(TagDbConnectionString, connection.ConnectionString); activity.SetTag(TagDbName, connection.Database); activity.SetTag(TagUser, connection.Username); - activity.SetTag(TagService, connection.ServerUri); + activity.SetTag(TagService, $"{connection.ServerUri.Host}:{connection.ServerUri.Port}"); return activity; }