EXP: update to Sentry 12.0

This commit is contained in:
Claudio Ortolina
2026-02-25 19:02:47 +00:00
parent 3107b8e027
commit 657d82b021
4 changed files with 6 additions and 29 deletions
-25
View File
@@ -1,25 +0,0 @@
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