stevejgordon / CorrelationId

An ASP.NET Core middleware component which synchronises a correlation ID for cross API request logging.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Consider adding TraceIdentifier to the CorrelationContext

stevejgordon opened this issue · comments

In cases where the option is enabled which avoid updating the TraceIdentifier to match the CorrelationId it might be useful to have access to the TraceIdentifier on the CorrelationContext.

Needs consideration as this can be accessed via HttpContext and (when registered) the IHttpContextAccessor. This may be unnecessary bloat on our context.