feat(scadabridge): add shared TraceContextEnricher to log pipeline (trace correlation)

This commit is contained in:
Joseph Doherty
2026-06-01 15:40:42 -04:00
parent b3070c0bda
commit f743ffaad2
@@ -1,5 +1,6 @@
using Serilog;
using Serilog.Events;
using ZB.MOM.WW.Telemetry.Serilog;
namespace ZB.MOM.WW.ScadaBridge.Host;
@@ -85,7 +86,8 @@ public static class LoggerConfigurationFactory
.MinimumLevel.Is(minimumLevel)
.Enrich.WithProperty("SiteId", siteId)
.Enrich.WithProperty("NodeHostname", nodeHostname)
.Enrich.WithProperty("NodeRole", nodeRole);
.Enrich.WithProperty("NodeRole", nodeRole)
.Enrich.With(new TraceContextEnricher());
}
/// <summary>