ory / ory/client-dotnet

Use HttpClient from Dependency Injection

Open
#2 1 comment 0 reactions 0 assignees View on GitHub

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.
image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.