By default, the built-in trace and span ids will be recorded alongside any span-related properties (such as TraceId, SpanId, and ParentId) that may be added by the framework:
To remove the redundant properties (if you wish) you can set ActivityTrackingOptions via ILoggingBuilder.Configure():
By default, the built-in trace and span ids will be recorded alongside any span-related properties (such as
TraceId
,SpanId
, andParentId
) that may be added by the framework:To remove the redundant properties (if you wish) you can set
ActivityTrackingOptions
viaILoggingBuilder.Configure()
:The PR draws on the trace and span correlation support I added upstream in Serilog, and I've followed it pretty closely here.