Just wanted to propose this as a POC before taking it further...
What you're doing here is very similar to something I'm doing as well, but yours is better. If you can't beat 'em, join em!
The only thing missing from what I'd like is for the correlation id to be added to the log context to easily group log entries in structured log aggregators.
Requires an additional dependency on Microsoft.Extensions.Logging.Abstractions but it's a pretty safe bet that's not an issue since this is intended for use with AspNetCore.
Just wanted to propose this as a POC before taking it further...
What you're doing here is very similar to something I'm doing as well, but yours is better. If you can't beat 'em, join em!
The only thing missing from what I'd like is for the correlation id to be added to the log context to easily group log entries in structured log aggregators.
Requires an additional dependency on Microsoft.Extensions.Logging.Abstractions but it's a pretty safe bet that's not an issue since this is intended for use with AspNetCore.
Thoughts?