Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.TimeoutException enrichment #131

Open
pareszka opened this issue May 13, 2021 · 3 comments
Open

System.TimeoutException enrichment #131

pareszka opened this issue May 13, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@pareszka
Copy link

Is it possible to enrich TimeoutException to include ActivityId/RequestId? We are getting from time to time TimeoutExceptions with message like that:
The request channel timed out attempting to send after 00:01:00. Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding. The time allotted to this operation may have been a portion of a longer timeout.

When trace logger is enabled, I can see messages coming from Dataverse lib, like that:
[TerminalFailure] Failed to Execute Command - Retrieve : SessionID=someGuid : RequestID=anotherGuid : Retrieve Request to Dataverse via IOrganizationService duration...

Is it possible to pass this kind of data in an exception?

@MattB-msft MattB-msft added the enhancement New feature or request label May 18, 2021
@MattB-msft
Copy link
Member

Fair ask.. we will see what we can do here..
it will be a bit yet as we are heads down doing some updates on the engine to move things along.

@MattB-msft
Copy link
Member

@pareszka We were ( finally ) talking about this one today..
few things... Are you using the IOrganizationService methods? meaning you called .Create /.Update? when you see this?

The reason we ask, there are a few different error patterns we expose here, we have tried to maintain the existing error patterns.

@pareszka
Copy link
Author

pareszka commented Jul 8, 2021

@MattB-msft I'm sorry for a late response. This is a breakdown of methods of ServiceClient which threw timeout exceptions in past month:

Method Count
RetrieveMultipleAsync(QueryBase query, CancellationToken cancellationToken) 1338
RetrieveAsync(String entityName, Guid id, ColumnSet columnSet, CancellationToken cancellationToken) 559
RetrieveMultiple(QueryBase query) 109
Retrieve(String entityName, Guid id, ColumnSet columnSet) 29
ExecuteAsync(OrganizationRequest request, CancellationToken cancellationToken) 126
Command_Execute(OrganizationRequest req, String errorStringCheck, Boolean bypassPluginExecution) 4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants