[FEATURE REQ] Expose RequestContext
overloads on BlobBaseClient
methods to support non-throwing reads
#48607
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Service Attention
Workflow: This issue is responsible by Azure service team.
Storage
Storage Service (Queues, Blobs, Files)
Library name
Azure.Storage.Blobs
Please describe the feature.
It's common to perform speculative point-reads against blobs which may not exist. In these cases, a 404 response is expected and not an error. Exceptions thrown in these cases are undesirable: they incur a substantial performance cost and they show up in logs/traces as failures.
Exposing overloads on
BlobBaseClient
methods which accept aRequestContext
parameter would allow callers to configure the operation to not throw when a blob is not found by settingRequestContext.ErrorOptions
toErrorOptions.NoThrow
, and to not log an error by adding a classifierAlternatively, *IfExists APIs could be added for the specific scenario.
xref #32257
The text was updated successfully, but these errors were encountered: