File tree Expand file tree Collapse file tree 3 files changed +34
-5
lines changed Expand file tree Collapse file tree 3 files changed +34
-5
lines changed Original file line number Diff line number Diff line change @@ -315,6 +315,35 @@ defmodule Sentry.Config do
315315 connections to keep in the pool. Only applied if `:client` is set to
316316 `Sentry.FinchClient`.
317317 """
318+ ] ,
319+ hackney_opts: [
320+ type: :keyword_list ,
321+ deprecated: "Use Finch instead as default client." ,
322+ default: [ pool: :sentry_pool ] ,
323+ doc: """
324+ Options to be passed to `hackney`. Only
325+ applied if `:client` is set to `Sentry.HackneyClient`.
326+ """
327+ ] ,
328+ hackney_pool_timeout: [
329+ type: :timeout ,
330+ deprecated: "Use Finch instead as default client." ,
331+ default: 5000 ,
332+ doc: """
333+ The maximum time to wait for a
334+ connection to become available. Only applied if `:client` is set to
335+ `Sentry.HackneyClient`.
336+ """
337+ ] ,
338+ hackney_pool_max_connections: [
339+ type: :pos_integer ,
340+ deprecated: "Use Finch instead as default client." ,
341+ default: 50 ,
342+ doc: """
343+ The maximum number of
344+ connections to keep in the pool. Only applied if `:client` is set to
345+ `Sentry.HackneyClient`.
346+ """
318347 ]
319348 ]
320349
Original file line number Diff line number Diff line change @@ -11,9 +11,9 @@ defmodule Sentry.FinchClient do
1111 HTTP client, you'll have to implement your own `Sentry.HTTPClient`. See the
1212 documentation for `Sentry.HTTPClient` for more information.
1313
14- Finch is built on top of NimblePool. If you need to set other pool configuration options,
15- see "Pool Configuration Options" in the source code for details on the possible map values.
16- [finch configuration options](https://github.com/sneako/ finch/blob/main/lib/finch.ex )
14+ Finch is built on top of [ NimblePool](https://github.com/dashbitco/nimble_pool) . If you need to set other pool configuration options,
15+ see "Pool Configuration Options" in the Finch documentation for details on the possible map values.
16+ [finch configuration options](https://hexdocs.pm/ finch/Finch.html#start_link/1-pool-configuration-options )
1717 """
1818 @ impl true
1919 def child_spec do
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ defmodule Mix.Tasks.Sentry.SendTestEventTest do
1515 assert output =~ """
1616 Client configuration:
1717 current environment_name: "some_env"
18- finch_opts : []
18+ Finch options : []
1919 """
2020
2121 assert output =~ ~s( Event not sent because the :dsn option is not set)
@@ -49,7 +49,7 @@ defmodule Mix.Tasks.Sentry.SendTestEventTest do
4949 public_key: public
5050 secret_key: secret
5151 current environment_name: "test"
52- finch_opts : []
52+ Finch options : []
5353 """
5454
5555 assert output =~ "Sending test event..."
You can’t perform that action at this time.
0 commit comments