CorrelationId 2.1.0

ASP.NET Core correlation ID middleware which synchronises the TraceIdentifier with a correlation ID header.

Install-Package CorrelationId -Version 2.1.0
dotnet add package CorrelationId --version 2.1.0
paket add CorrelationId --version 2.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Adds two additional options that can be set when adding the Correlation ID middleware:

UpdateTraceIdentifier - Controls whether the ASP.NET Core TraceIdentifier will be set to match the CorrelationId. The default value is true.

UseGuidForCorrelationId - Controls whether a GUID will be used in cases where no correlation ID is retrieved from the request header. When false the TraceIdentifier for the current request will be used. The default value is false.

Adds an additional property Header to the CorrelationContext so that the currently configured header name can be retrieved easily to then be set on downstream requests.

BREAKING CHANGE:

Unfortunately, despite this being a minor release a potential breaking change has slipped in. The Create method on the CorrelationContextFactory requires two arguments (previously one). If you are mocking or using this class directly then this change may affect you.

Adds two additional options that can be set when adding the Correlation ID middleware:

UpdateTraceIdentifier - Controls whether the ASP.NET Core TraceIdentifier will be set to match the CorrelationId. The default value is true.

UseGuidForCorrelationId - Controls whether a GUID will be used in cases where no correlation ID is retrieved from the request header. When false the TraceIdentifier for the current request will be used. The default value is false.

Adds an additional property Header to the CorrelationContext so that the currently configured header name can be retrieved easily to then be set on downstream requests.

BREAKING CHANGE:

Unfortunately, despite this being a minor release a potential breaking change has slipped in. The Create method on the CorrelationContextFactory requires two arguments (previously one). If you are mocking or using this class directly then this change may affect you.

Version History

Version Downloads Last updated
2.1.0 85,557 4/8/2018
2.1.0-rc3 241 4/6/2018
2.1.0-rc2 164 3/29/2018
2.1.0-rc 118 3/28/2018
2.0.1 19,553 12/31/2017
1.0.1 4,814 10/31/2017
1.0.0 18,760 5/4/2017