feat(scadabridge): add shared TraceContextEnricher to log pipeline (trace correlation)
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
using Serilog;
|
using Serilog;
|
||||||
using Serilog.Events;
|
using Serilog.Events;
|
||||||
|
using ZB.MOM.WW.Telemetry.Serilog;
|
||||||
|
|
||||||
namespace ZB.MOM.WW.ScadaBridge.Host;
|
namespace ZB.MOM.WW.ScadaBridge.Host;
|
||||||
|
|
||||||
@@ -85,7 +86,8 @@ public static class LoggerConfigurationFactory
|
|||||||
.MinimumLevel.Is(minimumLevel)
|
.MinimumLevel.Is(minimumLevel)
|
||||||
.Enrich.WithProperty("SiteId", siteId)
|
.Enrich.WithProperty("SiteId", siteId)
|
||||||
.Enrich.WithProperty("NodeHostname", nodeHostname)
|
.Enrich.WithProperty("NodeHostname", nodeHostname)
|
||||||
.Enrich.WithProperty("NodeRole", nodeRole);
|
.Enrich.WithProperty("NodeRole", nodeRole)
|
||||||
|
.Enrich.With(new TraceContextEnricher());
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user