Passing correlation id in request/response headers
In this repo, i m exploring various ways in order to :
๐ pass correlation id in request/response headers
๐ propagate correlation id across http calls
๐ use correlation id in trace identifier
๐ enrich logs with correlation id
1๏ธโฃ
Example01
use a custom middleware, a custom delegation handler and a custom log enricher2๏ธโฃ
Example02
use a custom middleware and a custom delegation handler based on built-in accessor class3๏ธโฃ
Example03
use a custom middleware and a custom delegation handler based on a custom accessor class4๏ธโฃ
Example04
use CorrelationId middelware and a custom delegation handler
Tools
: vs22, net 6.0, web api, serilog, integration-testing, fluent-assertions, nsubstitute