feat(telemetry.serilog): ILogRedactor seam + OTel log export

This commit is contained in:
Joseph Doherty
2026-06-01 07:40:58 -04:00
parent 70f91a855a
commit 2b856074d5
4 changed files with 270 additions and 0 deletions
@@ -0,0 +1,17 @@
namespace ZB.MOM.WW.Telemetry.Serilog;
/// <summary>
/// Seam for project-specific log-event redaction. The shared library applies this via
/// <see cref="RedactionEnricher"/>; each project provides its own implementation that knows which
/// fields (by property name) or which command payloads must not leave the process in log events.
/// If no <see cref="ILogRedactor"/> is registered in DI, <see cref="RedactionEnricher"/> is a no-op.
/// </summary>
public interface ILogRedactor
{
/// <summary>
/// Inspects and mutates the supplied log-event <paramref name="properties"/> in place — remove
/// or replace any sensitive values. Called on every log event before it reaches any sink.
/// </summary>
/// <param name="properties">The mutable property dictionary for the current log event.</param>
void Redact(IDictionary<string, object?> properties);
}