@@ -284,11 +284,11 @@ defmodule Sentry.Config do
284284 client: [
285285 type: :atom ,
286286 type_doc: "`t:module/0`" ,
287- default: Sentry.HackneyClient ,
287+ default: Sentry.FinchClient ,
288288 doc: """
289289 A module that implements the `Sentry.HTTPClient`
290- behaviour. Defaults to `Sentry.HackneyClient `, which uses
291- [hackney ](https://github.com/benoitc/hackney ) as the HTTP client.
290+ behaviour. Defaults to `Sentry.FinchClient `, which uses
291+ [finch ](https://github.com/sneako/finch ) as the HTTP client.
292292 """
293293 ] ,
294294 send_max_attempts: [
@@ -298,30 +298,30 @@ defmodule Sentry.Config do
298298 The maximum number of attempts to send an event to Sentry.
299299 """
300300 ] ,
301- hackney_opts : [
301+ finch_opts : [
302302 type: :keyword_list ,
303303 default: [ pool: :sentry_pool ] ,
304304 doc: """
305- Options to be passed to `hackney `. Only
306- applied if `:client` is set to `Sentry.HackneyClient `.
305+ Options to be passed to `finch `. Only
306+ applied if `:client` is set to `Sentry.FinchClient `.
307307 """
308308 ] ,
309- hackney_pool_timeout : [
309+ finch_pool_timeout : [
310310 type: :timeout ,
311311 default: 5000 ,
312312 doc: """
313313 The maximum time to wait for a
314314 connection to become available. Only applied if `:client` is set to
315- `Sentry.HackneyClient `.
315+ `Sentry.FinchClient `.
316316 """
317317 ] ,
318- hackney_pool_max_connections : [
318+ finch_pool_max_connections : [
319319 type: :pos_integer ,
320320 default: 50 ,
321321 doc: """
322322 The maximum number of
323323 connections to keep in the pool. Only applied if `:client` is set to
324- `Sentry.HackneyClient `.
324+ `Sentry.FinchClient `.
325325 """
326326 ]
327327 ]
@@ -545,11 +545,11 @@ defmodule Sentry.Config do
545545 @ spec environment_name ( ) :: String . t ( ) | nil
546546 def environment_name , do: fetch! ( :environment_name )
547547
548- @ spec max_hackney_connections ( ) :: pos_integer ( )
549- def max_hackney_connections , do: fetch! ( :hackney_pool_max_connections )
548+ @ spec max_finch_connections ( ) :: pos_integer ( )
549+ def max_finch_connections , do: fetch! ( :finch_pool_max_connections )
550550
551- @ spec hackney_timeout ( ) :: timeout ( )
552- def hackney_timeout , do: fetch! ( :hackney_pool_timeout )
551+ @ spec finch_timeout ( ) :: timeout ( )
552+ def finch_timeout , do: fetch! ( :finch_pool_timeout )
553553
554554 @ spec tags ( ) :: map ( )
555555 def tags , do: fetch! ( :tags )
@@ -590,8 +590,8 @@ defmodule Sentry.Config do
590590 @ spec sample_rate ( ) :: float ( )
591591 def sample_rate , do: fetch! ( :sample_rate )
592592
593- @ spec hackney_opts ( ) :: keyword ( )
594- def hackney_opts , do: fetch! ( :hackney_opts )
593+ @ spec finch_opts ( ) :: keyword ( )
594+ def finch_opts , do: fetch! ( :finch_opts )
595595
596596 @ spec before_send ( ) :: ( Sentry.Event . t ( ) -> Sentry.Event . t ( ) ) | { module ( ) , atom ( ) } | nil
597597 def before_send , do: get ( :before_send )
0 commit comments