Skip to content

Latest commit

 

History

History

Correlation

Correlation

Correlation facilitates the grouping of all requests, messages, logs, and traces belonging to a business flow. They all include a randomly generated unique identifier that is referred to as a "Correlation ID".

Using correlation makes it easy to investigate problems in a business flow because the correlation ID propagates throughout all the components involved, and it can be used to search the logs. This is especially true in distributed systems where data can be scattered across different machines.

Core package

  • NBB.Correlation - provides core correlation functionality such as accessing the current correlation ID

Serilog integration

ASP.NET integration

Messaging integration

The correlation ID can be attached to messages and transported across all microservices involved in a business flow.

There is a dedicated messaging header nbb-correlationID interpreted by:

Open Telemetry integration

A tag named nbb.correlation_id is added to the messaging publisher and subscriber spans.

For details see NBB.Messaging.OpenTelemetry