From 7397eceda8b527583aba61f8b7c4dcc064af7048 Mon Sep 17 00:00:00 2001 From: qinyouzeng Date: Mon, 6 Nov 2023 11:49:42 +0800 Subject: [PATCH] chore: update --- .../Masa.Contrib.StackSdks.Tsc.Clickhouse/TraceService.cs | 3 +-- .../Traceing/ActivityExtensions.cs | 2 +- .../TraceServiceTests.cs | 2 -- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/Contrib/StackSdks/Masa.Contrib.StackSdks.Tsc.Clickhouse/TraceService.cs b/src/Contrib/StackSdks/Masa.Contrib.StackSdks.Tsc.Clickhouse/TraceService.cs index 8d2fc1b17..8742c5d2e 100644 --- a/src/Contrib/StackSdks/Masa.Contrib.StackSdks.Tsc.Clickhouse/TraceService.cs +++ b/src/Contrib/StackSdks/Masa.Contrib.StackSdks.Tsc.Clickhouse/TraceService.cs @@ -31,8 +31,7 @@ public Task> ListAsync(BaseRequestDto query) { return Task.FromResult(_dbConnection.QueryTrace(query)); } - - //ιœ€θ¦δΌ˜εŒ– + public Task> ScrollAsync(BaseRequestDto query) { return Task.FromResult(_dbConnection.QueryTrace(query)); diff --git a/src/Contrib/StackSdks/Masa.Contrib.StackSdks.Tsc.OpenTelemetry/Traceing/ActivityExtensions.cs b/src/Contrib/StackSdks/Masa.Contrib.StackSdks.Tsc.OpenTelemetry/Traceing/ActivityExtensions.cs index bad99579b..21ae14728 100644 --- a/src/Contrib/StackSdks/Masa.Contrib.StackSdks.Tsc.OpenTelemetry/Traceing/ActivityExtensions.cs +++ b/src/Contrib/StackSdks/Masa.Contrib.StackSdks.Tsc.OpenTelemetry/Traceing/ActivityExtensions.cs @@ -41,7 +41,7 @@ public static Activity AddMasaSupplement(this Activity activity, HttpResponse ht { activity.SetTag(OpenTelemetryAttributeName.Http.RESPONSE_CONTENT_LENGTH, httpResponse.ContentLength); activity.SetTag(OpenTelemetryAttributeName.Http.RESPONSE_CONTENT_TYPE, httpResponse.ContentType); - activity.SetTag(OpenTelemetryAttributeName.Host.NAME, Dns.GetHostName()); + activity.SetTag(OpenTelemetryAttributeName.Host.NAME, Dns.GetHostName()); if ((httpResponse.HttpContext.User?.Claims.Count() ?? 0) > 0) { diff --git a/src/Contrib/StackSdks/Tests/Masa.Contrib.StackSdks.Tsc.Clickhouse.Tests/TraceServiceTests.cs b/src/Contrib/StackSdks/Tests/Masa.Contrib.StackSdks.Tsc.Clickhouse.Tests/TraceServiceTests.cs index fe96626e9..78711e968 100644 --- a/src/Contrib/StackSdks/Tests/Masa.Contrib.StackSdks.Tsc.Clickhouse.Tests/TraceServiceTests.cs +++ b/src/Contrib/StackSdks/Tests/Masa.Contrib.StackSdks.Tsc.Clickhouse.Tests/TraceServiceTests.cs @@ -1,8 +1,6 @@ // Copyright (c) MASA Stack All rights reserved. // Licensed under the MIT License. See LICENSE.txt in the project root for license information. -using Microsoft.Extensions.Logging; - namespace Masa.Contrib.StackSdks.Tsc.Clickhouse.Tests; [TestClass]