Skip to content

Commit

Permalink
fix: trace关联的errors详情只显示相关trace的error详情
Browse files Browse the repository at this point in the history
  • Loading branch information
Qinyouzeng committed Sep 3, 2024
1 parent 3abb25e commit f947347
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ private async Task LoadLogAysnc()
PageSize = 1,
Page = currentPage,
Start = Search.Start,
End = Search.End
End = Search.End,
TraceId = Search.TraceId,
};
var list = new List<FieldConditionDto>();
if (!string.IsNullOrEmpty(Search.Environment))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Copyright (c) MASA Stack All rights reserved.
// Licensed under the Apache License. See LICENSE.txt in the project root for license information.

using System;

namespace Masa.Tsc.Web.Admin.Rcl.Pages.Apm.Services;

public partial class ServiceErrors
Expand Down Expand Up @@ -131,7 +133,7 @@ private async Task LoadPageDataAsync()
TraceId = SearchData.TraceId,
Service = SearchData.Service,
Env = SearchData.Environment,
IsDesc = sortBy,
IsDesc = sortBy,
TextField = StorageConst.Current.SpanId,
TextValue = lastSpanId
};
Expand Down Expand Up @@ -172,6 +174,10 @@ private void Show(string? type = default, string? message = default)
{
Search.ExceptionType = type!;
Search.ExceptionMsg = message!;
if (!string.IsNullOrEmpty(SearchData.TraceId))
Search.TraceId = SearchData.TraceId;
else
Search.TraceId = string.Empty;
showDetail = true;
StateHasChanged();
}
Expand Down

0 comments on commit f947347

Please sign in to comment.