Skip to content

Commit 341e88b

Browse files
committed
update docs
1 parent 4dfdeb5 commit 341e88b

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ config :sentry,
6767
| `release` | False | None | |
6868
| `server_name` | False | None | |
6969
| `use_error_logger` | False | False | |
70-
| hackney_opts | False | [] | |
70+
| hackney_opts | False | `[pool: :sentry_pool]` | |
7171
| hackney_pool_max_connections | False | 50 | |
7272
| hackney_pool_timeout | False | 5000 | |
7373

docs/config.rst

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,17 @@ Optional settings
5757
Set this to a module that implements the ``Sentry.EventFilter`` behaviour if you would like to prevent
5858
certain exceptions from being sent. See below for further documentation.
5959

60+
.. describe:: hackney_pool_max_connections
61+
62+
Number of connections for Sentry's hackney pool. This defaults to 50.
63+
64+
.. describe:: hackney_pool_timeout
65+
66+
Timeout for Sentry's hackney pool. This defaults to 5000 milliseconds.
67+
6068
.. describe:: hackney_opts
6169

62-
Sentry uses `hackney <https://github.com/benoitc/hackney>`_. If you would like to set `options <https://github.com/benoitc/hackney/blob/master/doc/hackney.md#request5>`_ for hackney requests, they can be provided via this configuration.
70+
Sentry starts its own hackney pool named ``:sentry_pool``, and defaults to using it. Hackney's ``pool`` configuration as well others like proxy or response timeout can be set through this configuration as it is passed directly to hackney when making a request.
6371

6472
Testing Your Configuration
6573
--------------------------

0 commit comments

Comments
 (0)