Adjust GA4 import timeout and page size to reduce risk of 502s and timeouts (#4753)

This commit is contained in:
Adrian Gruntkowski 2024-10-29 12:24:01 +01:00 committed by GitHub
parent ad8f49b38d
commit dc7e019d58
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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,