diff --git a/correlationIdMiddleware/correlationIdMiddleware/CorrelationIdMiddleware.cs b/correlationIdMiddleware/correlationIdMiddleware/CorrelationIdMiddleware.cs index d51ccea..ccdb599 100644 --- a/correlationIdMiddleware/correlationIdMiddleware/CorrelationIdMiddleware.cs +++ b/correlationIdMiddleware/correlationIdMiddleware/CorrelationIdMiddleware.cs @@ -49,7 +49,7 @@ public Task Invoke(HttpContext httpContext, ICorrelationContext correlationConte correlationContext.SetContext(thisCorrelationId); httpContext.Response.Headers[Keys.HeaderKey] = thisCorrelationId.ToString(); - using (_logger.BeginScope("x-correlationId {x-correlationId}", correlationContext.CorrelationId.ToString())) + using (_logger.BeginScope("x-correlationId: {x-correlationId}", correlationContext.CorrelationId.ToString())) { return _next(httpContext); } diff --git a/correlationIdMiddleware/correlationIdMiddleware/Dfe.Academisation.CorrelationIdMiddleware.csproj b/correlationIdMiddleware/correlationIdMiddleware/Dfe.Academisation.CorrelationIdMiddleware.csproj index 15f4407..e10d842 100644 --- a/correlationIdMiddleware/correlationIdMiddleware/Dfe.Academisation.CorrelationIdMiddleware.csproj +++ b/correlationIdMiddleware/correlationIdMiddleware/Dfe.Academisation.CorrelationIdMiddleware.csproj @@ -13,7 +13,7 @@ dfe;academisation;correlation; 4ac4e7ef-aaff-48a4-9e4d-44371c231191 README.md - 2.0.0 + 2.0.1 DFE-Digital diff --git a/correlationIdMiddleware/correlationIdMiddleware/README.md b/correlationIdMiddleware/correlationIdMiddleware/README.md index 8ba7019..f980e79 100644 --- a/correlationIdMiddleware/correlationIdMiddleware/README.md +++ b/correlationIdMiddleware/correlationIdMiddleware/README.md @@ -20,6 +20,9 @@ CorrelationIds that are passed between services and recorded in all logs help to * Anywhere that you need access to the current correlation id, inject `ICorrelationContext` and access the current context using the `CorrelationId` property. It will return a `string?` that you can use in subsequent requests or wherever you need it. +## Change Log +See ReleaseNotes.md + --- ## Default AspNet Logger diff --git a/correlationIdMiddleware/correlationIdMiddleware/ReleaseNotes.md b/correlationIdMiddleware/correlationIdMiddleware/ReleaseNotes.md new file mode 100644 index 0000000..25286ec --- /dev/null +++ b/correlationIdMiddleware/correlationIdMiddleware/ReleaseNotes.md @@ -0,0 +1,9 @@ +# 2.0.1 +Fix to the log output so that `x-correlationId [guid]` is now `x-correlationId: [guid] + +# 2.0.0 +Introduced logging scope output. +Changed to only support GUID correlation ids (breaking changes) + +# 1.0.0 +Initial version \ No newline at end of file