@@ -276,11 +276,11 @@ defmodule Sentry.Config do
276276 client: [
277277 type: :atom ,
278278 type_doc: "`t:module/0`" ,
279- default: Sentry.HackneyClient ,
279+ default: Sentry.FinchClient ,
280280 doc: """
281281 A module that implements the `Sentry.HTTPClient`
282- behaviour. Defaults to `Sentry.HackneyClient `, which uses
283- [hackney ](https://github.com/benoitc/hackney ) as the HTTP client.
282+ behaviour. Defaults to `Sentry.FinchClient `, which uses
283+ [finch ](https://github.com/sneako/finch ) as the HTTP client.
284284 """
285285 ] ,
286286 send_max_attempts: [
@@ -290,30 +290,30 @@ defmodule Sentry.Config do
290290 The maximum number of attempts to send an event to Sentry.
291291 """
292292 ] ,
293- hackney_opts : [
293+ finch_opts : [
294294 type: :keyword_list ,
295295 default: [ pool: :sentry_pool ] ,
296296 doc: """
297- Options to be passed to `hackney `. Only
298- applied if `:client` is set to `Sentry.HackneyClient `.
297+ Options to be passed to `finch `. Only
298+ applied if `:client` is set to `Sentry.FinchClient `.
299299 """
300300 ] ,
301- hackney_pool_timeout : [
301+ finch_pool_timeout : [
302302 type: :timeout ,
303303 default: 5000 ,
304304 doc: """
305305 The maximum time to wait for a
306306 connection to become available. Only applied if `:client` is set to
307- `Sentry.HackneyClient `.
307+ `Sentry.FinchClient `.
308308 """
309309 ] ,
310- hackney_pool_max_connections : [
310+ finch_pool_max_connections : [
311311 type: :pos_integer ,
312312 default: 50 ,
313313 doc: """
314314 The maximum number of
315315 connections to keep in the pool. Only applied if `:client` is set to
316- `Sentry.HackneyClient `.
316+ `Sentry.FinchClient `.
317317 """
318318 ]
319319 ]
@@ -537,11 +537,11 @@ defmodule Sentry.Config do
537537 @ spec environment_name ( ) :: String . t ( ) | nil
538538 def environment_name , do: fetch! ( :environment_name )
539539
540- @ spec max_hackney_connections ( ) :: pos_integer ( )
541- def max_hackney_connections , do: fetch! ( :hackney_pool_max_connections )
540+ @ spec max_finch_connections ( ) :: pos_integer ( )
541+ def max_finch_connections , do: fetch! ( :finch_pool_max_connections )
542542
543- @ spec hackney_timeout ( ) :: timeout ( )
544- def hackney_timeout , do: fetch! ( :hackney_pool_timeout )
543+ @ spec finch_timeout ( ) :: timeout ( )
544+ def finch_timeout , do: fetch! ( :finch_pool_timeout )
545545
546546 @ spec tags ( ) :: map ( )
547547 def tags , do: fetch! ( :tags )
@@ -579,8 +579,8 @@ defmodule Sentry.Config do
579579 @ spec sample_rate ( ) :: float ( )
580580 def sample_rate , do: fetch! ( :sample_rate )
581581
582- @ spec hackney_opts ( ) :: keyword ( )
583- def hackney_opts , do: fetch! ( :hackney_opts )
582+ @ spec finch_opts ( ) :: keyword ( )
583+ def finch_opts , do: fetch! ( :finch_opts )
584584
585585 @ spec before_send ( ) :: ( Sentry.Event . t ( ) -> Sentry.Event . t ( ) ) | { module ( ) , atom ( ) } | nil
586586 def before_send , do: get ( :before_send )
0 commit comments