You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I setup the correlation id with EnforceHeader = false; and IgnoreRequestHeader = true;. T
he warning is still emitted.
(CorrelationId.CorrelationIdMiddleware) No correlation ID was found in the request headers
I would think that if these two properties are set up this way then there shouldn't be a need to read the headers at all. Am I misunderstanding the properties?
Thanks for reporting this @steveoh. You are correct, that would make sense and be a small perf gain. Although I doubt it, making this change could be breaking for some users if they for some reason depend on that log message. For now, I'll slate this for a 4.0 release.
In the time being, you could filter out those messages from being logged.
@steveoh It's been a bit delayed through other commitments. Hoping to carve some time out in the next few months to look at things in a solid block. Did you manage to filter the log messages to reduce the false warnings?
I setup the correlation id with
EnforceHeader = false;
andIgnoreRequestHeader = true;
. The warning is still emitted.
I would think that if these two properties are set up this way then there shouldn't be a need to read the headers at all. Am I misunderstanding the properties?
CorrelationId/src/CorrelationId/CorrelationIdMiddleware.cs
Lines 61 to 83 in ae77ddc
The text was updated successfully, but these errors were encountered: