CorrelationId 2.1.0

There is a newer version of this package available.
See the version list below for details.
Install-Package CorrelationId -Version 2.1.0
dotnet add package CorrelationId --version 2.1.0
<PackageReference Include="CorrelationId" Version="2.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CorrelationId --version 2.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CorrelationId, 2.1.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install CorrelationId as a Cake Addin
#addin nuget:?package=CorrelationId&version=2.1.0

// Install CorrelationId as a Cake Tool
#tool nuget:?package=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.

NuGet packages (24)

Showing the top 5 NuGet packages that depend on CorrelationId:

Package Downloads
Apprio.Enablement.Web

Package Description

Apprio.Enablement.Telemetry

Package Description

Apprio.Enablement.Telemetry.Exceptions

Package Description

Apprio.Enablement.Web.Mvc

Package Description

k3.imagine.StartupConfig

Adds boilerplate startup logic for Imagine

GitHub repositories (2)

Showing the top 2 popular GitHub repositories that depend on CorrelationId:

Repository Stars
madslundt/NetCoreMediatrSample
Sample using Command and Query Responsibility Segregation (CQRS) implemented in .NET Core by using MediatR and identityserver4, background workers, real-time metrics, monitoring, logging, validations, swagger and more
RehanSaeed/HttpClientSample
A sample ASP.NET Core project showing how to configure the HttpClientFactory
Version Downloads Last updated
3.0.1 81,165 8/14/2021
3.0.0 1,223,648 5/18/2020
3.0.0-preview.1 62,922 12/20/2019
2.1.0 2,971,613 4/8/2018
2.1.0-rc3 769 4/6/2018
2.1.0-rc2 696 3/29/2018
2.1.0-rc 626 3/28/2018
2.0.1 80,972 12/31/2017
1.0.1 18,463 10/31/2017
1.0.0 20,727 5/4/2017