Skip to content

Commit

Permalink
Ensure that when AcceptMessageSession times out, it doesnt report it …
Browse files Browse the repository at this point in the history
…as Exception in AppInsights (DiagnosticSource) (#6919)

fixes issue #6813
  • Loading branch information
nemakam authored Jul 16, 2019
1 parent 58b0c96 commit 2e5a5e9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ public async Task<IMessageSession> AcceptMessageSessionAsync(string sessionId, T
}
catch (Exception exception)
{
if (isDiagnosticSourceEnabled)
if (isDiagnosticSourceEnabled && !(exception is ServiceBusTimeoutException))
{
this.diagnosticSource.ReportException(exception);
}
Expand Down

0 comments on commit 2e5a5e9

Please sign in to comment.