Skip to content

Adds X-Correlation-ID value in Serrilog context either from headers (X-Correlation-ID) or generates new GUID.

Notifications You must be signed in to change notification settings

mravko/Serilog.CorrelationId

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Serilog.CorrelationId

Asp.Net Core middleware that will check the incoming request for header X-Correlation-ID, and if it is present the value will be added to the Serilog log.

If the header value is not present in the incoming request, new GUID value will be created as correlation id, and that value will be added to the Serilog log. Also, the same value will be returned in the response as X-Correlation-ID.

Installation: dotnet add package Serilog.CorrelationId

About

Adds X-Correlation-ID value in Serrilog context either from headers (X-Correlation-ID) or generates new GUID.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages