Summary
In this release we fixed a bug that caused correlation ids not to be captured due to case sensitive string matching. We also added a new API to get the correlation id from the Logging utility
Changes
Correlation ID extraction improvements
Enhanced the CaptureCorrelationId method to try multiple strategies for extracting the correlation ID: first by exact (case-sensitive) match, then by output case transformation, and finally by case-insensitive search. This makes correlation ID retrieval more reliable across various event shapes.
Public API enhancements
| Docs
- Added a static CorrelationId property to the Logger class, allowing easy access to the current correlation ID from log context.
- Introduced a new GetCorrelationId extension method for ILogger, providing a convenient way to access the correlation ID from any logger instance.
Bugs
🔧 Maintenance
- chore: Bump version from 3.0.1 to 3.0.2 (#1056) by @hjgraca
- chore(deps): bump actions/upload-artifact from 4.6.2 to 5.0.0 (#1052) by @dependabot[bot]
- chore(deps): bump actions/download-artifact from 5.0.0 to 6.0.0 (#1051) by @dependabot[bot]
- chore(deps): bump github/codeql-action from 4.30.9 to 4.31.0 (#1050) by @dependabot[bot]
This release was made possible by the following contributors:
@dependabot[bot], @hjgraca and dependabot[bot]