You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,7 +67,9 @@ config :sentry,
67
67
|`release`| False | None ||
68
68
|`server_name`| False | None ||
69
69
|`use_error_logger`| False | False ||
70
-
| hackney_opts | False |[]||
70
+
| hackney_opts | False |`[pool: :sentry_pool]`||
71
+
| hackney_pool_max_connections | False | 50 ||
72
+
| hackney_pool_timeout | False | 5000 ||
71
73
72
74
An example production config might look like this:
73
75
@@ -113,7 +115,7 @@ Now, on our servers, we can set the environment variable appropriately. On
113
115
our local development machines, exceptions will never be sent, because the
114
116
default value is not in the list of `included_environments`.
115
117
116
-
Sentry uses the [hackney HTTP client](https://github.com/benoitc/hackney) for HTTP requests. If you need to set [hackney configurations](https://github.com/benoitc/hackney/blob/master/doc/hackney.md#request5) for things like a proxy or different pool, the `hackney_opts` configuration is passed directly to hackney.
118
+
Sentry uses the [hackney HTTP client](https://github.com/benoitc/hackney) for HTTP requests. Sentry starts its own hackney pool named `:sentry_pool` with a default connection pool of 50, and a connection timeout of 5000 milliseconds. The pool can be configured with the `hackney_pool_max_connections` and `hackney_pool_timeout` configuration keys. If you need to set other [hackney configurations](https://github.com/benoitc/hackney/blob/master/doc/hackney.md#request5) for things like a proxy, using your own pool or response timeouts, the `hackney_opts` configuration is passed directly to hackney for each request.
Copy file name to clipboardExpand all lines: docs/config.rst
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,9 +57,17 @@ Optional settings
57
57
Set this to a module that implements the ``Sentry.EventFilter`` behaviour if you would like to prevent
58
58
certain exceptions from being sent. See below for further documentation.
59
59
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
+
60
68
.. describe:: hackney_opts
61
69
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.
0 commit comments