sentry-elixir icon indicating copy to clipboard operation
sentry-elixir copied to clipboard

feat: Client that uses Req.

Open cgarvis opened this issue 3 months ago • 3 comments

This module implements the Sentry.HTTPClient behaviour using the Req HTTP client.

cgarvis avatar Oct 01 '25 19:10 cgarvis

@cgarvis we already have a PR that replaces Hackney with Finch. I think that's a preferred route—this is not exposed to users and using Req means using one more dependency, but mostly for the sake of the Sentry SDK maintainers and not of end users. Any particular reasons you wanted to go with this over Finch and the existing PR?

whatyouhide avatar Oct 14 '25 10:10 whatyouhide

Req doesn’t supersede the Finch PR, it actually builds on it. Req uses Finch under the hood, so this adapter still benefits from that work. The goal here is to support multiple adapters since the Elixir ecosystem tends to favor flexibility. With Phoenix and other libraries standardizing on Req, offering an adapter makes it easier for projects to configure and align their stack without additional boilerplate.

cgarvis avatar Oct 14 '25 13:10 cgarvis

@cgarvis I think I’m missing the point of having another adapter then. Why would someone care about the adapter that the SDK uses unless it's for dependencies reasons?

whatyouhide avatar Oct 14 '25 16:10 whatyouhide

Thanks for the PR but for the time being we're not planning to maintain more clients. We may revisit this in the future when there's clearly demand for it though.

solnic avatar Dec 19 '25 12:12 solnic