ory / client-dotnet

Autogenerated client SDK.
Apache License 2.0
5 stars 1 forks source link

Use HttpClient from Dependency Injection #2

Open miroljub1995 opened 1 month ago

miroljub1995 commented 1 month ago

We are using ory client sdk for calling ToSessionAsync, but we do not have any trace of http requests made, or any activity. We have open telemetry setup with HttpClient from DI, but this client is not using that client from DI and traces are not captured. There is a situation where we have something weird in metrics and we suspect that it is Ory api, but we can not be sure without traces.

This is the trace, where first dependency call is actually ory.ToSessionAsync and we suspect that it failed, but there is no trace. image

miroljub1995 commented 1 month ago

We added some trace in a calling method and Ory indeed fails sometimes, but we still do not know what was the response status from the session endpoint.

image

Any thoughts here @aeneasr ?