Use HttpClient from Dependency Injection
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 6
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the SDK's ToSessionAsync entry point and trace how its HTTP client is created. Compare that path with the application's HttpClient from dependency injection; done means Ory API requests use the DI client and appear in the existing OpenTelemetry traces.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- backend, observability
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100