Skip to content

Commit

Permalink
如果应用心跳已存在,则监控上报时不需要携带应用性能信息
Browse files Browse the repository at this point in the history
  • Loading branch information
nnhy committed Dec 25, 2024
1 parent 8fda8a2 commit fced733
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion StarAgent/StarAgent.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="NewLife.Agent" Version="10.10.2024.1223" />
<PackageReference Include="NewLife.Agent" Version="10.10.2024.1225-beta1450" />
</ItemGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions Stardust/Monitors/StarTracer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ protected override void ProcessSpans(ISpanBuilder[] builders)
var client = Client;
if (client == null) return;

// 构建应用信息
if (EnableMeter)
// 构建应用信息。如果应用心跳已存在,则监控上报时不需要携带应用性能信息
if (EnableMeter && Client is not ClientBase)
{
if (_appInfo == null)
_appInfo = new AppInfo(_process) { Version = _version };
Expand Down

0 comments on commit fced733

Please sign in to comment.