mirror of
https://github.com/plausible/analytics.git
synced 2024-12-23 09:33:19 +03:00
Adjust GA4 import timeout and page size to reduce risk of 502s and timeouts (#4753)
This commit is contained in:
parent
ad8f49b38d
commit
dc7e019d58
@ -14,7 +14,7 @@ defmodule Plausible.Google.GA4.API do
|
|||||||
expires_at :: String.t()
|
expires_at :: String.t()
|
||||||
}
|
}
|
||||||
|
|
||||||
@per_page 250_000
|
@per_page 200_000
|
||||||
@backoff_factor :timer.seconds(10)
|
@backoff_factor :timer.seconds(10)
|
||||||
@max_attempts 5
|
@max_attempts 5
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ defmodule Plausible.Google.GA4.HTTP do
|
|||||||
url,
|
url,
|
||||||
[{"Authorization", "Bearer #{report_request.access_token}"}],
|
[{"Authorization", "Bearer #{report_request.access_token}"}],
|
||||||
params,
|
params,
|
||||||
receive_timeout: 60_000
|
receive_timeout: 80_000
|
||||||
)
|
)
|
||||||
|
|
||||||
with {:ok, %{body: body}} <- response,
|
with {:ok, %{body: body}} <- response,
|
||||||
|
Loading…
Reference in New Issue
Block a user