@@ -316,35 +316,38 @@ defmodule Sentry.Config do
316
316
`Sentry.FinchClient`.
317
317
"""
318
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
- """
347
- ]
319
+ hackney_opts:
320
+ [
321
+ type: :keyword_list ,
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
+ if ( Mix . env ( ) == :test , do: [ ] , else: [ deprecated: "Use Finch instead as default client." ] ) ,
329
+ hackney_pool_timeout:
330
+ [
331
+ type: :timeout ,
332
+ default: 5000 ,
333
+ doc: """
334
+ The maximum time to wait for a
335
+ connection to become available. Only applied if `:client` is set to
336
+ `Sentry.HackneyClient`.
337
+ """
338
+ ] ++
339
+ if ( Mix . env ( ) == :test , do: [ ] , else: [ deprecated: "Use Finch instead as default client." ] ) ,
340
+ hackney_pool_max_connections:
341
+ [
342
+ type: :pos_integer ,
343
+ default: 50 ,
344
+ doc: """
345
+ The maximum number of
346
+ connections to keep in the pool. Only applied if `:client` is set to
347
+ `Sentry.HackneyClient`.
348
+ """
349
+ ] ++
350
+ if ( Mix . env ( ) == :test , do: [ ] , else: [ deprecated: "Use Finch instead as default client." ] )
348
351
]
349
352
350
353
source_code_context_opts_schema = [
0 commit comments