add-track: 补充轨迹推送链路跟踪参数

This commit is contained in:
hardstylewyl 2024-12-19 15:22:16 +08:00
parent e0c18bda20
commit 7d5b81683d

View File

@ -387,7 +387,10 @@ public class TrackPushEventHandler : ITransientDependency, ICapSubscribe
{ {
var res = await _httpClientProxy.Service.GetSystemInterfaceByIdAsync(_options.CurrentValue.PushTrackInterfaceCode, _options.CurrentValue.PushTrackInterfaceId); var res = await _httpClientProxy.Service.GetSystemInterfaceByIdAsync(_options.CurrentValue.PushTrackInterfaceCode, _options.CurrentValue.PushTrackInterfaceId);
if (res == null) return new List<string>(); if (res == null) return new List<string>();
span.SetTag("request-GetSystemInterfaceByIdAsync", $"{subSystemCode},{_options.CurrentValue.PushTrackInterfaceCode},{_options.CurrentValue.PushTrackInterfaceId}"); span.SetTag("request-GetSystemInterfaceByIdAsync", $"PushTrackInterfaceCode[{subSystemCode}]," +
$"PushTrackInterfaceCode:[{_options.CurrentValue.PushTrackInterfaceCode}]," +
$"PushTrackInterfaceId:[{_options.CurrentValue.PushTrackInterfaceId}]," +
$"PushTrackItemParamAliasPrefix:[{_options.CurrentValue.PushTrackItemParamAliasPrefix}]");
span.SetTag("response-GetSystemInterfaceByIdAsync", res.ToJson()); span.SetTag("response-GetSystemInterfaceByIdAsync", res.ToJson());
return res.InParameterList return res.InParameterList
.Where(x => x.Alias.StartsWith(_options.CurrentValue.PushTrackItemParamAliasPrefix)) .Where(x => x.Alias.StartsWith(_options.CurrentValue.PushTrackItemParamAliasPrefix))