Hello Becker, W,
Greetings! Welcome to Microsoft Q&A Platform.
The Microsoft.WindowsAzure.Storage package is deprecated, and although it still works, it’s recommended to move to the newer Azure.Storage.Blobs package. The newer package offers better performance, updates, feature releases, and continued support. In the newer Azure.Storage.Blobs SDK (v12), the concept of OperationContext has been removed. However, you can still achieve similar retry logging functionality without using OperationContext.
Instead of OperationContext, you can set up a custom retry policy for your blob operations. Retry policies define how your application handles failed requests. The SDK provides built-in retry policies, but you can create your own custom policy to log retries.
For example, you can set the maximum number of retries and the delay between retries.
refer similar thread for reference - https://stackoverflow.com/questions/77584911/log-retries-in-azure-storage-blob
To correlate request IDs and log retries, use the Context and PipelineCallContext. The Context is thread-safe and can be passed to API calls that accept it. The PipelineCallContext provides additional context information during retries.
Hope this answer helps! Please let us know if you have any further queries. I’m happy to assist you further.
Please "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.