Revert "EXP: update to Sentry 12.0"

This reverts commit 657d82b021.
This commit is contained in:
Claudio Ortolina
2026-02-26 10:59:45 +00:00
parent 0257ea8b7c
commit f23bb58414
4 changed files with 29 additions and 6 deletions
+25
View File
@@ -0,0 +1,25 @@
defmodule Sentry.FinchClient do
@moduledoc """
Defines a small shim to use `Finch` as a `Sentry.HTTPClient`.
"""
@behaviour Sentry.HTTPClient
@impl true
def child_spec do
Finch.child_spec(name: Sentry.Finch)
end
@impl true
def post(url, headers, body) do
request = Finch.build(:post, url, headers, body)
case Finch.request(request, Sentry.Finch) do
{:ok, response} ->
{:ok, response.status, response.headers, response.body}
error ->
error
end
end
end