When listening for change feed changes in a .NET application, during spikes of high usage on a collection, it is possible that the requests to CosmosDB get throttled (HTTP response 429).
There are 3 flavours of the CosmosDB change feed client for .NET:
The original:
Microsoft.Azure.DocumentDB.ChangeFeedProcessor
v1.x.Its v2.x successor is API-compatible but has sweeping code changes.
The current implementation is part of
Microsoft.Azure.Cosmos
v3
Which of these versions (if any) supports a way to plug into the error handling (to emit custom telemetry about it)?
The original library internally implements retries on HTTP 429
and I wasn't able to find a way to hook into the retry mechanism.