stevejgordon / CorrelationId

An ASP.NET Core middleware component which synchronises a correlation ID for cross API request logging.
MIT License
559 stars 106 forks source link

Add support for excluding specific paths from correlation ID processing #120

Open morteza-asadi opened 5 months ago

morteza-asadi commented 5 months ago

Add support for excluding paths from correlation ID processing

This commit introduces the ability to specify paths that should be excluded from correlation ID processing within the CorrelationId middleware. This feature allows users to configure the middleware to skip applying correlation IDs to requests that match defined patterns, which is particularly useful for health checks and other system routes that do not require tracking.

Changes include:

morteza-asadi commented 5 months ago

@stevejgordon Could you please review the changes when you have some time? Your feedback would be invaluable. @NRKirby @tdabasinskas @maldworth