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

Use HttpClient from Dependency Injection #2

Open
miroljub1995 opened this issue Oct 9, 2024 · 1 comment
Open

Use HttpClient from Dependency Injection #2

miroljub1995 opened this issue Oct 9, 2024 · 1 comment

Comments

@miroljub1995
Copy link

miroljub1995 commented Oct 9, 2024

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
Copy link
Author

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 ?

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

No branches or pull requests

1 participant