-
Notifications
You must be signed in to change notification settings - Fork 51
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
[Feature]Expose the underlying http handler for consumers #92
Comments
Thanks for you feedback and example @onsvejda , We do not do this explicitly as we are changing the implementation of many of these areas actively. Insofar as telemetry support, the CdsServiceClient ( and the CrmServiceClient) are wired up to work with the telemetry systems provided by the Dataverse server system itself. this is also an area that has seen frequent changes in the last few years. Insofar as the support we offer, You can see this information by enabling verbose mode logging in the CDS Service client, detailed logs will be emitted covering request performance, request ID's, and session ID's if present. Is there a further level of telemetry you would like? |
Hi @MattB-msft ,
|
Thanks @onsvejda. In this case we are challenged with supporting both full framework and .net core concurrently. The feature you are looking at here is only available in .net core. and only from 2.2 +. With that said, We will discus this ask and see if this is something we are willing to expose. |
@onsvejda , I agree with your feature request as well. Would be really nice to get access to the underlying HTTP client handler. I'm mainly looking for fault handling and logging. @MattB-msft , I understand from your point of view as well and I get that it is an opinionated implementation, after all, it is a "client" library but perhaps there could be a way to customize or let us provide our own overrides? |
I'd vote for this too. I'm implementing a batch processing job to create and update data but got different results on each test run. Retries couldn't work as expected for the same reason mentioned here. |
As an update to this thread. We are still discussing providing some configuration support for Socket Handler, however we have decided against exposing the http transport at this time. This is due to many of the concerns I mentioned above and some current planning we are doing for the future of this client. |
It is impossible to specify http message handler neither for WCF client nor for ODATA client. Exposing this can give a 3pty advantage of implementing basic policies like retry / circuit breaker on http level - instead of doing them on "higher" levels. Attaching a sample patch file how this change might look like.
0001-dev.patch.txt
The text was updated successfully, but these errors were encountered: