Closed sergiojrdotnet closed 12 months ago
Correlation id would be cached in HttpContext.Items as LogEventProperty and you can use it to get value.
var logEventProperty = HttpContext.Items["CorrelationId"] as LogEventProperty;
var correlationId = logEventProperty.Properties["CorrelationId"].LiteralValue().ToString();
Is there any suggestion about how can I get and pass the current correlation id through
HttpClient
's fromHttpClientFactory
? My objective is to propagate the current value to subsequent microservices.