Open
Description
Description
If an operation encounters an error (and enters the Faulted
state) it should log an error message.
However there's an issue that can cause the operation to silently fail (never logging the error), this occurs when:
- An egress provider is used for the operation
- The exception thrown by the operation isn't one of the following:
ArgumentException
,DiagnosticsClientException
,InvalidOperationException
,OperationCanceledException
,MonitoringException
,ValidationException
,UnauthorizedAccessException
This is due to us incorrectly re-using ActionContextExtensions.InvokeAsync
for egress operations, which does filtering on the exception thrown of an arbitrary action to determine if it should be logged or not: