Skip to content

Commit

Permalink
Fix for issue ekmsystems#31
Browse files Browse the repository at this point in the history
Getting correlationId from response header to avoid creating it again in CorrelationIdHeaderEnricher
  • Loading branch information
lkurzyniec committed Nov 12, 2019
1 parent d7b4752 commit 9aa360e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ private string GetCorrelationId()
{
header = values.FirstOrDefault();
}
else if (_contextAccessor.HttpContext.Response.Headers.TryGetValue(_headerKey, out values))
{
header = values.FirstOrDefault();
}

var correlationId = string.IsNullOrEmpty(header)
? Guid.NewGuid().ToString()
Expand Down

0 comments on commit 9aa360e

Please sign in to comment.