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
Describe the bug
When using the change feed processor, the Cosmos api will often return status 304, to indicate that there are no changes.
This causes an error to be logged with a message about LatencyOverThreshold, which is not actually the case. The response time is below the limit, but the condition also requires that the response code .IsSuccess() which means 200-299.
Describe the bug
When using the change feed processor, the Cosmos api will often return status 304, to indicate that there are no changes.
This causes an error to be logged with a message about LatencyOverThreshold, which is not actually the case. The response time is below the limit, but the condition also requires that the response code
.IsSuccess()
which means 200-299.This seems to be the line causing this:
azure-cosmos-dotnet-v3/Microsoft.Azure.Cosmos/src/Telemetry/OpenTelemetry/Filters/DiagnosticsFilterHelper.cs
Line 34 in 1981fc1
Expected behavior
I would expect to only get LatencyOverThreshold warning logged when the latency threshold is exceeded.
If the response has an error code, that should be a different warning/error message, and in this case 304 status is not an error.
The text was updated successfully, but these errors were encountered: