@@ -239,11 +239,11 @@ defmodule Sentry.Config do
239239 client: [
240240 type: :atom ,
241241 type_doc: "`t:module/0`" ,
242- default: Sentry.HackneyClient ,
242+ default: Sentry.FinchClient ,
243243 doc: """
244244 A module that implements the `Sentry.HTTPClient`
245- behaviour. Defaults to `Sentry.HackneyClient `, which uses
246- [hackney ](https://github.com/benoitc/hackney ) as the HTTP client.
245+ behaviour. Defaults to `Sentry.FinchClient `, which uses
246+ [finch ](https://github.com/sneako/finch ) as the HTTP client.
247247 """
248248 ] ,
249249 send_max_attempts: [
@@ -253,30 +253,30 @@ defmodule Sentry.Config do
253253 The maximum number of attempts to send an event to Sentry.
254254 """
255255 ] ,
256- hackney_opts : [
256+ finch_opts : [
257257 type: :keyword_list ,
258258 default: [ pool: :sentry_pool ] ,
259259 doc: """
260- Options to be passed to `hackney `. Only
261- applied if `:client` is set to `Sentry.HackneyClient `.
260+ Options to be passed to `finch `. Only
261+ applied if `:client` is set to `Sentry.FinchClient `.
262262 """
263263 ] ,
264- hackney_pool_timeout : [
264+ finch_pool_timeout : [
265265 type: :timeout ,
266266 default: 5000 ,
267267 doc: """
268268 The maximum time to wait for a
269269 connection to become available. Only applied if `:client` is set to
270- `Sentry.HackneyClient `.
270+ `Sentry.FinchClient `.
271271 """
272272 ] ,
273- hackney_pool_max_connections : [
273+ finch_pool_max_connections : [
274274 type: :pos_integer ,
275275 default: 50 ,
276276 doc: """
277277 The maximum number of
278278 connections to keep in the pool. Only applied if `:client` is set to
279- `Sentry.HackneyClient `.
279+ `Sentry.FinchClient `.
280280 """
281281 ]
282282 ]
@@ -470,11 +470,11 @@ defmodule Sentry.Config do
470470 @ spec environment_name ( ) :: String . t ( ) | nil
471471 def environment_name , do: fetch! ( :environment_name )
472472
473- @ spec max_hackney_connections ( ) :: pos_integer ( )
474- def max_hackney_connections , do: fetch! ( :hackney_pool_max_connections )
473+ @ spec max_finch_connections ( ) :: pos_integer ( )
474+ def max_finch_connections , do: fetch! ( :finch_pool_max_connections )
475475
476- @ spec hackney_timeout ( ) :: timeout ( )
477- def hackney_timeout , do: fetch! ( :hackney_pool_timeout )
476+ @ spec finch_timeout ( ) :: timeout ( )
477+ def finch_timeout , do: fetch! ( :finch_pool_timeout )
478478
479479 @ spec tags ( ) :: map ( )
480480 def tags , do: fetch! ( :tags )
@@ -512,8 +512,8 @@ defmodule Sentry.Config do
512512 @ spec sample_rate ( ) :: float ( )
513513 def sample_rate , do: fetch! ( :sample_rate )
514514
515- @ spec hackney_opts ( ) :: keyword ( )
516- def hackney_opts , do: fetch! ( :hackney_opts )
515+ @ spec finch_opts ( ) :: keyword ( )
516+ def finch_opts , do: fetch! ( :finch_opts )
517517
518518 @ spec before_send ( ) :: ( Sentry.Event . t ( ) -> Sentry.Event . t ( ) ) | { module ( ) , atom ( ) } | nil
519519 def before_send , do: get ( :before_send )
0 commit comments